Start by reading the manual, especially the examples. They all (including iCustom) return a handle (an int.)
You get that in OnInit. In OnTick you use the handle, shift and count to get the data.
Technical Indicators - Reference on algorithmic/automated trading language for MetaTrader 5
Timeseries and Indicators Access / CopyBuffer - Reference on algorithmic/automated trading language for MetaTrader 5
Technical Indicators - Reference on algorithmic/automated trading language for MetaTrader 5
Timeseries and Indicators Access / CopyBuffer - Reference on algorithmic/automated trading language for MetaTrader 5
Creating an iMA indicator handle, getting indicator values.
How
to start with MQL5 - General - MQL5 programming forum - Page 3 #22
2020.03.08
Also see my example for encapsulating calls
Detailed
explanation of iCustom - MQL4 programming forum
2017.05.23
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I need to convert this function from MQL4 to MQL5 I can't understand how to insert the two moving averages for the correlation calculation. The items Symbol1 and Symbol2 are variable, since the correlation is calculated on six Currency where Symbol1 is fixed and Symbol 2 is variable. How will I have to structure the handles and their CopyBuffers?