Difference between revisions of "Ago"
Jump to navigation
Jump to search
(Created page with "Used in combination with Bar or Bars and a numerical expression to reference the bar a specified number of bars back from the current bar. Bars Ago can also be specif...") |
(→Usage) |
||
Line 3: | Line 3: | ||
==== Usage ==== | ==== Usage ==== | ||
− | + | <syntaxhighlight>N Bars Ago</syntaxhighlight> | |
or: | or: | ||
Line 10: | Line 10: | ||
− | Where: [[N]] - a numerical expression specifying the number of bars back to reference | + | Where: [[N]] - a numerical expression specifying the number of bars back to reference |
− | + | ||
==== Example ==== | ==== Example ==== | ||
Plot the closing price of the previous bar: | Plot the closing price of the previous bar: |
Revision as of 11:52, 19 January 2012
Used in combination with Bar or Bars and a numerical expression to reference the bar a specified number of bars back from the current bar. Bars Ago can also be specified by using the bar offset notation that consists of a numerical expression enclosed in square brackets.
Usage
N Bars Ago
or:
[N]
Where: N - a numerical expression specifying the number of bars back to reference
Example
Plot the closing price of the previous bar:
Plot1(Close Of 1 Bar Ago, "Previous bar's close");
Plot the closing price of two bars ago:
Plot1(Close[2], "Close 2 bars ago");