Problem with obtaining historical data
Hi guys,
I am building EA strategy and I have some troubles with obtaining data. The strategy needs to send M30 OHLC data 1000 bars backwards to my R client, so I have written this:
The problem is that the max value of count can be only something aroung 67. If I set count variable higher, I get no data and in MT5 I get: nothing to analyze. I checked Symbols/Bars in MT5 and the data should be there. I also tried the iClose, iOpen..., but there is the same problem with maximal shift.
Thank you.
Please refer to this link
- www.mql5.com
Hi guys,
I am building EA strategy and I have some troubles with obtaining data. The strategy needs to send M30 OHLC data 1000 bars backwards to my R client, so I have written this:
The problem is that the max value of count can be only something aroung 67. If I set count variable higher, I get no data and in MT5 I get: nothing to analyze. I checked Symbols/Bars in MT5 and the data should be there. I also tried the iClose, iOpen..., but there is the same problem with maximal shift.
Thank you.