Colors

ColorUp

ColorDn

Colors for the white and black candles (default: ColorUp = 0x00CCCCCC = bright grey, ColorDn = 0x00222222 = dark grey). If both colors are 0, no price candles are plotted in the main chart.

ColorEquity

Color for the equity bars (default: 0x00666699 = blue-grey). If at 0, no equity curve is plotted in the main chart.

ColorDD

Color for the "underwater equity" bars (default: 0x00FF3333 = red). If at 0, no underwater equity is plotted in the main chart.

ColorWin

ColorLoss

Colors for the winning and losing trades (default: ColorWin = 0x0033FF33 = green, ColorLoss = 0x00FF3333 = red). If both colors are 0, no trades are plotted in the main chart.

ColorBars[3]

Colors for the bars on parameter charts. Default: ColorBars[0] = objective (red), ColorBars[1] = wins (blue), ColorBars[2] = losses (blue-grey).

ColorPanel[6]

Default colors for the cells on a control panel. ColorPanel[0] = text background (light grey), ColorPanel[1] = number background (reddish), ColorPanel[2] = editable (white), ColorPanel[3] = button (blue), ColorPanel[4] = highlighted text (red), ColorPanel[5] = grayed out text (grey).

Range:

0..0xFFFFFFFF

Type:

long

Remarks:

Example:

function run()
{
  ColorEquity = 0x0000FF00; // green equity bars
  ColorDD = 0; // no underwater equity
  ...
}

See also:

plot, color, plotScale, performance

 

► latest version online