if (OrderGetTicket(i)) { op = OrderGetDouble(ORDER_PRICE_OPEN); Comment(op); }
matheus: op is always equal to 0.0 a
That is not MT4 code, but you posted in the MQL4 section, (bottom of the Root page).
I will move this topic to the EA section as it is not related to MQL4
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hey all.
Can't seem to understand why my code doesn't work, anyone can help me see what am i doing wrong?
op is always equal to 0.0 and i have a limit order open (buy or sell, doesn't matter).
Thanks for the help :D