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

Aroon Up measures how recently the N-period high occurred; Aroon Down measures the N-period low. Enters long when Aroon Up crosses above Aroon Down (new highs forming), exits on the reverse crossover.

Implementation

class Aroon(Strategy):
    n = 25

    def init(self):
        self.aroon_up = self.I(_aroon_up, self.data.High, self.n)
        self.aroon_down = self.I(_aroon_down, self.data.Low, self.n)

    def next(self):
        if crossover(self.aroon_up, self.aroon_down) and not self.position:
            self.buy()
        elif crossover(self.aroon_down, self.aroon_up) and self.position:
            self.position.close()

Performance metrics

Total return+4.330%
Net profit$43,297
Gross profit$408,331
Gross loss$349,625
CAGR+0.359%
Annualized return+0.359%
Monthly average return+0.077%
Median monthly return-1.111%
Best month return+6.351%
Worst month return-7.774%
Rolling 1-month return+11.537%
Return per trade+0.246
Log return CAGR-0.861%
Compounded vs simple return difference-5.043%

Equity curves

Chart for symbol:

Charts & distributions

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

Equity curve vs ^GSPC — buy/sell signals

Strategy equityIndex (normalized)▲ Buy▼ Sell

14 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.031%
Net profit$80,310
Gross profit$316,860
Gross loss$224,390
CAGR+2.350%
Annualized return+2.350%
Monthly average return+0.232%
Median monthly return-0.582%
Best month return+6.702%
Worst month return-8.251%
Rolling 1-month return+9.629%
Return per trade+0.554
Log return CAGR+5.390%
Compounded vs simple return difference-5.926%