Chart variables


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.


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. 


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


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.


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. Chart images only.


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


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.


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






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


function run()
  PlotBars = 2000;

See also:

plot, profile, Color, StartDate


► latest version online