14.4
Energy Spark Spread
PYTHON PLUGIN
Miscellaneous
Spread
Description
Strategy 14.4: Trade spark spread (electricity - heat_rate * fuel) mean-reversion
Strategy Logic
Strategy 14.4: Energy Spark Spread Trading.
The spark spread is the theoretical gross margin from converting fuel
into electricity:
Spark Spread = P_electricity - H * P_fuel
where H is the heat rate (MMBtu per MWh, typically 7-10).
Trade when the spark spread diverges from its historical mean or the
cost of production:
- If spark spread is abnormally high: short electricity, long fuel
(expect reversion).
- If spark spread is abnormally low: long electricity, short fuel.
Hedge ratio: h = H * F_electricity / F_fuel
Required columns: electricity_price, fuel_price
Falls back to a close-based two-asset spread if needed.
Parameters
| Parameter | Default Value | Type |
|---|---|---|
| heat_rate | 8.0 | float |
| lookback | 120 | int |
| entry_z | 2.0 | float |
| exit_z | 0.5 | float |
Risk Configuration
| Risk Parameter | Value |
|---|---|
| Max Position Pct | 8.0% |
| Stop Loss Pct | 6.0% |
| Take Profit Pct | 10.0% |
| Max Drawdown Pct | 15.0% |