The documentation for MAX()
states:
input
Indicator source data (?)
period
Number of bars used in the calculation
with a code example of:
----- BEGIN -----
// Prints the highest high value over the last 20 periods
double value = MAX(High, 20)[0];
Print("The current MAX value is " + value.ToString());
----- END ------
Specifically the portion of the comment: "last 20 periods"...
If I wrote MAX(High, 20)[10] does the period parameter always "look back"?
Ex: From Bar[10] to Bar[30] ?
Can I slide the period value in different directions / time?
Ex: using MAX(High, 20)[10] can I get the High from Bar[0] to Bar[20] ?
Sorry if I'm not making sense...
In a nutshell: Is the period parameter always (for lack of a better term) retrospective?
Thank You,
Robert
Comment