I got the same error message though in FXCM.
Is there a problem with digits used by different brokers maybe?
Please help code a simple pending grid system 5 replies
Please code this proven system (alien's system v2) 10 replies
38 consecutive wins, 0 losses = win? 30 replies
Code my system into an EA please! 0 replies
most common reasons for wins or losses 17 replies
Disliked, so in the rare instance there are 2 losses in a row, you wouldn't do it again.Ignored
DislikedThis strategy has only been looked at for 6 months. How can you presume 2 losers in a row is rare? There isn't enough data.Ignored
DislikedSorry, it was too painful to obtain to just give it away. The best I can do is share my tic data backtests, which I will conduct in the near future.
Thank you for sharing your system. It is similar to my own EURUSD strategy. :-)Ignored
QuoteDislikeddouble Lots(int step)
{
int li_0;
double ld_4 = NormalizeDouble(MarketInfo(Symbol(), MODE_LOTSTEP), 2);
double ld_12 = NormalizeDouble(MarketInfo(Symbol(), MODE_MINLOT), 2);
double ld_20 = NormalizeDouble(MarketInfo(Symbol(), MODE_MAXLOT), 2);
if (ld_4 == 0.01) li_0 = 2;
else li_0 = 1;
double ld_ret_28 = NormalizeDouble(AccountFreeMargin() * Risk*step / 100000.0, li_0);
if (ld_ret_28 > ld_20) ld_ret_28 = ld_20;
if (ld_ret_28 < ld_12) ld_ret_28 = ld_12;
return (ld_ret_28);
}
QuoteDislikedlot = Lots(1);