Disliked{quote} Hmm strange, with my broker it works. I use the mt4 Digits(), the stop loss calculation is like this for a BUY : slPrice = entryPrice - StopLoss*MyPoint(); double MyPoint() { double CalcPoint = 0; if(_Digits == 2 || _Digits == 3) CalcPoint = 0.01; else if(_Digits == 4 || _Digits == 5) CalcPoint = 0.0001; return(CalcPoint); } Maybe someone knows what's wrong there... Else could you send me your broker name via PM? Maybe I could create a demo account and test it. ThanksIgnored
You have "CalcPoint = 0.01; " Should it be 0.001?
You can also try something like this:
double CalcPoint =0.001;
if(MarketInfo("EURUSD", MODE_DIGITS)==5 ) CalcPoint = 0.0001;