Hull MA Crossover

← strategies

Strategy

Methodology

This strategy is backtested on daily OHLCV price data across major US equity indices and ETFs. Entry and exit signals are generated from the strategy's indicators with no lookahead bias — trades execute at the open of the bar following the signal.

Performance metrics are computed per symbol and shown individually. The parameter optimization section (where available) runs a grid search over the strategy's key parameters, optimizing for Sharpe ratio. Transaction costs and slippage are not modeled.

The signal logic and indicator code for this strategy is shown in the methodology code section below.

Methodology

Hull Moving Average reduces lag by using weighted MAs of different periods. The HMA crossover fires faster than SMA/EMA crossovers while remaining smooth. Enters on fast HMA crossing above slow HMA.

Implementation

class HullMACross(Strategy):
    n_fast = 9
    n_slow = 18

    def init(self):
        self.hma_fast = self.I(_hma, self.data.Close, self.n_fast)
        self.hma_slow = self.I(_hma, self.data.Close, self.n_slow)

    def next(self):
        if crossover(self.hma_fast, self.hma_slow):
            self.buy()
        elif crossover(self.hma_slow, self.hma_fast):
            self.position.close()

Performance metrics

Total return+17.011%
Net profit$170,106
Gross profit$882,912
Gross loss$726,240
CAGR+1.833%
Annualized return+1.833%
Monthly average return+0.197%
Median monthly return-0.095%
Best month return+7.491%
Worst month return-8.078%
Rolling 1-month return+12.084%
Return per trade+0.127
Log return CAGR+13.330%
Compounded vs simple return difference-17.165%

Equity curves

Chart for symbol:

Charts & distributions

2024-10 → 2026-04 · 5-year daily data

Equity curve vs ^GSPC — buy/sell signals

Strategy equityIndex (normalized)▲ Buy▼ Sell

51 trades · green dashes = buy entries · red dashes = sell exits

Drawdown (underwater)

Rolling 1-month Sharpe

Rolling 1-month return (%)

Period return (≈ monthly)

Return distribution (bar returns)

MAE vs MFE (trades)

Rolling 12m Beta

Rolling 12m correlation

Monthly returns (run)

Performance Matrix

Total return+8.888%
Net profit$88,880
Gross profit$716,430
Gross loss$592,780
CAGR+2.594%
Annualized return+2.594%
Monthly average return+0.267%
Median monthly return-4.430%
Best month return+1.325%
Worst month return-12.006%
Rolling 1-month return+8.642%
Return per trade+0.166
Log return CAGR-35.748%
Compounded vs simple return difference-24.987%