What is a Formula for Risking 1% of Yesterday's Bankroll for all of Today's Bets in Google Sheets?

huangapple go评论73阅读模式
英文:

What is a Formula for Risking 1% of Yesterday's Bankroll for all of Today's Bets in Google Sheets?

问题

我明白你的需求,以下是你需要的部分翻译:

  • "I have a hypothetical $10,000 starting bankroll." 我有一个假设的起始资金为$10,000。
  • "I would like a formula to bet 1% of yesterday's ending bankroll for each of my daily bets." 我想要一个公式,用于每日投注的金额为昨天结束时资金的1%。
  • "For example, if my account ended at $100 the day before, then all of my bets today would be $1 (or 1% of $100)." 例如,如果我的账户前一天结束时是$100,那么今天所有的投注都将是$1(或者是$100的1%)。
  • "The daily bet size for ALL of the bets that day should be 1% of the starting bankroll from the day prior. This value will be in the column Last Bank." 每天的所有投注都应该是前一天起始资金的1%。这个值将显示在Last Bank列中。
  • "On Day 1 there were no days prior so Last Bank is Null for this day only." 在第1天之前没有其他天数,所以Last Bank列在这一天为空。
  • "Here is what my table looks like so far for DAY 1 prior to making any bets:" 这是我在进行任何投注之前的第1天的表格情况:
  • "I am trying to find a formula for the Risk column." 我正在尝试找到Risk列的公式。
  • "IF Last Bank = Null, Risk = Start Bank * .01... Else Risk = Last Bank *.01" 如果Last Bank为空,Risk = Start Bank * .01... 否则Risk = Last Bank * .01。
  • "Here is the update table for Risk which tells me that 1% of my Last Bank is $100:" 这是Risk列的更新表格,告诉我1%的Last Bank是$100。
  • "Let's say I won the 1st bet 'WIN' and won $100 overall (+100 odds)." 假设我赢得了第一次投注 'WIN',总共赢得了$100(+100赔率)。
  • "Hopefully everything is straight forward so far. Just tryin to find the Risk value which is 1% of my starting bankroll from the day prior, Last Bank." 希望到目前为止一切都很清晰。只是在寻找1%的Risk值,这是前一天起始资金Last Bank的1%。
  • "This is the part that get's more tricky." 这是比较棘手的部分。
  • "I can sum the Outcome values prior to today using this formula:" 我可以使用以下公式对今天之前的Outcome值进行求和:
  • "Now let's say we are on Day 2 (1/2/23) and I have two bets." 现在假设我们处于第2天(1/2/23),我有两个投注。
  • "Again, I am trying to find the formula for Risk... but only if the dates match." 再次强调,我正在尝试找到Risk的公式...但只有日期匹配时。
  • "The key here is that I do not want the Risk value formula for the day prior (1/1/23) to change once the date changes." 关键在于,我不希望日期发生变化后前一天(1/1/23)的Risk值公式发生变化。
  • "On Day 2 I would like the Risk value for all rows where the Date equals Today to be 1% of $10,100." 在第2天,我希望Date等于Today的所有行的Risk值为$10,100的1%。
  • "I would like All of the bets for 1/2/23 to bet 1% of the Last Bank or $101 (10,100 * .01)." 我希望1/2/23的所有投注都是Last Bank的1%或$101(10,100 * .01)。
  • "The formula I am looking for will fill in the two values in the table above with 101 in 2nd row, 1/2/23 and the 3rd row, also 1/2/23." 我正在寻找的公式将在上表的第2行(1/2/23)和第3行(也是1/2/23)中填入值101。
  • "To reiterate what I am trying to do... I am trying to find a Risk formula that will tell me 1% of the Last Bank from the day prior so that each bet has the same bet % that day." 重申一下我想要做的事情...我正在尝试找到一个Risk的公式,它将告诉我前一天的Last Bank的1%,以便每个投注在那一天都有相同的投注百分比。
英文:

I have a hypothetical $10,000 starting bankroll.

I would like a formula to bet 1% of yesterday's ending bankroll for each of my daily bets.

For example, if my account ended at $100 the day before, then all of my bets today would be $1 (or 1% of $100).

The daily bet size for ALL of the bets that day should be 1% of the starting bankroll from the day prior. This value will be in the column Last Bank. Note Last Bank is the sum of all values in the Outcome column prior to today.

On Day 1 there were no days prior so Last Bank is Null for this day only.

Here is what my table looks like so far for DAY 1 prior to making any bets:

Date Risk Outcome Start Bank Profit/Loss Last BANK Today
1/1/23 10,000 1/1/23

I am trying to find a formula for the Risk column. This formula works fine for day 1.

IF Last Bank = Null, Risk = Start Bank * .01... Else Risk = Last Bank *.01

=IF(ISBLANK(F2), D2*.01, F2*.01

Here is the update table for Risk which tells me that 1% of my Last Bank is $100:

Date Risk Outcome Start Bank Profit/Loss Last Bank Today
1/1/23 100 10,000 1/1/23

Let's say I won the 1st bet 'WIN' and won $100 overall (+100 odds).

Date Risk Outcome Start Bank Profit/Loss Last Bank Today
1/1/23 100 WIN 10,000 100 1/1/23

Hopefully everything is straight forward so far. Just tryin to find the Risk value which is 1% of my starting bankroll from the day prior, Last Bank. On day 1 Last Bank is Null so Risk is 1% of the Start Bank.

This is the part that get's more tricky.

I can sum the Outcome values prior to today using this formula:

=SUMIF(A2:A, "<="&TODAY()-1, E2:E)

Now let's say we are on Day 2 (1/2/23) and I have two bets. We now have a $10,100 bankroll after yesterday's win... and the value for Last Bank has been filled in (10,000 + 100).

Date Risk Outcome Start Bank Profit/Loss Last Bank Today
1/1/23 100 WIN 10,000 100 10,100 1/2/23
1/2/23
1/2/23

Again, I am trying to find the formula for Risk... but only if the dates match. For example A3=G2... or 1/2/23 (in Date column) = 1/2/23 (in Today column).

The key here is that I do not want the Risk value formula for the day prior (1/1/23) to change once the date changes. To be more clear, I do not want the Risk amount to change on 1/1/23 when there is a new day. The Risk values from days prior should stay the same.

On Day 2 I would like the Risk value for all rows where the Date equals Today to be 1% of $10,100. In other words... If Date = Today, Risk = Last Bank * .01.

I would like All of the bets for 1/2/23 to bet 1% of the Last Bank or $101 (10,100 * .01).

Date Risk Outcome Start Bank Profit/Loss Last Bank Today
1/1/23 100 WIN 10,000 100 10,100 1/2/23
1/2/23 101
1/2/23 101

The formula I am looking for will fill in the two values in the table above with 101 in 2nd row, 1/2/23 and the 3rd row, also 1/2/23.

To reiterate what I am trying to do... I am trying to find a Risk formula that will tell me 1% of the Last Bank from the day prior so that each bet has the same bet % that day.

Updated step (by request)
Let's say I won both of the bets on 1/2/23 for simplicity... and that all bets are even money odds meaning you will get paid 100 for every winning bet $100 you risked.

In this case we risked $101 for each bet so we are now up $202 for the day ($101 + $101).

Now we are on Day 3.
The Last Bank is now at $10,302. Note the Last bank is the sum of the column Profit/Loss prior to today (see formula above for reference) plus the starting bankroll.

Since the Last Bank is $10,302 on the morning of 1/3/23, the new Risk is $103.2 for each of these two bets ($10,302 * .01).

Date Risk Outcome Start Bank Profit/Loss Last Bank Today
1/1/23 100 WIN 10,000 100 10,302 1/3/23
1/2/23 101 WIN 101
1/2/23 101 WIN 101
1/3/23 103.2
1/3/23 103.2

答案1

得分: 1

以下是要翻译的内容:

计算一个单元格,不更改先前的值。

尽管对于您所期望的输出存在一些混淆。我认为您所寻找的只是保持值不变,无论条件是否满足。我已在我的端上复制了它,这个公式可以解决它。

公式:

如果(A3 = $G$3, $F$3 *0.01, B3)

请注意,在此公式中,我假设B3是您的第一个单元格(风险行),用于应用此公式,而A是您放入输入日期的地方。G3是您的当前日期,F3是您的上次银行。如果公式中的false语句是为了保持值不变,这意味着如果应用在空值上,它将出现#REF错误,但一旦公式满足条件,就会更改。

(请注意,您可以将其用作参考,但不能保证它可以简单地复制粘贴到您的工作表上,因为缺乏实际工作表的复制。请根据您的需要进行更改)。

参考:

IF函数

英文:

Calculating a cell and not change previous values.

Though there is some confusion with your desired output. I think what you are looking at is just keeping the value regardless if the condition is not meant. I have replicated it on my end and this formula fixes it.

Formula:

If(A3 = $G$3, $F$3 *0.01, B3)

Take note that in this formula I am assuming that B3 is your first cell (Risk Row) to apply this formula and A is where you put the Date where entry was made. G3 is where your current date and F3 is your Last Bank. The false statement in the formula to just keep the values if it is false means that you apply this on a null value it will go #REF error but will be changed once the formula is met.

(Please take note that you can use this as a reference but doesn't guarantee that it could simply just copy paste on your sheet due to lack of actual copy of your sheet. Please change it accordingly to your need).

Reference:

If Function

huangapple
  • 本文由 发表于 2023年6月9日 07:27:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76436309.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定