Thanks renatops,
I will give it a try.
Though I will use
Code:
double GetSizeLot()
{
return(NormalizeDouble(AccountFreeMargin()/StopLoss*RiskLevel,1));
}
as I want to use it when testing and on demo.
using RiskLevel = 0.03 or 3%
So if my accountfreemargin is 1000 and my stoploss is 50 then
lots = (1000/50*0.03) = 0.6 right?
at risklevel = 1 or 100%
lots = (1000/50*1) = 20 - all my available account free margin if I should hit my stoploss. I see the light!
