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.

PlotDate

Start date of the chart, in the yyyymmdd format. If at 0 (default), the chart starts with the end of the LookBack period.

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.

PlotWidth

Maximum chart 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.

PlotHeight1

Height of the main chart window with the price bars, in pixels (default 512).

PlotHeight2

Height of additional chart windows (plot with type=NEW), in pixels (default 128).

PlotPeriod

Period in minutes for updating the chart on the trade status page (default: 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