OPEN-SOURCE SCRIPT
HTF Candles (Anchored) CS

How it works
Each candle is built from the bars on your chart (open of the first bar, highest high, lowest low, latest close). It does not use request.security.
The anchor is set in a time zone of your choice, so it stays at the same local time when clocks change.
A new candle also starts after a market gap of more than 12 hours, for example at the weekend reopen. The first candle of the week is therefore partial. This can be turned off.
The current candle updates live. The previous candle is final.
Optional line at the current candle's open price, off by default.
Settings
Anchor hour and minute, time zone
New candle after a market gap
Show open line of the current candle
Bull and bear colors, body and wick transparency, thick wicks
Notes
Works on intraday chart timeframes only (best on 1 to 15 minutes). Daily and higher timeframes show an error.
History depends on how many bars TradingView loads for your chart, so a 1-minute chart shows fewer days than a 15-minute one.
Candles come from your chart's data feed. Other feeds and brokers can differ slightly.
Not a signal indicator. It does not give buy or sell advice.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。