the script works on different deposit currency accounts when i change the code to this below. note the change from using std library Trade.mqh to PositionGetXXXX
my formulae is clearly wrong on some pairs. i have 4 trades with negative 350 floating losses, and the sl is not even red. how do i prove that ticksize or tickvalue is incorrect? or how do i prove that it is my formulae is wrong?
i changed the step so that it was simple 2000 points and then 800 points. ALL WITH SAME RESULTS. sell trades are not being modified. mayve it IS NOT my math formulae that was the problem! Can someone test the code on their own demo account please.
Michael Charles Schefe #: my formulae is clearly wrong on some pairs. i have 4 trades with negative 350 floating losses, and the sl is not even red. how do i prove that ticksize or tickvalue is incorrect? or how do i prove that it is my formulae is wrong?
Your formula is wrong. Do you want me to give you the correct one directly or do you prefer to fix it yourself ?
step+=NormalizeDouble(.35 * 1000/ ts * tv / ltv / pow(10,dig*2),dig);
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.
@Alain Verleyen
could be a bug with 5833 mt5.
the script works on different deposit currency accounts when i change the code to this below. note the change from using std library Trade.mqh to PositionGetXXXX
lines 32, 36, 37, 42, 46, 51.
i changed the step so that it was simple 2000 points and then 800 points. ALL WITH SAME RESULTS. sell trades are not being modified. mayve it IS NOT my math formulae that was the problem! Can someone test the code on their own demo account please.
Which return always 0 (POSITION_TYPE_BUY).
You should use
position.PositionType()
You are using wrong method
Which return always 0 (POSITION_TYPE_BUY).
You should use
position.PositionType()
my formulae is clearly wrong on some pairs. i have 4 trades with negative 350 floating losses, and the sl is not even red. how do i prove that ticksize or tickvalue is incorrect? or how do i prove that it is my formulae is wrong?
Your formula is wrong. Do you want me to give you the correct one directly or do you prefer to fix it yourself ?
Your formula is wrong. Do you want me to give you the correct one directly or do you prefer to fix it yourself ?
directly or here...please...thanks!
step+=NormalizeDouble(350 / tv * ts / ltv,dig);this is the result, shocking but weirdly impressive that the broker server accepts them.
this is the result, shocking but weirdly impressive that the broker server accepts them.
Show your code please.
Show your code please.
THANKS ALAIN