ZenAndTheArtOfTrading

Trend Strength Indicator

This indicator uses Heiken Ashi candle data to plot trend strength signals to your chart.

Bright Green: Heiken Ashi candle data is still putting in higher lows and higher highs, and the price closed above the previous low.
Dark Green: Heiken Ashi candle closed green, but had a lower low or lower high (trend weakening).
Bright Red: Heiken Ashi candle data is still putting in lower lows and lower highs, and the price closed below the previous high.
Dark Red: Heiken Ashi candle closed red, but had a higher low or higher high (trend weakening).

Optional: I included a setting for allowing high RSI values to overrule Heiken Ashi values (disabled by default).

This kind of indicator is best used for managing open positions rather than entering trades. It works on all timeframes and instruments.

Feel free to contact me if you have any questions :)

Regards,
- Matt

PS. Here's a snapshot of it against a Heiken Ashi chart for reference:

版本注释:
Added -1 offset value to trend strength bars so that they align properly with candles.
版本注释:
- Turned RSI override on by default to improve trend strength signal accuracy.
版本注释:
Added ability to reference higher timeframe
版本注释:
Removed HTF functionality as repainting issues were creating problems.

Indicator no longer repaints, and only uses the current timeframe data for signals.
版本注释:
-
- Converted to Pine Script version 4
- Several minor code improvements & optimizations
- Added candle offset (0 = use current bar data, 1 = use previous bar data)
版本注释:
Updated to Pine Script v5

My Resources Hub: theartoftrading.com
FREE YouTube Lessons: rebrand.ly/zyt
FREE Pine Script Basics Course: rebrand.ly/zpsbc
Pine Script MASTERY Course: rebrand.ly/zpsmc
My Indicators & Strategies: rebrand.ly/zmisc
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?