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
And yes, I am using ArraySetAsSeries() on the array before passing to iRSIonArray() ;). Here is an example:
Thanks,
Alan
double aPriceArray[30], aRSI[30],aRSI2[30]; int x; ArraySetAsSeries( aPriceArray, true ); for( x = 0; x < 30; x++ ) aPriceArray[x] = iClose( "GBPUSD", 43200, x ); for( x = 0; x < 30; x++ ) { aRSI[x] = iRSIOnArray( aPriceArray, 0, 14, x ); // Calculate using array aRSI2[x] = iRSI( "GBPUSD", 43200, 14, PRICE_CLOSE, x ); // Calculate using chart data // This prints out two quite different results Print( "bar: " + x + ", RSI: " + aRSI[x] + ", " + aRSI2[x] ); }