plotcandle
Draws candles from four series of your own rather than from the chart’s bars. All four price series are required. The body, the wick and the border take separate colours, and each of the three is series-form.
plotcandle(series float open, series float high, series float low, series float close, const string title, series color color, series color wickcolor, series color bordercolor, const bool force_overlay) → void| Parameter | Type | Required | Description |
|---|---|---|---|
open | series float | yes | The open of each candle. Required. |
high | series float | yes | The high of each candle. Required. |
low | series float | yes | The low of each candle. Required. |
close | series float | yes | The close of each candle. Required. |
title | const string | no | The name of the drawing. Const-form. |
color | series color | no | The body’s colour. Series-form. |
wickcolor | series color | no | The wick’s colour. Series-form. |
bordercolor | series color | no | The border’s colour. Series-form. |
force_overlay | const bool | no | Sets this drawing’s overlay, separately from the script-wide setting. |
Returns void — void.
indicator("Recoloured candles")
plotcandle(open, high, low, close, title = "Candles", color = color.blue, wickcolor = color.gray, bordercolor = color.blue)See also bars and background
Part of the function index.
Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.