Forum

MathRound and MathCeil not rounding double var

Hi folks, I'm implementing a function to calculate volume to trade according to a fix percentage of potential loss in comparison to total equity. My problem is that im getting invalid volume since it have a lot of digits. I already tried using Mathround and mathceil/floor and it keep with a lot of

Cant figure out what is wrong here [4576 error code]

Hi Folks, I'm sorry if im asking basic question or newbie doubts but i just started with EA coding. I keep getting 4576 error with the following message : '685749' : Failed sell stop limit 0.10 EURUSD at 1.39823 (1.39823) sl: 1.39935 tp: 1.39733 [Invalid stops] Here goes the mqltraderesquest