# US30 Trend-Following Trading Robot for cTrader
**Timeframe:** M15 | **Platform:** cTrader (cAlgo) | **Instrument:** US30 (Dow Jones Industrial Average)
## Overview
The **US30 Trading Robot** is a fully automated trend-following algorithm designed specifically for the US30 index on the cTrader platform. It combines **multi-timeframe analysis**, **adaptive market regime detection**, and **three distinct entry signals** to capture high-probability trend moves during the most active US trading hours.
The robot is built around the principle that **not all market conditions are created equal**. By continuously classifying the current market state, it only trades when conditions favor trend continuation — and stays flat during choppy or excessively volatile environments.
## Key Features
### Intelligent Market Regime Detection
The robot classifies the market into four real-time regimes using ADX and ATR analysis:
| Regime | Condition | Robot Behavior |
| **Strong Trend** | ADX ≥ strong threshold | Full position size, all signals active (incl. Momentum Burst) |
| **Weak Trend** | ADX between thresholds | Reduced position size (75%), standard signals only |
| **Ranging** | ADX below threshold | **No trading** — avoids whipsaw losses |
| **Volatile** | ATR spike detected | **No trading** — avoids erratic price action |
### Multi-Timeframe Confirmation
- **M15** (execution timeframe): Triple EMA alignment, ADX, RSI, MACD
- **H1** (filter timeframe): 100-period EMA directional filter ensures trades align with the higher-timeframe trend
### Three High-Probability Entry Signals
1. **EMA Crossover** — Catches fresh trend initiations when the fast EMA crosses the medium EMA, confirmed by full trend alignment, DI directional agreement, MACD histogram, RSI filter, and bullish/bearish candle confirmation.
2. **Pullback Entry** — Enters on retracements to the medium EMA within an ATR-based proximity zone, ideal for joining established trends at favorable prices.
3. **Momentum Burst** — Exclusive to Strong Trend regimes. Triggers when MACD histogram acceleration exceeds 130% of the prior bar, capturing explosive momentum moves.
### Dynamic ATR-Based Risk Management
- **Stop Loss**: Calculated dynamically using ATR × configurable multiplier — adapts to current volatility
- **Take Profit**: Derived from a customizable Risk:Reward ratio (default 1:2.5)
- **Position Sizing**: Automatic lot calculation based on account equity and risk percentage
### Advanced Trailing Stop System
A three-stage trailing mechanism protects profits as trades develop:
1. **Break-Even Stage** — Once price moves a configurable ATR distance in profit, the stop loss is moved to break-even (+ spread)
2. **Trailing Activation** — After a larger ATR-based threshold is reached, an active trailing stop engages
3. **Dynamic Trail Distance** — The trailing distance itself is ATR-based, automatically widening in volatile conditions and tightening in calm markets
### Built-In Safety Controls
- **Daily trade limit** (max 6 trades/day) — prevents overtrading
- **Daily loss cap** (3% of equity) — hard stop if the day goes against you
- **Max open positions** limit — controls overall exposure
- **Session filter** — only trades during US market hours (default 09:30–16:00 EST)