OPEN-SOURCE SCRIPT

Futures Trading Hours RSI Strategy

1 654
Futures Trading Hours RSI Strategy

A lightweight, session-filtered RSI strategy designed for equity-index futures (e.g. NQ, ES, YM) on a 30-minute chart. It dynamically enters long when RSI crosses above your oversold threshold and short when RSI crosses below your overbought threshold—but only during regular U.S. trading hours (08:30–15:00 CT, Monday–Friday). All positions are set to close at 15:00 CT to avoid overnight risk, and optional background shading highlights your open longs (green) and shorts (red).



Key Features
• RSI-based entries: configurable length, oversold, and overbought levels
• Session filter: trades only between 08:30–15:00 CT, Monday through Friday
• Automatic exit: closes all positions at or after 15:00 CT each day
• Visual cues: optional background shading for open long/short positions
• Easy customization: adjust length, overSold, overBought, and time offsets

Backtest Performance (NQ Jun 2025, 30 min)
• Total P&L: +$10,230 (+1.02%)
• Profit Factor: 4.61
• Win Rate: 57.1% (4 wins / 7 trades)
• Max Drawdown: $2,215 (0.22%)

(Results shown are for illustrative purposes only; past performance does not guarantee future returns.)

How to Use
1. Add this script to your 30-minute futures chart.
2. Tweak the RSI parameters and time-zone offset to suit your instrument.
3. Enable “background shading” if you’d like a visual reminder of open positions.
4. Run in paper-trade mode to validate performance before going live.



⚠️ Disclaimer: Trading carries risk. Always backtest and paper-trade before using real capital. Adjust position sizing and risk controls to your own tolerance.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.