Decision Calculations
Overview of the calculations used by decision recipes to determine position value.
Last updated
Was this helpful?
Overview of the calculations used by decision recipes to determine position value.
Last updated
Was this helpful?
Rate of return is always calculated as max profit / max loss for all position types, where max loss is defined as the theoretical risk less any premium received.
The formula for % premium increase/decreased is:
whereis equal to the net change
in position value divided by the openPrice
of the position, defined as:
The definition for markClose
calculations of individual position types can be found here.
Percentage return measures the percentage gain or loss on an asset or portfolio relative to its starting value.
In the example above, the investor earned a $1,250 total dollar return on a $5,000 investment. To calculate the total return in percentage, simply divide the total gains ($1,250) by the starting value ($5,000) = 25%.
Total percent return can be a better indicator of return on investment because it shows growth relative to the initial investment.
The sum of open and closed P/L.
The total P/L divided by the bot allocation.
The current intraday total P/L minus the previous days closing P/L value or $0 if no previous day.
The day P/L divided by the previous day's closing net liquid or bot allocation if no previous day.
The bot's P/L for all closed positions.
The bot's percentage of winning trades. Win Rate (win%) = number of wins divided by total number of closed trades.