In Episode 429 of Trading Talk, Tom returns to the fundamentals by building and comparing two straightforward algorithmic trading models: a CCI and ATR range model and a moving average crossover trend model.
The episode explores how each approach responds to different market conditions, where its underlying logic may perform effectively and where it can begin to break down.
Building a CCI and ATR Range Model
The first model is designed for ranging market conditions.
The Commodity Channel Index, or CCI, helps identify when price has moved away from its statistical average. ATR provides information about current market volatility and can help define appropriate entry, exit and risk parameters.
This creates a basic rules-based model designed to respond when price moves toward the boundaries of a range.
However, range models can experience difficulty when the market establishes a strong and sustained directional move. Conditions that initially appear stretched can continue moving in the same direction.
Creating a Moving Average Crossover Model
The second model uses a simple moving average crossover to identify potential changes in market direction.
Unlike the range model, this approach attempts to participate in sustained trends rather than anticipating a return toward an average price.
Moving average crossovers can provide clear and repeatable trading rules. However, they can also produce repeated entry and exit signals when markets become sideways or directionless.
Comparing Range and Trend Strategies
Range and trend models are designed for different market environments.
A range model generally looks for price to return toward its average. A trend model attempts to follow directional momentum after it develops.
The comparison demonstrates why a trading strategy should be evaluated across multiple market regimes. A model that performs well during one set of conditions may struggle when volatility, direction or market structure changes.
Where Trading Models Can Break Down
A range model may accumulate exposure if price continues moving strongly in one direction. A trend model may suffer a sequence of losing trades when moving averages repeatedly cross during a sideways market.
Understanding these weaknesses is an important part of model development. Testing should examine drawdown, trade frequency, market exposure and behaviour during adverse conditions—not only overall historical returns.
Grid and Martingale-Style Risk
The episode also examines how grids and martingale-style position management can change a model’s risk profile.
Adding positions as the market moves against an initial trade can improve the average entry price. However, it can also increase exposure and drawdown if the directional movement continues.
Position sizing, exposure limits and equity protection should therefore be clearly defined before this type of management is introduced into a trading model.
Build and Test Models with Trade View X
Trade View X provides an environment for building, testing and analysing rules-based trading ideas.
Traders can use the platform to compare strategy logic, examine performance across different market conditions and better understand how changes to entry, exit and management rules affect model behaviour.
The 10th Annual Algo Trading Conference
This year marks Trade View’s 10th annual Algo Trading Conference.
The event will feature the unveiling of the Core Framework and the development of 10 new models inspired by insights from previous conference speakers.
Learn more about the Algo Trading Conference.
Key Points
- Build a basic range model using CCI and ATR
- Create a simple moving average crossover trend model
- Compare model behaviour across ranging and trending conditions
- Identify where range and trend strategies can break down
- Examine the risks associated with grids and martingale-style management
- Consider position sizing, exposure limits and equity protection
- Preview the Core Framework and Algo Trading Conference
Related Tools and Resources
Continue Exploring
- View All Trading Talk Episodes
- Explore the Algo Marketplace
- Discover My First Algo
- Visit the Algo Trading Conference
Trading involves risk. The information presented in Trading Talk is educational and does not constitute personal financial advice.


