AddDataSeries alternative

Hello,

I am creating an indicator that requires multiple instruments on multiple timeframes. The problem is that I am getting this error: Not enough quota is available to process this command. I am using addDataSeries to access the bars of other instruments. I only need the last five candles of each instrument (ohlc).

Is there another method besides addDataSeries to access these values? Something that would use less memory?

Thanks in advance