Add in "int init()".
IndicatorBuffers(2); SetIndexBuffer(1,ExtMapBufferCustomIndicator);
Fix the following 2 lines.
ExtMapBufferCustomIndicator[i]=iCustom(NULL,0,s,20,40,0,i);//iCustom(NULL,0,s,20,40,0,0);
ExtMapBufferRSICustomIndicator[i]=iRSIOnArray(ExtMapBufferCustomIndicator,0,14,i);//iRSIOnArray(ExtMapBufferCustomIndicator,0,14,0);
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 am trying to plot the RSI of an indicator, "xxx.mq4", as follows:
but I get the following error on running: "RSIxxx [instrument],H1: array out of range in 'RSIxxx.mq4' (55,26)
The reference is to this line:
The custom indicator takes two integers as arguments, hence the 20,40 after the name of the Custom Indicator.
Any clues?