Intraday Intensity

← 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

Intraday Intensity Index measures where the close falls within the day's range, weighted by volume. Positive values indicate buying pressure. Enters long when the smoothed III crosses above zero.

Implementation

class IntradayIntensity(Strategy):
    n = 21

    def init(self):
        h,l,c,v = pd.Series(self.data.High), pd.Series(self.data.Low), pd.Series(self.data.Close), pd.Series(self.data.Volume)
        iii = (2*c - h - l) / (h-l).replace(0,1e-10) * v
        self.iii = self.I(lambda: iii.rolling(self.n).sum() / v.rolling(self.n).sum().replace(0,1e-10), name="III")

    def next(self):
        if self.iii[-1] > 0 and self.iii[-2] <= 0 and not self.position: self.buy()
        elif self.iii[-1] < 0 and self.position: self.position.close()

Performance metrics

Total return-1.580%
Net profit-$15,804
Gross profit$544,132
Gross loss$541,302
CAGR-0.765%
Annualized return-0.765%
Monthly average return-0.004%
Median monthly return-1.089%
Best month return+7.957%
Worst month return-8.789%
Rolling 1-month return+11.674%
Return per trade-0.043
Log return CAGR-7.715%
Compounded vs simple return difference-2.755%

Equity curves

Chart for symbol:

Charts & distributions

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

Equity curve vs ^GSPC — buy/sell signals

Strategy equityIndex (normalized)▲ Buy▼ Sell

33 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+15.561%
Net profit$155,610
Gross profit$721,320
Gross loss$527,430
CAGR+4.445%
Annualized return+4.445%
Monthly average return+0.445%
Median monthly return-2.751%
Best month return+1.948%
Worst month return-7.737%
Rolling 1-month return+7.723%
Return per trade+0.439
Log return CAGR-23.331%
Compounded vs simple return difference-25.567%