Help file says:
// Prints the 20 period simple moving average of range
double value = SMA(Range(), 20)[0];
Print("The 20 period average of range is " + value.ToString());
But what happens if you have 2 time frames and you want it to be in your primary? Where does the "0" go to tell it that you want the 20 period SMA for the range for the primary time period?
Many thanks in advance,
Comment