Changes

Jump to navigation Jump to search

Plot

314 bytes added, 13:41, 19 February 2012
m
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>
Text: <syntaxhighlight>PlotN<[[PlotNOffset]>(Expression <,"StringPlotName"<,PlotColor <,Scanner Cell Background Color <,LineWidth >>>>)]] </syntaxhighlight>
Parameters inside the angled brackets are optional Text use:
==== Parameters ==== [[N]] - a number used to identify the plot<syntaxhighlight>PlotN("String"); plot numbers can range from 1 to 999 </syntaxhighlight>
Parameters inside the angled brackets are optional - if these aren't set, the [[OffsetDefault|default]] - 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 is used.
[[Expression]] == Parameters == :'''N''' - a number used to identify the numerical expression plot; plot numbers can range from 1 to be plotted 999.
[[PlotName]] :'''Offset''' - an optional parameter; assigns a name 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.
[[PlotColor]] :'''Expression''' - 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, [[PlotName]] parameter must also be usedplotted.
[[Scanner Cell Background Color]] :'''PlotName''' - an optional parameter; sets the background color of the scanner cell if this plot is applied to assigns a scanner; use the word [[Default]] name 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 usedplot.
[[LineWidth]] :'''PlotColor''' - an optional parameter; specifies the plot line width, ranging from 1 to 14color. ::Plot line width color can be specified as 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 line width color chosen by the user. In order for [[LineWidth]] PlotColor to be used, [[the '''PlotName,]] [[PlotColor,]] and [[Scanner Cell Background Color]] parameters ''' 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 [[String: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|default ]] plot color and line width:
<syntaxhighlight>Plot1(Close);</syntaxhighlight>
Plot the closing price using the [[Default|default ]] plot color and line width, and name the plot "Close":
<syntaxhighlight>Plot1(Close,"Close",Default,Default,Default);</syntaxhighlight>
<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