Chart variables

PlotBars

Maximum number of bars to plot in the chart, or 0 for plotting all bars (default). A positive number plots the bars from the start, a negative number from the end. Enter a small number for increasing the scale of the chart and zoom in to the start or to the end.

PlotStart

Start bar number of the chart. Can be used to start the chart at a certain bar, f.i. 10 bars before the opening a trade (for this set PlotBar = Bar-10; in the trade trigger code). If at 0 (default), the chart starts with the end of the LookBack period. 

PlotDate

Alternative start of the chart, as a date in the yyyymmdd format.

PlotScale

Candle width in pixels (default 5). Use a negative number for displaying hi-low bars instead of candlesticks. The candle width is automatically reduced when the chart becomes too big.

PlotBorder

The size of the border around the chart where the axis labels are displayed, in pixels (default: 50).

PlotWidth

Maximum chart image width in pixels (default 2000), or 0 for no chart. The candle width is accordingly reduced when the chart exceeds PlotWidth. Note that too-large chart images can't be displayed with most image viewers. The initial chart width in the interactive chart viewer is 600 pixels plus borders.

PlotHeight1

Height of the main chart with the price bars in chart images, in pixels (default 480). 

PlotHeight2

Height of additional charts (plot with type=NEW), in pixels (default 160). Also used for the parameter charts in training, and for determining the proportions of additional charts in the interactive chart viewer.

PlotPeriod

Period in minutes for updating the chart on the trade status page (default: 1440 = 1 day).

Range:

0..999999

Type:

int

Remarks:

See plot. For removing chart elements such as price candles or equity curves, set their Color to 0.

Example:

function run()
{
  PlotBars = 2000;
  ...
}

See also:

plot, profile, Color, StartDate

 

► latest version online