The second parameter for close() should be a negative # per the knowledgebase yet the efs study below has a positive 1 as a second parameter and it plots. So, since close() does not compute one bar into the future, what does the second parmeter represent in:
Thanks
Wayne
The RelativeStrengthRatio.efs script found at: http://share.esignal.com/download.js...engthRatio.efs
has "var b = close(0, 1, vSym);" in line 38.
The efs KnowledgeBase has the following for close():
PHP Code:
close(0, 1, vSym);
Wayne
The RelativeStrengthRatio.efs script found at: http://share.esignal.com/download.js...engthRatio.efs
has "var b = close(0, 1, vSym);" in line 38.
The efs KnowledgeBase has the following for close():
close([nRelativeOffset] [, nNumBars [, Symbol ] ])
nRelativeOffset: Offset to bar. 0 is most recent bar, -1 is next bar, etc.
nNumBars: Number of bars to retrieve (a negative number)
Symbol: The symbol to retrieve data for.
Examples:
close(-1); gets the next-to-last close for the current symbol
close(0, "IBM"); gets the most recent close for IBM
close(0, -10, "INTC"); gets the last 10 closes for INTC and places them in an array
nRelativeOffset: Offset to bar. 0 is most recent bar, -1 is next bar, etc.
nNumBars: Number of bars to retrieve (a negative number)
Symbol: The symbol to retrieve data for.
Examples:
close(-1); gets the next-to-last close for the current symbol
close(0, "IBM"); gets the most recent close for IBM
close(0, -10, "INTC"); gets the last 10 closes for INTC and places them in an array
Comment