fikira

HTF - Candles with polylines

"HTF - Candles with polylines" draws the previous Higher TimeFrame candles with the new feature polylines.


🔶 USAGE

This publication makes it possible to see Higher Time Frame (HTF) candles on current chart, so you can see the bigger picture without switching to a HTF
The current HTF is represented with a dashed-line box, covering the recent HTF open & close

🔹 Examples:

• current timeframe 1 minute, HTF: 4 hour

• current timeframe 15 minutes, HTF: 1 Day

• current timeframe 1 hour, HTF: 1 Week

Enabling "curved" gives a nice visual effect:
"Pine - Apple" 😀


🔶 DETAILS

The candle is made by starting a polyline at the bottom left. It then goes around, connecting the open-high-low-close values while making sure the width/height of the candle correspondends with the current timeframe candles. Arriving at the top left side, the polyline is connected back with the initial start point by setting the "closed" argument of polyline.new to "true".
-> closed (series bool) If true, the drawing will also connect the first point to the last point from the `points` array, resulting in a closed polyline.


🔶 SETTINGS

• HTF + "curved"
• colours [polylines - current open-close box]


LuxAlgo Dev: www.luxalgo.com
PineCoder: www.pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?