Foz:
Thanks. I'll check that out and make the change.
Regarding the getValue() and getValueAbsolute() functions....
3rd parameter (nNumBars) can be either positive or negative, depending upon how you are using it:
vHighs = getValue( "High", 0, -10 );
The above returns the most recent 10 highs. vHighs[0] will be the most recent high, vHighs[1] will be the high before that, etc.
vHighs = getValue( "High", -9, 10 );
Also returns the most recent 10 highs but in reverse order. vHighs[0] will be the high from 10 bars ago, vHighs[1] will be the high from 9 bars ago, etc.
Basically, the sign of the 3rd parameter indicates the direction in which the function should collect the data (e.g., either forward or backwards).
Regarding the constants..... no, I don't have a definitive list but, by the same token, I don't think there are that many of them out there. I will see what I can dig up.
Chris
Thanks. I'll check that out and make the change.
Regarding the getValue() and getValueAbsolute() functions....
3rd parameter (nNumBars) can be either positive or negative, depending upon how you are using it:
vHighs = getValue( "High", 0, -10 );
The above returns the most recent 10 highs. vHighs[0] will be the most recent high, vHighs[1] will be the high before that, etc.
vHighs = getValue( "High", -9, 10 );
Also returns the most recent 10 highs but in reverse order. vHighs[0] will be the high from 10 bars ago, vHighs[1] will be the high from 9 bars ago, etc.
Basically, the sign of the 3rd parameter indicates the direction in which the function should collect the data (e.g., either forward or backwards).
Regarding the constants..... no, I don't have a definitive list but, by the same token, I don't think there are that many of them out there. I will see what I can dig up.
Chris
Comment