PlotMode

Determines what's plotted at the end of a test or when clicking [Result]. Use setf and resf for setting and resetting flags.

Flags:

PL_LONG  - begin the chart already with the LookBack period. Otherwise the chart begins a few bars before the test or trade period.
PL_ALL  - plot all asset specific curves, regardless of the selected asset (except for price curve and trades).
PL_ALLTRADES - plot all trades, regardless of the selected asset.
PL_FINE - plot the equity and price curves in a bit higher resolution.
PL_DIFF - plot the equity/balance difference, rather than the total value.
PL_FILE - export the chart to a .png image, rather than opening the chart viewer. The file name is composed from the script name, an optional asset name, and the LogNumber.

Type:

int

Example:

function run()
{
  ...
  setf(PlotMode,PL_ALL+PL_FINE);
  ...
}

See also:

plot, PlotScale, Colors, setf, resf. mode

 

► latest version online