You are working upside down. You have to fix a stoploss, then calculate your trading volume.
Well I need this *R e l a t i v e* SL. Such a function based on profit is a nice way to control before any optimization the drawdown allowed by the EA.
You wish to work with a rel DD @ 10% easy-go, just set it. It won't never be more. Using a fixed SL you'll have to play onto the risk and it won't never reflect as with this method the rel dd.
So any help regarding the previous posted function ?
Well I need this *R e l a t i v e* SL. Such a function based on profit is a nice way to control before any optimization the drawdown allowed by the EA.
You wish to work with a rel DD @ 10% easy-go, just set it. It won't never be more. Using a fixed SL you'll have to play onto the risk and it won't never reflect as with this method the rel dd.
So any help regarding the previous posted function ?
lotsize = StopAtEquity / (((MathAbs(openprice - stoploss) / ticksize) * tickvalue).
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I'm looking for a way to fix the price of my stoploss using a lossprofit (x% of account currency) :
First, the interval tested is too large (in points).
Second, the "==" of the OrderProfitCheck statement is too accurate, it never falls *exactly* on the right value.
Anyone there have a clue on how to get out of this ?
Thanks.