TradingView
DasanC
Dec 19, 2018 6:59 AM

HMA EA 

British Pound / Japanese YenFOREX.com

Description

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
Comments
DasanC
DON'T USE THIS SCRIPT.
This strategy was published under Pinescript version 2, which has many bugs that create inaccurate results.

These bugs have lead to what's known as "repainting" and "future leak."

Sadly, this script is a victim of future leak and makes trade decisions based on future data, which is obviously not possible in the real world ;)

TV doesn't allow people to delete old posts or scripts, so hopefully this will suffice.
the_real_mazin
@EmpiricalFX, can I use this script now? Ive backtested and it shown great result
DasanC
@muhammedmazin365, Sure thing. It's open-source for that reason. Don't make it private and if you're interested in sales, pm me.
DasanC
@muhammedmazin365, Oh I didn't realize which script you commented on. No I won't be making this public. It doesn't work in reality.
Quizzkidd09
has this been updated yet? I'm getting some really good results, but i don't want a repainter!
DasanC
I'm pretty sure this script was affected by the Version #2 bug, so please give me some time to update it to Version #3 and attempt to optimize the settings to achieve the same results.
More