# Trend is your friend - cBot

A trend-following strategy that uses grid and pyramid trading with multiple entry modes and protection mechanisms.

Canonical: https://prismaticalgos.com/compendium/algo/12279-trend-is-your-friend-cbot
Record ID: 12279
Catalog rank: 1926 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://ctrader.com/products/3902
Evidence label (unverified): backtest_shown

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

Claim warnings: RECOVERY SIZING: position size increases after losses (martingale/grid/averaging). Equity curves look smooth until the run that does not recover - judge it on worst-case exposure, not win rate.

## Recorded profile

- symbols: AUDCAD, XAUUSD
- timeframes: H4, M15
- sessions: none specified
- market_regime: trending

## Indicators

- MA: {"period": 21}; applied to: highs and lows
- MA: {"period": 50}; applied to: highs and lows
- RSI: {"period": 14}; applied to: Not specified
- MACD: {"fast_period": 12, "signal_period": 9, "slow_period": 26}; applied to: Not specified
- Stochastic: {"d_period": 3, "k_period": 5, "smoothing_d": 3, "smoothing_k": 3}; applied to: Not specified
- Pivot: {"pivot_type": "daily"}; applied to: Not specified
- ATR: {"period": 14}; applied to: Not specified

## Recorded long-entry rules

- price pulls back to the edge of the fast band
- MA: price pulls back to the edge of the fast or slow band, within the distance you allow
- MA_CROSS: the fast band has just fully crossed the slow band
- PIVOT: price reaches the daily pivot level
- RSI: RSI has stayed beyond your level for two closed candles
- MACD: MACD crosses its signal line on a closed candle
- STOCHASTIC: %K crosses %D inside the oversold or overbought zone
- SAME_CANDLE_SERIE: N closed candles of the same colour in a row, while a trend is active
- TIME: one entry per day at a set hour and minute, in the direction of the trend
- MANUAL: you click, the robot does everything else

## Recorded short-entry rules

- price pulls back to the edge of the fast band
- MA: price pulls back to the edge of the fast or slow band, within the distance you allow
- MA_CROSS: the fast band has just fully crossed the slow band
- PIVOT: price reaches the daily pivot level
- RSI: RSI has stayed beyond your level for two closed candles
- MACD: MACD crosses its signal line on a closed candle
- STOCHASTIC: %K crosses %D inside the oversold or overbought zone
- SAME_CANDLE_SERIE: N closed candles of the same colour in a row, while a trend is active
- TIME: one entry per day at a set hour and minute, in the direction of the trend
- MANUAL: you click, the robot does everything else

## Recorded exit rules

- when the basket's total net profit hits your target
- when enough positions are in profit
- when price reaches a level you chose

## Recorded filters

- ATR volatility
- MA distance
- multi-timeframe confirmation
- trading hours
- trend direction locks

## Risk controls

- Stop loss: Basket stop loss in account currency, per direction or global
- Take profit: USD / PERCENT / USD_OR_PERCENT, per direction or global, profit target, % of positions in profit, when the % rule takes over, global TP price levels
- Position sizing: first lot or balance-based sizing. Grid and pyramid each use SAME_AS_ORDER / STEP / MARTINGALE / FIX_LOT
