×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

Ago

59 bytes added, 10:48, 7 February 2012
m
no edit summary
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. For example, ''Close 4 Bars Ago''.  Bars Ago can also be specified by using the bar offset notation that consists of a numerical expression enclosed in square brackets. For example, ''Close[4]''.
==== Usage ====
<syntaxhighlight>N Bars Ago</syntaxhighlight>
<syntaxhighlight>[N]</syntaxhighlight>
Where:
Where: [['''N]] ''' - a numerical expression specifying the number of bars back to reference.
==== Example ====
Plot the closing price of the previous bar:
<syntaxhighlight>Plot1(Close[2], "Close 2 bars ago");</syntaxhighlight>
 
[[Category:Data Information/General]]

Navigation menu