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.
Color for the equity bars (default: 0x00666699 = blue-grey). If at 0, no equity curve is plotted in the main chart.
Color for the "underwater equity" bars (default: 0x00FF3333 = red). If at 0, no underwater equity is plotted in the main chart.
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.
Colors for the bars on statistics charts. Default: ColorBars = objective (red), ColorBars = wins (blue), ColorBars = losses (blue-grey).
Default colors for the cells on a control panel. ColorPanel = text background (light grey), ColorPanel = number background (red), ColorPanel = editable (yellow), ColorPanel = button (blue), ColorPanel = highlighted text (red), ColorPanel = grayed out text (grey).
- Colors can be defined as hexadecimal numbers just as in HTML pages, in the form 0xTTRRGGBB (f.i. 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.
ColorEquity = 0x0000FF00; // green equity bars
ColorDD = 0; // no underwater equity
plot, color, plotScale, performance
► latest version online