OPEN-SOURCE SCRIPT

Hull Moving Average based strategy

This is a simple Hull Moving Average based strategy using a short term HMA for signal generation and a long term HMA for filtering purposes.

A long entry is generated if the short term HMA changes direction from decreasing to increasing values and if the long term HMA indicates an uptrend (i.e. previous value < current value)
A short entry is generated if the short term HMA changes direction from increasing to decreasing values and if the long term HMA indicates a downtrend (i.e. previous value > current value)

Positions are closed using an ATR based stop loss/take profit system. Stop Loss (red) and Take Profit (blue) levels are plotted on the chart.
exitsignalHMAhullHull Moving Average (HMA)Moving Averages

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer