double percentage = RiskPercentage / 100; if(percentage > MAX_PERCENT) percentage = MAX_PERCENT; lots = (final_account_balance*(RiskPercentage/100.0))/(lots_size/leverage); //---- return( lots );
In these lines of code you calculate the percentage and limit this but later in the calculation of lots_size you don't use the limited "percentage" value.
I don't think that this would be correct cause "percentage" is not used in the codesnippet anymore, pls check this.
this good option
i dont no

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Long position:
Author: Marcus Wyatt