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

开源脚本

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

想在图表上使用此脚本?

免责声明