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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.