OPEN-SOURCE SCRIPT

HTF - Candles with polylines

6 147
"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
ảnh chụp nhanh

• current timeframe 15 minutes, HTF: 1 Day
ảnh chụp nhanh

• current timeframe 1 hour, HTF: 1 Week
ảnh chụp nhanh

Enabling "curved" gives a nice visual effect:
ảnh chụp nhanh
"Pine - Apple" 😀
ảnh chụp nhanh


🔶 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.
ảnh chụp nhanh


🔶 SETTINGS

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

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.