Is it possible for EA to access arrays of candles with different size than current Chart size?
I want my EA to perform some calculations on 1-minute candles but other on 1-hour candles. Can it be done?
You mean other timeframes ? yes it can be done ,but you must be ever-vigilant to request the correct candles and never assume data exists
already (downloaded) ,as William will point out .
The function linked to, opens a hidden chart for the symbol/TF in question (if not already open,) thus updating history, and temporarily
placing the symbol on Market Watch (if not already there,) so SymbolInfoDouble(symbol,
SYMBOL_BID) or MarketInfo(symbol,
MODE_BID) don't also return zero on the first call.
On MT5: Unless the chart is that specific
pair/TF, you must Synchronize the terminal Data from the Server. Is
it mystical?! It is! - Withdraw - Technical Indicators - MQL5 programming forum 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 SymbolInfoInteger
doesn't work - Symbols - General - MQL5 programming forum 2019.09.03