(ENUM_TIMEFRAMES)5use the proper enumerations
PERIOD_M5
Is it maybe because you cannnot access different data in " in open prices testing mode"
To be honest, I am guessing....
![Documentation on MQL5: Constants, Enumerations and Structures / Indicator Constants / Price Constants Documentation on MQL5: Constants, Enumerations and Structures / Indicator Constants / Price Constants](https://c.mql5.com/36/52/documentation-on-mql5-constants__28.png)
- www.mql5.com
Is it maybe because you cannnot access different data in " in open prices testing mode"
To be honest, I am guessing....
From the following post https://www.mql5.com/en/forum/15858 i now realise as stated :
"In the tested Expert Advisor, you cannot access data of the timeframe lower than that used for testing/optimization. These limitations are connected with the impossibility to obtain data of lower or non-multiple timeframes out of the bars generated during testing/optimization"
How do you get around this problem? Theres a bug in the function so i cant look at lower timframes?
Bear in mind its only when i test in open prices mode the everytick appears to work?
![ERROR wrong timeframe request in Open Prices testing mode ERROR wrong timeframe request in Open Prices testing mode](https://c.mql5.com/36/52/error-wrong-timeframe-request-in.jpg)
- 2013.11.30
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, why on the following do i get error "wrong timeframe request in open prices testing mode error" when i test on the 15m timeframe?
How do you look at different timeframes in mql5?