Hi everyone,
There's a really good article on this site that explains different Risk of Ruin (ROR) calculations (https://www.earnforex.com/guides/risk-of-ruin-in-trading/).
The last one mentioned in the article is meant to calculate the ROR for a strategy that consists of different win/loss size, different probabilities which is the one that I want to use.
The article doesn't seem to explain what the N value is or how it is derived. In the article's example the value of 9 was inserted. Could someone tell me how this value is derived please?
I have a snapshot of some of the PHP code that I am referencing in the article and I have a link for it above.
Thank you for your help!
There's a really good article on this site that explains different Risk of Ruin (ROR) calculations (https://www.earnforex.com/guides/risk-of-ruin-in-trading/).
The last one mentioned in the article is meant to calculate the ROR for a strategy that consists of different win/loss size, different probabilities which is the one that I want to use.
The article doesn't seem to explain what the N value is or how it is derived. In the article's example the value of 9 was inserted. Could someone tell me how this value is derived please?
I have a snapshot of some of the PHP code that I am referencing in the article and I have a link for it above.
Code:
/* Starting balance: $2,500.00 Target balance: $5,000.00 Avg. losing trade: $1,500.00 Avg. profitable trade: $1,000.00 Loss probability: 30% Win probability: 70% */ $begin_state = 5; $N = 9; $loss_step = 3; $win_step = 2; $q = 0.3; $p = 0.7; ....
Thank you for your help!
Last edited by a moderator: