Changes

Jump to navigation Jump to search

Plot

229 bytes added, 17:11, 4 February 2012
no edit summary
Plots the specified numerical or string expression on a chart, up to 999 different plots can be used simultaneously.
Numerical: Plot offset, name, color, and plot line width can be specified by using the optional parameters.
Plot can plot a Numerical value of a Stringvalue:* '''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 ====Numericalusage: <syntaxhighlight>PlotN<[Offset]>(Expression <,"PlotName"<,PlotColor <,Scanner Cell Background Color <,LineWidth >>>>)</syntaxhighlight>
<syntaxhighlight>PlotN<[Offset]>(Expression <,"PlotName"<,PlotColor <,Scanner Cell Background Color <,LineWidth >>>>)</syntaxhighlight>  Textuse: [[ <syntaxhighlight>PlotN("String")]] ;</syntaxhighlight>
Parameters inside the angled brackets are optional
==== 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 scanner[[:Category:Real-Time_Market_Scanner|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 .
==== Example ==Examples ==
Plot the closing price using the default plot color and line width:
<syntaxhighlight>Plot1("Attention!");</syntaxhighlight>
Show the text "Attention!" on the status bar of the chart or in the scanner [[:Category:Real-Time_Market_Scanner|Market Scanner]] if the close price is greater than 100.
<syntaxhighlight>If close > 100 then Plot1("Attention!");</syntaxhighlight>
 
[[Category:Plotting]]

Navigation menu