Trendbot
What is Trendbot?
The Trend Strategy is an automated trading system built around adaptive trend detection and volatility-based profit targeting. It uses a dynamic support/resistance indicator that automatically adjusts to market conditions, combined with ATR-derived exit levels that scale with current volatility.
Core Concept
Markets spend most of their time trending, but identifying when a trend starts and ends is the challenge. This strategy uses a volatility-adjusted trend indicator that filters out noise and only signals when price has made a statistically significant move beyond normal fluctuation. When the trend flips, the strategy flips with it.
How It Works
Trend Detection Engine
The strategy employs a dynamic trend-following algorithm that calculates a trailing threshold based on recent price action and volatility. This threshold acts as a moving line in the sand:
When price decisively breaks above the threshold, a bullish trend is confirmed
When price breaks below, a bearish trend is confirmed
Minor fluctuations within the volatility band are filtered out as noise
The sensitivity of this detection is controlled by a Factor parameter - higher values require larger moves to trigger a trend change, reducing false signals but potentially entering later. Lower values react faster but may whipsaw in choppy markets.
Signal Generation
Entries occur precisely at the moment of trend transition:
Long Entry: Triggered when the trend detection algorithm flips from bearish to bullish, indicating the start of a new uptrend.
Short Entry: Triggered when the algorithm flips from bullish to bearish, signaling a new downtrend.
Volatility-Adaptive Exits
Take profit levels are calculated dynamically using custom volatility detection signals
In volatile markets, profit targets widen automatically
In calm markets, targets tighten to capture smaller moves
This approach ensures the strategy adapts to changing market conditions rather than using fixed point targets that may be too tight in volatile periods or too wide in quiet ones.
Position Management
The strategy maintains a single position at all times, either long or short. When the trend flips:
The current position is reversed
A new volatility-adjusted take profit is calculated based on the new entry price
The position rides until either the profit target is hit or the trend reverses again
Risk Considerations
The strategy uses the trend indicator itself as an implicit stop loss - if the trend reverses before take profit is reached, the position flips rather than holding a losing trade against the new trend direction. This means losses are capped by the distance to the next trend reversal rather than a fixed stop.
Last updated