How i understand Close trade by TP
capilta: but it is not work.Because sometime ClosePrice=TakePrice is not True.
- Of course it doesn't. The == operand. - MQL4 forum
- You have to do it by deduction.
bool isCloseByTP = MathAbs( OrderClosePrice() - OrderTakeProfit() ) // Assumes no < MathAbs( OrderClosePrice() - OrderStopLoss() ); // OrderClose
Hi Guys
Is there any MQL code that i understand last trade is close by TP. I wrote below code but it is not work.Because sometime ClosePrice=TakePrice is not True. I attach picture that u understand that ClosePrice=TakePrice is not always true. How can i solve this problem.