Don Baechtel: In the following script, history_order.PriceOpen() returns value of 0.0. Why?
history_order.PriceOpen() returns 0.0 because market orders do not store an open price.
The actual execution price is in the deals (HistoryDealGetDouble(..., DEAL_PRICE)) or in the position (PositionGetDouble(POSITION_PRICE_OPEN)).
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
In the following script, history_order.PriceOpen() returns value of 0.0. Why?