HTF Candles by DGT

higher timeframe ( multi timeframe ) candles

a simple study introducing new pine function box.new
Phát hành các Ghi chú: Inspired by TradingView's Watermark publication, added my logo :)
Phát hành các Ghi chú: a tweak
Phát hành các Ghi chú: added some performance statistics
please note, values presented reflects the value from the beginning of the month, week, year etc, not for a month, a week etc long duration
Phát hành các Ghi chú: update

made htf candle color and transparency adjustable, thanks to new pine update

added optional fixed moving average display for both current time frame and selected higher time frame
Phát hành các Ghi chú: typo correction
Phát hành các Ghi chú: update

* enchanced statistical panel with multi time frame price distance to its MA (convergance/divergence) statistical info

* new color function made style coloring disappeared, so added them into the script options

* time frame selection for htf candle and ma's are now separated
Phát hành các Ghi chú: Added ability to display Heikin-Ashi Candles

The Heikin-Ashi technique averages price data to construct the chart where the formula for calculating each bar is different than standard candlestick charts. Heikin-Ashi chart is smoother (market noise filtered out) and easier to spot trends and reversals

Basics of how to interpret Heikin-Ashi candles
• Green candles signify an uptrend and if no lower "shadows" then a strong uptrend
• Candles with a small body surrounded by upper and lower shadows indicate a trend change
• Red candles indicate a downtrend and if no higher shadows then a strong downtrend

Day traders who need to exploit quick price moves may find Heikin-Ashi charts are not responsive enough to be useful
Phát hành các Ghi chú: quick update - added 15 Min TimeFrame option both for HTF Candle and Moving Average
Phát hành các Ghi chú: typo fix
Phát hành các Ghi chú: update

* added ability to plot second higher timeframe candle

* added ability to set alerts whenever new high/low detected on higher timeframe (both 1st and 2nd htf candle)

* added volume and volume average stats to info panel
Phát hành các Ghi chú: update

added higher time frame mini charts

special thnaks to @berkusacoin
Phát hành các Ghi chú: option added to enable/disable of current and higher time frame moving averages independently
Phát hành các Ghi chú: Update

Mini Charts
- are now available for all markets (due to Pine limitations it used to be only properly applicable on 7/24 open markets, thanks to Pine Team for the recent update that allow us to apply the concept on all markets)
- ability to specify number of bars (min 1, max 9)
- each bar includes OHLC info, Range and ATR Value (just hover over the each bar’s top). Additionally when high volatility is detected “⚡” sing will appear on top of the bar.
- Ability to display assistant lines either displaying the Range or including the range as Fibonacci levels

special thanks to @berkusacoin for his valuable suggestion

- Extended to include Moving Average crosses (Previously only HTF HIGH and LOW detection was available)

Phát hành các Ghi chú: a quick update, thnaks to @Arun_K_Bhaskar

Mã nguồn mở

Với tinh thần của TradingView, tác giả đã xuất bản tập lệnh theo mã nguồn mở, vì thế trader có thể dễ dàng hiểu và tùy chỉnh được. Bạn có thể sử dụng miễn phí, hoặc tùy chỉnh lại mã đã được cấp phép bởi Quy tắc Chung. Bạn có thể sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Bình luận

100 xu
+2 Phản hồi
dgtrd jebra
@jebra, 🙏
Phản hồi
500 xu
Phản hồi
dgtrd VonnyFX
@VonnyFX, thank you 🙏
Phản hồi
=^_^= DGT amazing =^_^=
500 xu
Phản hồi
dgtrd Meowella7777
@Meowella7777, thank You 🙏
+1 Phản hồi
@dgtrd Thank you for this wonderful indicator. I'm just wondering if it's possible to add alerts to this (green-bullish and red (bearish) ;)
200 xu
Phản hồi
dgtrd Portfolio_Punt
@Portfolio_Punt, thank you 🙏

you can add the folowin line at the end of script for the alert you have requested

alertcondition(cross(O0, C0), title="HTF Bull/Bear Candle Switch", message="Your Text{{exchange}}:{{ticker}}->\nPrice = {{close}},\nTime = {{time}}")
+3 Phản hồi
Hi @dgtrd, I am completely green on Pine sorry....When I add the code and publish it gives me the error of "Undeclared Identifier 'O0' ;" Would you or someone else please explain how to fix this error if it is a simple fix? Thanks a million!
Phản hồi
dgtrd seankmcmorrow
Hello @seankmcmorrow,

During the update of including second higher time frame (htf) candle plotting i have updated the code and moved calculations within a function, so the above statment become invalid.

BTW, i have added an alert to detect when new htf low/high is detected. I may exted alerts to cover also for candle sentimet changes
+2 Phản hồi