OPEN-SOURCE SCRIPT

Layout Padrao_HULL Version

This layout was inspired by the Andre Machado´s Tabajara set of rules.
The adaptation are the following:

-Usage of Hull Average instead of simple moving average
-Usage of 2 Averages instead of just one
-Implementation of a "transition zone"



Average Candle Color
p1 // p2 // Prior
> // > // > Set Color 1
> // > // < Set in your layout settings color (down candle)
> // < // > Set Color A1
> // < // < Set Color A2
< // > // > Set Color A1
< // > // < Set Color A2
< // < // > Set in your layout settings color (up candle)
< // < // < Set Color 2

The A1 // A2 colors are for the transition zone.

Either the average 1 or the average 2 will be lower than the previous average.

This is a way to show how both averages are developing without having to look at 2 additional lines, making the layout more clear (at least, for me).

Feel free to comment

PS: Thank you for all the people who have implemented Machado´s work in pine editor
Hull Moving Average (HMA)Moving AveragesTrend Analysis

开源脚本

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

想在图表上使用此脚本?

免责声明