Specifically, the code provided is:
// Prints the current value of a 20 period SMA using default price type
double value = SMA(20)[0];
Print("The current SMA value is " + value.ToString());
// Prints the current value of a 20 period SMA using high price type
double value = SMA(High, 20)[0];
Print("The current SMA value is " + value.ToString());
Is the 'default price type' mentioned above just the Close price? Is it possible to force it to be Close by writing
double value = SMA(Close, 20)[0];
Thanks!
Comment