virtualreal:
Hey guys,
I've tried multiple ways to fetch the execution price from a limit order in demo mode, but all of them failed.
Here's my code:
Can someone please explain what I'm doing wrong here?
Thanks!
You can use
- https://www.mql5.com/en/docs/trading/positiongetdouble
- and use
- ENUM_POSITION_PROPERTY_DOUBLE=POSITION_PRICE_OPEN
- to get entry price

Documentation on MQL5: Trade Functions / PositionGetDouble
- www.mql5.com
PositionGetDouble - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Much appreciated, thanks for your suggestion.

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
Here's my code:
Can someone please explain what I'm doing wrong here?
Thanks!