OPEN-SOURCE SCRIPT
已更新 Trend Indicator A-V2 (Smoothed Heikin Ashi Cloud)

"Trend Indicator A-V2" and "Trend Indicator B-V2" are updated and improved versions of my initial trend indicators. Totally rethinking the code, adding highs and lows in the calculations, including some more customisation through colour schemes.
In practice, this indicator uses EMAs and Heikin Ashi to provide an overall idea of the trend.
Please, take into account that it is a lagging indicator.
In practice, this indicator uses EMAs and Heikin Ashi to provide an overall idea of the trend.
- The "Trend Indicator A-V2" is an overlay showing “Smoothed Heikin Ashi”.
- The "Trend Indicator B-V2" uses the same values in a different way to measure the momentum of the trend and identify potential trend rejections.
Please, take into account that it is a lagging indicator.
版本注释
Adding resolution customisation版本注释
-Added "MA Type" customisation possibility-Replaced the "colour schemes" feature by a "base color inputs" feature (user friendly, easy to customise)
-Switched the title names to English for a better understanding
-Minor script optimisation
版本注释
-changed ma_period defval to 7-changed ma_period defval_smoothing to 7
版本注释
-Updated the code to PineScript version 5-Major script refresh (script optimised using functions + aesthetic touches)
-Removed excessive smoothing via moving average for less lag (there was previously two smoothing phases, now there is only one)
-Added ALMA, HMA and ZLEMA to the "MA Type" input string. You can now chose between :
- 'ALMA' (Arnaud Legoux Moving Average)
- 'EMA' (Exponential Moving Average)
- 'HMA' (Hull Moving Average)
- 'SMA' (Simple Moving Average)
- 'SWMA' (Symmetrically-Weighted Moving Average)
- 'VWMA' (Volume-Weighted Moving Average)
- 'WMA' (Weighted Moving Average)
- 'ZLEMA' (Zero Lag Exponential Moving Average)
-Custom settings has been added for those who'd like to use ALMA.
- Shift range from 1 to 0. A shift of 1 will make the indicator follow the price exactly while something closer to 0 introduces more lag. Default value is set to 0.85
- Deviation represents the filter’s range. The lower the value, the less reactive to price changes it will be. Default value is set to 6
-Default MA period has been changed to 9 to get less false signals.
-Default ME type set to 'EMA' because most commonly used.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。