-
Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 programming forum #2 2013.06.07 -
A SL becomes a market order when hit. Therefor the close price will almost never be the SL due to slippage.
-
You can not use any Trade Functions until you first select an order.
-
Closed by SL when close price is closer to the SL than the TP.
Thanks ..... But it did't work .... this close if OrderProfit <0 ...... this if the profit -0.01 it will closed
my stop loss is (500).
i need if the stop loss happens
if(NormalizeDouble(MathAbs(OrderClosePrice()-OrderStopLoss()),Digits())<Point())return(true);
Thank you v much , this work :)
But if the Profit happened word too
Thank you v much , this work :)
But if the Profit happened word too
yes
Sorry this code work in a two type ( stop loss , take profit ) both
when a stop loss happens is work good
And when the take profit happens it is work also :(
if you have a correct code work for stop loss only
and i'm very happy because you helping me

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
is not working