How can I get other Symbol Rates inside OnCalculate()?

 

How can I get other Symbol Rates inside OnCalculate()?

Thank you

 
Daniel Arges:

How can I get other Symbol Rates inside OnCalculate()?

Thank you

https://www.mql5.com/en/docs/series/copyrates
Documentation on MQL5: Timeseries and Indicators Access / CopyRates
Documentation on MQL5: Timeseries and Indicators Access / CopyRates
  • www.mql5.com
Gets history data of MqlRates structure of a specified symbol-period in specified quantity into the rates_array array. The elements ordering of the copied data is from present to the past, i.e., starting position of 0 means the current bar. If you know the amount of data you need to copy, it should better be done to a statically allocated...
 
Daniel Arges: How can I get other Symbol Rates inside OnCalculate()?
Perhaps you should read the manual.
          Timeseries and Indicators Access - Reference on algorithmic/automated trading language for MetaTrader 5
 

Thank you. I read the manual, and it worked. Now I just need to identify one function to bring the full array size of other Symbol CopyRates(), to make it dynamic. (Please see image).



Reason: