If HighDaily is an array it will not work. Your index references in an array work from element 0 to 1 to 2 and have nothing to do with the time of the bar. NumericSeries relates to price bars and the [0], [1] and [2] work back in time which is totally different. Numeric series relates to anything to do with the internal price bar tables that MC automatically sets up for you so you can access historic price bar related info. You can look inside all the functions you are using and see it they are numeric series. I am surprised the average function will even allow you to compile an array going into it.
Looking at the code in the Average function.
Code: Select all
inputs:
PriceValue( numericseries ),
Len( numericsimple ) ;
Average = Summation( PriceValue, Len ) / Len ;
It makes sense that HighDaily will give you an error when you try to submit it to the RSI function which is numeric series. Now if you changed HighDaily to a variable and put in an statement HighDaily=close then it would force HighDaily to be numeric series and the RSI statement would work.
You can hover your cursor over the variable and it will tell you if it is numeric simple or numeric series.