How it is possible to for the M1BarShiftOfTradeOpen to be zero?
Are you running on a M1 chart. Do you have M1 history that far back? My M1 history goes back 65000 bars (2.5 months)
Try specifying 0 instead of PERIOD_M1
WHRoeder:
Are you running on a M1 chart. Do you have M1 history that far back? My M1 history goes back 65000 bars (2.5 months)
Try specifying 0 instead of PERIOD_M1
It seems to work!
Thanks a lot WHRoeder
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 trying to find the highest high since the order opened and I am using this suggestion from jjc
https://forum.mql4.com/22224#165515
from the log I print
15:47:21 2005.01.14 07:17 Trend_Following EURUSD,Daily: Order_Open_Time:2005.01.12 14:5215:47:21 2005.01.14 07:17 Trend_Following EURUSD,Daily: Order_Open_Time:1105541541
15:47:21 2005.01.14 07:17 Trend_Following EURUSD,Daily: M1BarShiftOfTradeOpen:0
15:47:21 2005.01.14 07:17 Trend_Following EURUSD,Daily: IndexOfHigh :-1
15:47:21 2005.01.14 07:17 Trend_Following EURUSD,Daily: HighestValue :0
How it is possible to for the M1BarShiftOfTradeOpen to be zero?
Many thanks