1,501
edits
(→Usage) |
(→Notes) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Returns the closing price. | Returns the closing price. | ||
== Usage == | |||
<syntaxhighlight>Close</syntaxhighlight> | <syntaxhighlight>Close</syntaxhighlight> | ||
==== | == Notes == | ||
* See [[High]] for the high price, [[Low]] for the low price and [[Open]] for the open price of a bar. | |||
* The range of returned values is limited by the [[MaxBarsBack]] setting. | |||
== Examples == | |||
Plot the closing price of the current bar: | Plot the closing price of the current bar: | ||
<syntaxhighlight>Plot1(Close,"Close");</syntaxhighlight> | <syntaxhighlight>Plot1(Close, "Close");</syntaxhighlight> | ||
Plot the closing price of the previous bar: | Plot the closing price of the previous bar: | ||
Line 16: | Line 20: | ||
<syntaxhighlight>Plot1(Close[2], "Close 2 bars ago");</syntaxhighlight> | <syntaxhighlight>Plot1(Close[2], "Close 2 bars ago");</syntaxhighlight> | ||
[[Category:Data Information/General]] | [[Category:Data Information/General]] |