Original (English)

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:

  • Colors can be defined as hexadecimal numbers just as in HTML pages, in the form 0xTTRRGGBB (e.g., 0x000000FF = opaque blue, 0x80FF0000 = half transparent red). The transparency TT runs from 0 (full opaque) over 80 (half transparent) to FF (full transparent).
  • Some colors are predefined: RED, GREEN, BLUE, CYAN, DARKBLUE, LIGHTBLUE, PURPLE, YELLOW, MAGENTA, ORANGE, DARKGREEN, OLIVE, MAROON, SILVER, GREY, BLACK. +TRANSP can be added for 50% transparency.
  • For generating color ranges dependent on a variable, use the color function.

Example:

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

See also:

plot, color, plotScale, performance

 

► latest version online

Übersetzung (Deutsch)

Farben

ColorUp

ColorDn

Farben für die weißen und schwarzen Kerzen (Standard: ColorUp = 0x00CCCCCC = hellgrau, ColorDn = 0x00222222 = dunkelgrau). Wenn beide Farben 0 sind, werden keine Preiskerzen im Hauptchart geplottet.

ColorEquity

Farbe für die Equity-Balken (Standard: 0x00666699 = blau-grau). Wenn auf 0, wird keine Equity-Kurve im Hauptchart geplottet.

ColorDD

Farbe für die "underwater equity" Balken (Standard: 0x00FF3333 = rot). Wenn auf 0, wird keine underwater equity im Hauptchart geplottet.

ColorWin

ColorLoss

Farben für die gewinnenden und verlierenden Trades (Standard: ColorWin = 0x0033FF33 = grün, ColorLoss = 0x00FF3333 = rot). Wenn beide Farben 0 sind, werden keine Trades im Hauptchart geplottet.

ColorBars[3]

Farben für die Balken auf Parameter-Charts. Standard: ColorBars[0] = Ziel (rot), ColorBars[1] = Gewinne (blau), ColorBars[2] = Verluste (blau-grau).

ColorPanel[6]

Standardfarben für die Zellen auf einem Steuerungs-Panel. ColorPanel[0] = Text-Hintergrund (hellgrau), ColorPanel[1] = Zahlen-Hintergrund (rötlich), ColorPanel[2] = editierbar (weiß), ColorPanel[3] = Button (blau), ColorPanel[4] = hervorgehobener Text (rot), ColorPanel[5] = ausgegrauter Text (grau).

Bereich:

0..0xFFFFFFFF

Typ:

long

Bemerkungen:

  • Farben können wie in HTML-Seiten als hexadezimale Zahlen definiert werden, im Format 0xTTRRGGBB (z.B. 0x000000FF = undurchsichtiges Blau, 0x80FF0000 = halbtransparentes Rot). Die Transparenz TT reicht von 0 (voll undurchsichtig) über 80 (halbtransparent) bis FF (voll transparent).
  • Einige Farben sind vordefiniert: RED, GREEN, BLUE, CYAN, DARKBLUE, LIGHTBLUE, PURPLE, YELLOW, MAGENTA, ORANGE, DARKGREEN, OLIVE, MAROON, SILVER, GREY, BLACK. +TRANSP kann für 50% Transparenz hinzugefügt werden.
  • Für die Erzeugung von Farbverläufen, die von einer Variable abhängig sind, verwende die color Funktion.

Beispiel:

function run()
    {
      ColorEquity = 0x0000FF00; // grüne Equity-Balken
      ColorDD = 0; // keine underwater equity
      ...
    }

Siehe auch:

plot, color, plotScale, performance

 

► latest version online