1. Long first perpOpen long QQQ-PERP with the selected notional.
2. Short second perpOpen short SPY-PERP scaled by hedge ratio.
3. Net deltaThe pair is kept market-neutral through hedge sizing and PnL checks.
4. Monitor edgeCorrelation is checked on the selected timeframe and can trigger a fresh rotation.
5. RebalanceRenew and stop conditions keep the loop readable and controlled.
6. Exit guardStop loss, max loss and duration can halt the strategy automatically.