PROTECTED SOURCE SCRIPT
Updated

HMA EA

4367
By default, the strategy works best on 1h timeframe. In theory, it should run well on any timeframe, but you will absolutely need to adjust the Hull Resolution. I recommend starting with 4x the current view (aka, if you are using 5m candles, set the resolution to 20min, which is 4 * 5m).

The settings are pretty self explanatory:
Start Month - Month of the year to begin backtest (automatically beings at 1st of month)
Risk Per Trade (%) - How much of your equity to risk on each trade.
Leverage - Amount of buying power/Margin you have available
Loss (pips) - Distance in pips from the entry to place Stop Loss
Profit (pips) - Distance in pips from entry to place target Take Profit
Trigger Trail (%) - Distance in percentage from entry to begin a trailing Stop Loss
Trail Dist. (pips) - Offset distance of trailing Stop Loss
Hull Res. (min) - Length of candle in minutes to use when calculating the HMA
Hull Period (bars) - Smoothing period for HMA
Release Notes
Lot of small fixes in the new version including:
  • Better backtest inputs (Year, Month,Day)
  • Ability to set minimum lot size
  • More granular Resolutioon settings

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.