
DCX-20 Gamma - Reverse Breakout Trading Robot
Overview
DCX-20 Gamma is an advanced automated trading robot that implements a **reverse breakout (fade) strategy** using Donchian Channels. Unlike traditional breakout systems that follow momentum, this robot trades against breakouts, capitalizing on potential reversals and mean reversion opportunities.
Strategy Logic
Entry Signals (Reverse Breakout)
Bullish Breakout → SELL: When price breaks above the Donchian Entry upper band, the robot opens a SELL position (fading the breakout)
Bearish Breakout → BUY: When price breaks below the Donchian Entry lower band, the robot opens a BUY position (fading the breakout)
Exit Signals
SELL positions: Exit when price drops below the Donchian Exit lower band (return to lower range)
BUY positions: Exit when price rises above the Donchian Exit upper band (return to upper range)
Key Features
🎯 Core Strategy
- Reverse Breakout Trading: Fades breakouts instead of following them
- Dual Donchian Channels: Separate periods for entry (default: 20) and exit (default: 10)
- Strict Breakout Detection: Only trades on genuine breakouts (price was inside, now outside)
- Position Pyramiding: Supports multiple positions (configurable, default: 1)
🛡️ Risk Management
- ATR-Based Stop Loss: Dynamic SL calculated from Average True Range (default: 2.0x ATR)
- ATR-Based Take Profit: Optional TP based on ATR multiplier
- Break Even Protection: Automatically moves SL to entry price when profit threshold is reached
- Configurable Risk: All risk parameters are ATR-based for market-adaptive protection
🔍 Advanced Filters
- ATR Volatility Filter: Only trades when volatility exceeds threshold (optional)
- Spread Filter: Avoids trading during high spread conditions
- Time-Based Filtering: Restrict trading to specific hours
- Multiple Entry Protection: Limits maximum concurrent positions
📊 Money Management
- Fixed Lot Size: Simple fixed position sizing
- Dynamic Money Management: Optional balance-based position scaling
- Reference Balance: Base balance for money management calculations
🎨 Visual Indicators
- Auto-Colored Channels:
- Entry Donchian Channel: Cyan
- Exit Donchian Channel: Orange
- Chart Integration: Indicators automatically added to chart
⚙️ Optimization
- Advanced Fitness Function: Custom optimization algorithm focusing on:
- Robustness (minimum trade count)
- Sharpe Ratio
- Win Rate analysis
- Overfitting detection
- System Quality Number (SQN) approximation
Parameters
Strategy Settings
- Donchian Entry Period (default: 20): Period for entry signal detection
- Donchian Exit Period (default: 10): Period for exit signal detection
Risk Management
- SL ATR Multiplier (default: 2.0): Stop Loss distance in ATR multiples
- TP ATR Multiplier (default: 0): Take Profit distance (0 = disabled)
- BE Trigger ATR Multiplier (default: 0): Break Even trigger distance (0 = disabled)
Filters
- ATR Filter Period (default: 20): Period for ATR calculation
- ATR Threshold Multiplier (default: 0): Minimum volatility threshold (0 = disabled)
- Max Spread (Points) (default: 0): Maximum allowed spread (0 = disabled)
- Trade Start/End Hour: Trading time window
Position Management
- Max Positions (default: 1): Maximum concurrent positions (1-10)
- Quantity (Lots): Position size
- Use Money Management: Enable dynamic position sizing
- Reference Balance: Base balance for money management
How It Works
1. Breakout Detection: Monitors price action relative to Donchian Entry Channel (20 periods)
2. Reverse Entry: When a strict breakout occurs (price moves from inside to outside the channel), opens a position in the opposite direction
3. Exit Management: Closes positions when price returns to the opposite side of Donchian Exit Channel (10 periods)
4. Risk Protection: Continuously monitors and adjusts SL/TP based on ATR and profit levels
5. Real-Time Monitoring: Exit and Break Even logic runs on every tick for precise execution
Use Cases
- Mean Reversion Trading: Capitalizes on price returning to range after breakouts
- Counter-Trend Strategies: Profits from failed breakouts and reversals
- Range-Bound Markets: Effective in markets with strong support/resistance levels
- Volatile Markets: ATR-based risk management adapts to market conditions
## Recommended Settings
- Entry Period: 36, Exit Period: 56
- SL: 3.6x ATR, TP: 0.3, BE: 0.9x ATR
- Max Positions: 10
- ATR Filter: 0.2x threshold
## Important Notes
⚠️ **This is a counter-trend strategy** - it trades against breakouts, which can be risky in strong trending markets. Use appropriate risk management and test thoroughly before live trading.
## Support
For questions, issues, or customization requests, please refer to the robot's source code comments or contact the developer.
--
**Disclaimer**: Trading involves risk. Past performance does not guarantee future results. Always test strategies on demo accounts before live trading. Use appropriate risk management and never risk more than you can afford to lose.



.png)





.png)









.jpg)