Moving Average of an Index
Posted: Thu Jan 21, 2016 2:50 pm
The way to get the indicator value for a different symbol (to the one currently selected) is to use the FML function. You can use the form FML(Sym, Indi) where symbol is the symbol you want to use and Indi is the indicator that you want to calculate for that symbol.I am trying to use the moving average of an index in a custom indicator I am writing. I tried MA(Sym2,50) where Sym2 is defined as $IUX under the parameters tab. It does not seem to work, but does compile. Is it possible to calculate the moving average of a data array other than "c"?
So, for your example you could use:
Code: Select all
FML(Sym2, 'MA(C, 50)');