OPEN-SOURCE SCRIPT

Hull MA

Mis à jour
This Hull MA uses the default settings of the built-in MA. The basic idea is that we are in a buy setup when hull is below price, and a sell setup when hull is above price. The indicator is extended with slightly change in contrast when moving average is declining and it plot the ma/price crossovers: green dot when a buy setup is appearing, and red dot when a sell setup is forming. It is possible to hide crossovers in the option panel.

Three alert conditions is added "Hull MA cross", "Hull MA sell" and "Hull MA buy". I use "Hull MA cross" on slow frames (2w, M) and "Hull MA buy/sell" on faster frames.
Notes de version
Updated support of pinescript 4.
Changed sell and buy condition to use the built in crossover and crossunder method (maybe a little faster).
Added exchange, price, hull, volume and time variables to "Hull cross" alertcondition.
Change showCrossovers option default to true.
Notes de version
Pinescript 5 update.
Notes de version
Screenshot update.
Notes de version
Added crossover and crossunder combined alert condition.
HMAhullHull Moving Average (HMA)hullmovingaverage

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité