How to fix Tp & Sl
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Hasnain Raza:
double TP = NormalizeDouble(Bid + Tp * _Point, Digits); if(OrderProfit() >= Stop || OrderProfit() >= TP) {
TP and Stop are prices (1.01234). OrderProfit is currency ($123.45). Comparison is nonsense.

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,
i am new to mql4 i am trying to build a EA i the problem is close position function is not working i tried everything can anyione help me . i tried to add it with ordersend function i used this expreation Bid + Tp * _Point but it gave me problem that it closes order way befor or sometine way early. i gave tp = 600 and sl = 400 still did same then i changed it to 60,40 then it stoped opening trades.
now this is also not working properly