TradingView
a_dema
2022년 12월 1일 오후 12시 42분

Custom Candle Body Width 

Crude Oil FuturesNYMEX

설명

Over the specified bar range, plots a vertical line from open to close using the specified colors and line width (in pixels).
In effect, these look like thinner/thicker candle bodies.
The default candle bodies are made transparent over this range to make them appear hidden.

The indicator is capable of referencing the bar colors from another plot, using a technique of encapsulating the RGBT color value in a float value (plot to data window only recommended).
Refer to example code (which is commented out) in the source code.
코멘트
a_dema
Please note that due to the Pine Script execution model, it is not possible to re-trigger the barcolor() for historic bars upon a new realtime bar being printed.
This will, over time, result in wick-only bars from when this Custom Candle Body Width indicator was initially launched.
The workaround is to "reset" the indicator by opening the indicator settings, changing the Bar Count value by 1 and then changing it back.
더보기