Trading forum, automated trading systems and trading strategy testing
use 2 charts in the strategy tester
Vinicius Pereira De Oliveira , 2024.05.07 02:19
[ . . . ], I did some research on this problem, but apparently, so far, there is still no (simple) solution... Objects can only be included/viewed in the timeframe selected in the Strategy Tester and are deactivated in other timeframes as a way to speed up the process . You can see below some topics in the English section of the forum that report the same difficulty:
- Strategy Tester Visualization and Indicators - Strategy Tester - Expert Advisors and Automated Trading - MQL5 programming forum
- MT5 Multitimeframe Backtest and Indicator draw trendline - Price Chart - General - MQL5 programming forum
- create object on second timeframe in Strategy tester MQL5. - Strategy Tester - Expert Advisors and Automated Trading - MQL5 programming forum
On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
Download history in MQL4 EA - MQL4 programming forum - Page 3 #26.4 (2019)
On MT5: Unless the current chart is that specific pair/TF, you must synchronize the terminal Data from the Server before accessing candle/indicator values.
Error 4806 while using CopyBuffer() - Expert Advisors and Automated Trading - MQL5 programming forum #10 (2020)
Is it mystical?! It is! - Withdraw - Technical Indicators - MQL5 programming forum (2019)
Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5
Synchronize Server Data with Terminal Data - Symbols - General - MQL5 programming forum #2 (2018)
SymbolInfoInteger doesn't work - Symbols - General - MQL5 programming forum (2019)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
In the following code the EA is working perfectly fine if I drag it into the chart
But in the strategy tester it shows the previous bar high and low and not the daily (tested on the 5M chart)