Thank you for your answer!
I have checkt the MACD_Buffer and it is correct, with the right values (so my MACD-Variables are right)
extern int RSI_Period = 20;
Is it right to write "i-1" because I want the indicator which uses "Previous Indicator's Data"? In the RSI_on_MACD-Buffer is always 0.
RSI_on_MACD[i]=iRSIOnArray(MACD_Buffer,limit,RSI_Period,i-1);
All I know about iRSIOnArry is what I have read in the documentation . . I'm not into Technical Indicators at all . . but it seems to me that limit should be > RSI_Period
for(i=0; i<limit; i++) MACD_Buffer[i]=iMACD(NULL,0, MACD_FastEMA, MACD_SlowEMA, MACD_SignalPeriod, PRICE_CLOSE, MODE_SIGNAL, 1);
all elements are set to the same value?for(i=0; i<limit; i++){ RSI_on_MACD[i]=iRSIOnArray(MACD_Buffer,limit,RSI_Period,i-1);
There is no element i-1 when i==0
Thank you very, very much!!!!
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
Hi,
I have programmed the following code:
But the value of the RSI_on_MA[] is always 0. Can you see why??