Plot

From MultiCharts
Jump to: navigation, search

Plots the specified numerical or string expression on a chart, up to 999 different plots can be used simultaneously.

Plot can plot a Numerical value of a String value:

  • Numerical: Plot offset, name, color, and plot line width can be specified by using the optional parameters.
  • String: Ability to show a user-defined text message on the status line of the chart or in the scanner.

Usage

Numerical usage:

PlotN<[Offset]>(Expression <,"PlotName"<,PlotColor <,Scanner Cell Background Color <,LineWidth >>>>)

Text use:

PlotN("String");

Parameters inside the angled brackets are optional - if these aren't set, the default value is used.

Parameters

N - a number used to identify the plot; plot numbers can range from 1 to 999.
Offset - an optional parameter; a numerical expression specifying the plot offset, in bars; a positive value will displace the plot to the left along the time axis, and a negative value will displace the plot to the right along the time axis.
Expression - the numerical expression to be plotted.
PlotName - an optional parameter; assigns a name to the plot.
PlotColor - an optional parameter; specifies the plot color.
Plot color can be specified by a numerical expression representing an RGB color number or a legacy color value, by one of 17 base color words, or by the word Default to specify the color chosen by the user. In order for PlotColor to be used, the PlotName parameter must also be used.
Scanner Cell Background Color - an optional parameter; sets the background color of the scanner cell if this plot is applied to a Market Scanner; use the word Default to specify the color chosen by the user. In order for Scanner Cell Background Color to be used, PlotName and PlotColor parameters must also be used.
LineWidth - an optional parameter; specifies the plot line width, ranging from 1 to 14.
Plot line width can be specified as a numerical expression or by the word Default to specify the line width chosen by the user. In order for LineWidth to be used, PlotName, PlotColor, and Scanner Cell Background Color parameters must also be used.
String - text to be displayed.

Examples

Plot the closing price using the default plot color and line width:

Plot1(Close);

Plot the closing price using the default plot color and line width, and name the plot "Close":

Plot1(Close,"Close",Default,Default,Default);

Plot the closing price, offset back by 3 bars, using the plot color of blue, using cell background color of green if this plot is applied to a scanner, line width of 3, and name the plot "Close 3 bars later":

Plot1[3](Close,"Close 3 bars later",Blue,Green,3);

Plot the closing price, offset forward by 3 bars, using the RGB color 2138336 (Orange), and name the plot "Close 3 bars ago":

Plot1[-3](Close,"Close 3 bars ago",2138336);

Plot the closing price using the legacy color value of 4 (Green) and name the plot "Close":

[LegacyColorValue=True];
Plot1(Close,"Close",4);

Show the text "Attention!" on the status bar of the chart or in the scanner.

Plot1("Attention!");

Show the text "Attention!" on the status bar of the chart or in the Market Scanner if the close price is greater than 100.

If close > 100 then Plot1("Attention!");