The above you have constants 1, 3, 15. These have units of pips but the OrderSend/Mod/Close all need units of points.
On a four (4) digit broker 1 Point equals 1 pip. On a five (5) digit broker, Point equals 1/10 pip.
All those constants must be multiplied by 10 to have the same effect. Either YOU must change the constants (but the 3 is not exported) or the EA must adjust them.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Anybody can help me with unbalanced bracket on the code above?
Thank's
pgforex
Two if's one {
The above you have constants 1, 3, 15. These have units of pips but the OrderSend/Mod/Close all need units of points.
On a four (4) digit broker 1 Point equals 1 pip. On a five (5) digit broker, Point equals 1/10 pip.
All those constants must be multiplied by 10 to have the same effect. Either YOU must change the constants (but the 3 is not exported) or the EA must adjust them.
That's what my pips2points and pips2dbl do: