QuadRotationStrategy - Complete User Manual
1. Overview
QuadRotationStrategy is an advanced NinjaTrader 8 automated trading strategy that uses four stochastic indicators with different periods to identify high-probability entry and exit points. The strategy features intelligent exit management including Safety Net rotation exits, swing-based stop losses, and optional trailing stops.
Key Features:
- ✓ Four-indicator stochastic rotation system (9-3, 14-3, 40-4, 60-10)
- ✓ Automatic Safety Net exits to protect profits
- ✓ Swing-based stop loss placement
- ✓ Optional trailing stop functionality
- ✓ Real-time P/L display on chart
- ✓ Comprehensive trade statistics
- ✓ Optimization recommendations based on recent trades
- ✓ Fully customizable visual elements
↑ Back to Top
2. Installation Instructions
Step 1: Download the Strategy File
- Download QuadRotationStrategyV1.cs from the Google Drive link provided
- Save it to a location you can easily find (e.g., Desktop or Downloads folder)
Step 2: Import into NinjaTrader 8
- Open NinjaTrader 8
- From the Control Center, click Tools → Import → NinjaScript Add-On...
- Browse to the location where you saved QuadRotationStrategyV1.cs
- Select the file and click Open
- NinjaTrader will compile the strategy automatically
- You should see a message confirming successful import
Step 3: Apply to a Chart
- Open a chart (recommended: 1-minute chart on ES, NQ, or YM)
- Right-click on the chart → Strategies → QuadRotationStrategyV1
- The strategy will load with default settings
- Configure parameters as desired (see Parameter Settings Guide below)
Step 4: Verify Installation
You should see:
- Four stochastic indicators in the lower panel (yellow, blue, white, magenta lines)
- Statistics box (default: bottom left corner, yellow text)
- Optimization box (default: top right corner, cyan text)
↑ Back to Top
3. Strategy Concept
How the Quad Rotation Works
The strategy uses four stochastic indicators with different periods:
- 9-3 Stochastic (Yellow) - Fast, reactive
- 14-3 Stochastic (Blue) - Medium speed
- 40-4 Stochastic (White) - Slower
- 60-10 Stochastic (Magenta) - Slowest, trend confirmation
Entry Logic
LONG Entry Conditions:
- ALL four stochastics must be in oversold territory (below your Oversold Level, default 10)
- Then, ALL four stochastics must RISE ABOVE the oversold level (rotation begins)
- Price must stay in oversold territory for at least 2 bars (Bars in Direction setting)
- The 9-3 stochastic D-line must be ≤ 50 when the signal triggers
- The 60-10 stochastic must be > 10 (Extreme filter to avoid deep downtrends)
- Maximum 8 bars wait time (Max Wait Bars setting)
SHORT Entry Conditions:
- ALL four stochastics must be in overbought territory (above your Overbought Level, default 90)
- Then, ALL four stochastics must FALL BELOW the overbought level (rotation begins)
- Price must stay in overbought territory for at least 2 bars
- The 9-3 stochastic D-line must be ≥ 50 when the signal triggers
- The 60-10 stochastic must be < 90 (Extreme filter to avoid deep uptrends)
- Maximum 8 bars wait time
Exit Logic
The strategy has three exit methods (in order of priority):
1. Safety Net Exit (Highest Priority)
- Monitors the 9-3 stochastic D-line
- LONG exits when 9-3 D reaches overbought level (default 80)
- SHORT exits when 9-3 D reaches oversold level (default 20)
- Protects profits by exiting when momentum reverses
2. Trailing Stop (Second Priority - Optional)
- Activates after trade reaches specified profit threshold
- Follows price at specified distance
- Locks in profits as price moves favorably
- Only active if "Enable Trailing Stop" is turned ON
3. Swing-Based Stop Loss (Always Active)
- LONG: Placed below the lowest low of bars 1-5 at entry
- SHORT: Placed above the highest high of bars 1-5 at entry
- Adjustable offset in ticks (default: 1 tick)
- Protects against major adverse moves
↑ Back to Top
4. Parameter Settings Guide
1. Signal Generation
Oversold Level (Range: 5-20, Default: 10)
All four stochastics must reach this level or below to prepare a LONG signal.
• Lower values = more extreme oversold conditions required
• Recommendation: 10 for ES/NQ, 15 for choppier markets
Overbought Level (Range: 80-95, Default: 90)
All four stochastics must reach this level or above to prepare a SHORT signal.
• Higher values = more extreme overbought conditions required
• Recommendation: 90 for ES/NQ, 85 for choppier markets
Bars in Direction Required (Range: 1-5, Default: 2)
How many consecutive bars all stochastics must stay in oversold/overbought before signal.
• Higher values = more confirmation, fewer trades
• Lower values = faster signals, more trades
• Recommendation: 2 for balance between speed and confirmation
Max Wait Bars After Rotation (Range: 3-20, Default: 8)
How long to wait for entry conditions after rotation starts.
• Prevents stale signals
• Recommendation: 8-10 bars for 1-minute charts
2. Safety Net
Enable Safety Net Rotation Exit (Default: ON)
Master switch for Safety Net exits.
• Recommended: Always ON for profit protection
Safety Net Oversold Exit Level (Range: 10-30, Default: 20)
SHORT trades exit when 9-3 D reaches this level.
• Lower = let trades run longer, more risk
• Higher = exit sooner, less profit potential
• Recommendation: 20 (default), 25 (more conservative)
Safety Net Overbought Exit Level (Range: 70-90, Default: 80)
LONG trades exit when 9-3 D reaches this level.
• Higher = let trades run longer, more risk
• Lower = exit sooner, less profit potential
• Recommendation: 80 (default), 75 (more conservative)
3. Stop Loss
Enable Stop Loss (Default: ON)
Master switch for swing-based stop loss.
• Recommended: Always ON for risk management
Stop Offset Ticks (Range: 0-50, Default: 1)
Additional ticks beyond the swing high/low for stop placement.
• Example: If swing low is 6900.00 and offset is 2 ticks, stop is at 6899.50
• Higher offset = more room, fewer false stops
• Lower offset = tighter stops, more risk of premature exit
• Recommendation: 1-2 ticks for ES/NQ
Enable Trailing Stop (Default: OFF)
Activates trailing stop functionality.
• Works alongside Safety Net (Safety Net has priority)
• Recommended: Test both ON and OFF to see which suits your style
Trailing Stop Distance (Ticks) (Range: 1-50, Default: 8)
How many ticks behind price the trailing stop follows.
• Example: Price at 6910.00, distance 8 ticks → trailing stop at 6908.00
• Smaller distance = tighter trailing, more protection, less profit potential
• Larger distance = looser trailing, more profit potential, less protection
• Recommendation: 6-10 ticks for ES/NQ
Trailing Stop Activation (Ticks Profit) (Range: 0-100, Default: 4)
Trade must be this many ticks in profit before trailing stop activates.
• Prevents trailing stop from activating too early
• Example: Trade at +4 ticks → trailing stop activates
• Recommendation: 4-6 ticks for ES/NQ
↑ Back to Top
5. Understanding the Chart Display
Entry Signals
LONG Entry:
- Green vertical line through the bar
- "QR Long" label above the bar
- Red reference box showing 5-bar swing range (where stop is calculated)
- Label showing: "Low: XXXX.XX" and "Stop: XXXX.XX"
SHORT Entry:
- Orange vertical line through the bar
- "QR Short" label below the bar
- Blue reference box showing 5-bar swing range
- Label showing: "Hi: XXXX.XX" and "Stop: XXXX.XX"
Exit Signals
Exit labels appear 20 ticks above (for LONGS) or below (for SHORTS) the exit bar:
- SafetyExit = Safety Net rotation exit triggered
- TrailStop = Trailing stop exit triggered
- StopLoss = Swing-based stop loss hit
P/L Display:
- Green text = Profitable trade
- Red text = Losing trade
- Format: "SafetyExit\n$12.50" (exit reason on line 1, P/L on line 2)
↑ Back to Top
6. Statistics Box Explained
The statistics box (default: bottom left, yellow text) shows comprehensive performance metrics:
══ STATS (LAST 30) ══
Total 30 W18 L12 BE0
WR:60.0% PF:2.00
Net $512.50 Avg $17.08
MaxDD $93.75
────────────────────
LONG 17 W12 L5
WR:70.6% Net $675.00
────────────────────
SHORT 13 W6 L7
WR:46.2% Net $-162.50
────────────────────
SafetyNet 19 $267.50
TrailStop 6 $216.25
StopLoss 5 $-113.75
Other 0
════════════════════
What Each Line Means:
Overall Section:
- Total 30 = Number of trades analyzed (last 30)
- W18 L12 BE0 = 18 Winners, 12 Losers, 0 Breakeven
- WR:60.0% = Win Rate percentage
- PF:2.00 = Profit Factor (gross profit / gross loss)
- Net $512.50 = Total net profit/loss
- Avg $17.08 = Average profit per trade
- MaxDD $93.75 = Maximum drawdown experienced
Exit Methods Section:
- SafetyNet 19 $267.50 = 19 exits via Safety Net, total P/L from these exits
- TrailStop 6 $216.25 = 6 exits via Trailing Stop, total P/L
- StopLoss 5 $-113.75 = 5 exits via Stop Loss, total P/L
- Other 0 = Manual or other exits
How to Use Statistics:
- Win Rate < 50% → Consider tightening entry filters or adjusting exit levels
- Profit Factor < 1.5 → Strategy may not be profitable enough
- Long vs Short imbalance → Consider disabling underperforming direction
- High StopLoss exits with negative P/L → Stop placement may be too tight
- Low SafetyNet exits → Consider adjusting Safety Net levels
↑ Back to Top
7. Optimization Recommendations
The optimization box (default: top right, cyan text) analyzes your last 30 trades and suggests the most profitable parameter combination:
══ BEST SETTINGS ══
You Made: $152.50
Could Make: $310.25
Difference: $157.75
(+103.4% better)
───────────────────
Use BOTH Methods
SafetyNet: 90
TrailStop: 8 ticks
Activate: 4 ticks
═══════════════════
Understanding the Recommendations:
"Use ONLY SafetyNet"
- Turn OFF trailing stop
- Keep Safety Net enabled
- Shows the recommended exit level (e.g., "Exit Level: 85")
"Use ONLY TrailStop"
- Turn OFF Safety Net
- Enable trailing stop
- Shows recommended distance and activation levels
- Example: "Distance: 8 ticks, Activate: 4 ticks"
"Use BOTH Methods"
- Keep both Safety Net and Trailing Stop enabled
- Shows optimal settings for each
- Example: "SafetyNet: 90, TrailStop: 8 ticks, Activate: 4 ticks"
Important Notes:
- ⚠ Past performance does not guarantee future results
- ⚠ Test recommendations in SIM before going live
- ⚠ Recommendations update every bar based on recent trades
- ⚠ Use recommendations as guidance, not absolute rules
↑ Back to Top
8. Best Practices
1. Start with Simulation
- ALWAYS test the strategy on SIM account first
- Run for at least 100 trades before considering live trading
- Verify statistics match your expectations
2. Timeframes and Instruments
Recommended:
- 1-minute charts on ES, NQ, YM (micro or standard contracts)
- 2-minute charts on less liquid instruments
Not Recommended:
- Tick charts (strategy uses bar-based logic)
- Charts > 5 minutes (signals may be too slow)
3. Market Conditions
Best Performance:
- Range-bound or slightly trending markets
- Normal volatility conditions
Reduced Performance:
- Strong trending markets (use 60-10 extreme filter)
- Very low volume periods (signals may be unreliable)
- Major news events (consider pausing strategy)
↑ Back to Top
9. Troubleshooting
Problem: No trades are being generated
Possible Causes:
- Filters too restrictive → Try lowering Oversold/raising Overbought levels
- Enable Long/Short Trades turned OFF → Check Position Management settings
- Market not rotating → Strategy requires rotation pattern
- Bars in Direction too high → Try reducing from 3 to 2
Solution:
- Check NinjaTrader Output Window (F5) for Print statements
- Verify all four stochastics are present in lower panel
Problem: Too many trades getting stopped out
Possible Causes:
- Stop too tight → Increase Stop Offset Ticks
- Safety Net too aggressive → Adjust Safety Net levels
- Choppy market → Strategy performs better in clearer conditions
Solution:
- Increase Stop Offset to 2-3 ticks
- Disable Safety Net temporarily to see if trades would have been profitable
- Check Optimization box recommendations
Problem: Can't see P/L labels on chart
Solution:
- Enable "Show P/L on Chart for Each Trade"
- Increase "Exit/P/L Font Size" to 12-14
- Check that exits are actually occurring (check stats box)
↑ Back to Top
⚠ IMPORTANT LEGAL NOTICE
This trading strategy is provided for educational and informational purposes only.
- Past performance is not indicative of future results
- Trading futures and derivatives involves substantial risk of loss
- You should only trade with capital you can afford to lose
- Always test strategies in simulation before trading live
- The strategy developer and distributor assume no liability for trading losses
- You are solely responsible for your trading decisions
By using this strategy, you acknowledge that you understand the risks involved in futures trading and accept full responsibility for your trading results.
Thank you for using QuadRotationStrategy!
For the latest updates, documentation, and support, visit: [Your Website URL]
Last Updated: December 2025