.jpg)
โจ Dynamic Trendline Pro Bot for cTrader - Automate Your Trendline Strategy! ๐
For the backtesting and live proving of these cBots, I am utilizing IC Markets: Visit IC Markets
My strategy is to copy: https://ct-sc.icmarkets.com/copy/strategy/100817
(Introduction) Tired of manually drawing trendlines and missing opportunities due to hesitation or distraction? ๐ฉ Discover Dynamic Trendline Pro Bot ๐ค, the cBot for cTrader designed to automatically identify key support and resistance levels and act on them with surgical precision. Free up your time and let the algorithm monitor the market 24/7 โฑ๏ธ, executing your trendline-based strategy objectively and tirelessly. Ideal for traders seeking a systematic approach on Forex, Indices, Commodities (like Oil and Gold) ๐, and other markets.
(Core Strategy) The heart of the bot is a sophisticated automatic trendline detection system. By analyzing the last N
candles (NumberOfCandles
), it identifies the most significant turning points to draw dynamic support and resistance lines ๐๐. You can choose whether to base the analysis on the absolute highs/lows (HighLow
) or the closing prices (Close
), with separate parameters for support and resistance (SupportPriceSource
, ResistancePriceSource
) for maximum flexibility.
The bot doesn't just draw lines; it actively trades when the price interacts with them, offering complete control over the entry logic:
- Breakout ๐ฅ: Enters the market when the price decisively breaks the line.
- Touch ๐๐: Reacts when the price touches the line, potentially for bounce/rejection trades.
- Approach ๐ค: Can even act when the price gets within a critical distance of the line (
ApproachDistancePips
).
For each of these 3 scenarios, and separately for support and resistance, you can define the desired action: ContinueTrend
โ
(follows the "natural" direction of the event), Invert
๐ (reverses the direction), or NoAction
๐ซ (ignores the event).
(Key Features & Flexibility)
- ๐ Automatic & Configurable Trendline Detection: Choose the lookback period and price source (Close vs High/Low) separately for S/R.
- โ๏ธ (Optional) Advanced Trendline Validation: Filter lines by minimum required touches or by slope angle.
- ๐ฅ Multi-Scenario Entry Logic: Leverage Breakouts, Touches, and Approaches with fully customizable actions (Continue/Invert/None) for each combination.
- ๐ฐ Flexible Position Sizing: Choose between Fixed Lots or Fixed Monetary Risk per trade.
- ๐ก๏ธ Advanced Position Management: Set separate limits for max Long/Short positions, specific SL/TP per direction, Trailing Stop, and Break-Even Stop.
- ๐ฆ Multiple Signal Quality Filters: Trade only when conditions are ideal with optional MA Trend, RSI Confirmation, and ADX Range filters.
- โก Powerful Override Modes: Handle volatile events with Manual or ATR-based "Force ContinueTrend" overrides.
- ๐ ๏ธ Highly Optimizable: Wide range of parameters allows for deep optimization across different instruments and timeframes.
โญ Optimized Backtests & Parameter Explanations Included! โญ This isn't just a tool; it's a potentially ready-to-use solution! Check the uploaded images to find:
- Optimized backtest results demonstrating potential performance on key assets like Gold, Oil, and Indices.
- Ready-to-use parameter sets derived from these optimizations, giving you a great starting point.
- Helpful explanations of the bot's main parameters in both Italian and English, making configuration easier. While these presets offer immediate value, remember the true power lies in its adaptability โ you can optimize this cBot for virtually any asset and timeframe!
(Technical Details) Platform: cTrader | Language: C# | Indicators Used: MA, RSI, ADX, ATR ๐ป
(Target Markets/Use Cases) Its extreme configurability makes the Dynamic Trendline Pro Bot suitable for various approaches and markets, including Forex, Indices, and Commodities. Ideal for those wanting to automate a trendline-based strategy while maintaining deep control over every aspect of execution and risk management. The numerous options make it an excellent candidate for optimization ๐ฌ and finding the perfect setup for one's trading style.
(Conclusion) Dynamic Trendline Pro Bot is more than just a line drawer: it's a complete, flexible, and automated trading system based on one of the most widespread technical analysis techniques. Optimize it according to your vision and let the bot work for you! ๐๐
Disclaimer: โ ๏ธ Trading foreign exchange, indices, and commodities carries a high level of risk and may not be suitable for all investors. Past performance is not indicative of future results. Backtest results and optimization presets shown in accompanying images are based on historical data and do not guarantee future profitability. Before deciding to trade, you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. This cBot is provided as-is, without any guarantee of performance or profitability. Use it at your own risk
For the backtesting and live proving of these cBots, I am utilizing IC Markets: Visit IC Markets
My strategy is to copy: https://ct-sc.icmarkets.com/copy/strategy/100817
Parameter Explanations for Dynamic Trendline Pro Bot
=====================================================
---[Trendline]---
Parameter: Number of Previous Candles
Group : Trendline
Function : Sets the lookback period (number of past candles) used to find the two significant points for drawing both support and resistance trendlines. A higher value considers a longer history.
Parameter: Support Price Source
Group : Trendline
Function : Determines which price point is used to find the lowest points for the **support** line. `Close`: Uses the lowest closing prices. `HighLow`: Uses the lowest low prices (wicks).
Parameter: Resistance Price Source
Group : Trendline
Function : Determines which price point is used to find the highest points for the **resistance** line. `Close`: Uses the highest closing prices. `HighLow`: Uses the highest high prices (wicks).
---[Trendline Validation]---
Parameter: Use Touch Validation
Group : Trendline Validation
Function : Enable (`true`) or disable (`false`) the additional check requiring trendlines to be confirmed by multiple price touches.
Parameter: Min Touches Required
Group : Trendline Validation
Function : If Touch Validation is enabled, sets the minimum number of candles (including the two base points) that must be near the trendline (within `Touch Tolerance`) for it to be considered valid. (e.g., 3 requires 1 additional touch).
Parameter: Touch Tolerance (Pips)
Group : Trendline Validation
Function : If Touch Validation is enabled, defines how close (in pips) a candle's price (Low for support, High for resistance, or Close if source is Close) must be to the trendline to count as a "touch".
Parameter: Use Slope Filter
Group : Trendline Validation
Function : Enable (`true`) or disable (`false`) filtering trendlines based on their angle. Helps discard lines that are too flat or too steep.
Parameter: Min Slope Angle (Absolute Degrees)
Group : Trendline Validation
Function : If Slope Filter is enabled, the trendline's calculated angle (absolute value, 0=horizontal, 90=vertical) must be greater than or equal to this value.
Parameter: Max Slope Angle (Absolute Degrees)
Group : Trendline Validation
Function : If Slope Filter is enabled, the trendline's calculated angle (absolute value) must be less than or equal to this value.
---[Support Actions]---
Parameter: Action On Support Breakout
Group : Support Actions
Function : Defines the action on support breakout: `ContinueTrend` (Sell), `Invert` (Buy), `NoAction` (Do nothing).
Parameter: Action On Support Touch
Group : Support Actions
Function : Defines the action on support touch: `ContinueTrend` (Buy - implies bounce), `Invert` (Sell), `NoAction`.
Parameter: Action On Support Approach
Group : Support Actions
Function : Defines the action on support approach: `ContinueTrend` (Buy - anticipates bounce), `Invert` (Sell), `NoAction`.
---[Resistance Actions]---
Parameter: Action On Resistance Breakout
Group : Resistance Actions
Function : Defines the action on resistance breakout: `ContinueTrend` (Buy), `Invert` (Sell), `NoAction`.
Parameter: Action On Resistance Touch
Group : Resistance Actions
Function : Defines the action on resistance touch: `ContinueTrend` (Sell - implies rejection), `Invert` (Buy), `NoAction`.
Parameter: Action On Resistance Approach
Group : Resistance Actions
Function : Defines the action on resistance approach: `ContinueTrend` (Sell - anticipates rejection), `Invert` (Buy), `NoAction`.
---[Trading - Size]---
Parameter: Position Sizing Mode
Group : Trading - Size
Function : Selects position sizing method: `FixedLots` (uses 'Volume' parameter) or `FixedRisk` (uses 'Fixed Monetary Risk' and Stop Loss to calculate volume).
Parameter: Volume (Lots - If FixedLots)
Group : Trading - Size
Function : The fixed position size in standard lots to use when 'Position Sizing Mode' is set to `FixedLots`.
Parameter: Fixed Monetary Risk (If FixedRisk)
Group : Trading - Size
Function : The amount of account currency to risk per trade when 'Position Sizing Mode' is set to `FixedRisk`. Requires a valid Stop Loss (>0 pips) to be set for the trade direction. The actual volume will be calculated based on this amount and SL distance.
---[Trading - General]---
Parameter: Approach Distance (Pips)
Group : Trading - General
Function : The distance in pips within which the price is considered to be "approaching" a trendline, potentially triggering an 'Approach' action.
---[Stop Loss / Take Profit]---
Parameter: Stop Loss Long (Pips)
Group : Stop Loss / Take Profit
Function : The initial Stop Loss distance in pips for Long (Buy) positions. Used also for Fixed Risk sizing calculation. Set to 0 to disable SL.
Parameter: Take Profit Long (Pips)
Group : Stop Loss / Take Profit
Function : The initial Take Profit distance in pips for Long (Buy) positions. Set to 0 to disable TP.
Parameter: Stop Loss Short (Pips)
Group : Stop Loss / Take Profit
Function : The initial Stop Loss distance in pips for Short (Sell) positions. Used also for Fixed Risk sizing calculation. Set to 0 to disable SL.
Parameter: Take Profit Short (Pips)
Group : Stop Loss / Take Profit
Function : The initial Take Profit distance in pips for Short (Sell) positions. Set to 0 to disable TP.
---[Break-Even]---
Parameter: Use Break-Even
Group : Break-Even
Function : Enable (`true`) or disable (`false`) automatically moving the Stop Loss to break-even (plus extra pips) once a certain profit is reached.
Parameter: BE Trigger (Pips in Profit)
Group : Break-Even
Function : The profit in pips required for the Break-Even function to activate and move the Stop Loss.
Parameter: BE Extra Pips (Beyond Entry)
Group : Break-Even
Function : The number of pips *beyond* the entry price where the new Break-Even Stop Loss will be placed (e.g., 1 pip covers typical commission/slippage).
---[Trailing Stop]---
Parameter: Use Trailing Stop
Group : Trailing Stop
Function : Enable (`true`) or disable (`false`) the Trailing Stop Loss function.
Parameter: TS Trigger (Pips in Profit)
Group : Trailing Stop
Function : The profit in pips required before the Stop Loss starts trailing the price.
Parameter: TS Distance (Pips)
Group : Trailing Stop
Function : The fixed distance in pips behind the current price (for Long) or above the current price (for Short) at which the Trailing Stop will be maintained.
---[Position Management]---
Parameter: Max Long Positions
Group : Position Management
Function : The maximum number of simultaneous Long positions allowed for this bot on this symbol.
Parameter: Max Short Positions
Group : Position Management
Function : The maximum number of simultaneous Short positions allowed for this bot on this symbol.
---[MA Trend Filter]---
Parameter: Use MA Trend Filter
Group : MA Trend Filter
Function : Enable (`true`) or disable (`false`) the Moving Average trend filter. If enabled, trades are only allowed if aligned with the MA direction.
Parameter: MA Period
Group : MA Trend Filter
Function : The lookback period for the Moving Average used in the trend filter.
Parameter: MA Type
Group : MA Trend Filter
Function : The calculation type of the Moving Average (e.g., Simple, Exponential, Weighted).
---[Entry Confirmation Filter]---
Parameter: Use RSI Confirmation Filter
Group : Entry Confirmation Filter
Function : Enable (`true`) or disable (`false`) the RSI confirmation filter. If enabled, trades require the RSI to be above/below specified levels.
Parameter: RSI Confirmation Period
Group : Entry Confirmation Filter
Function : The lookback period for the RSI indicator used for confirmation.
Parameter: RSI Confirm Level Buy (>=)
Group : Entry Confirmation Filter
Function : If the RSI filter is enabled, the RSI value (from the previous closed bar) must be greater than or equal to this level to confirm a Buy signal.
Parameter: RSI Confirm Level Sell (<=)
Group : Entry Confirmation Filter
Function : If the RSI filter is enabled, the RSI value (from the previous closed bar) must be less than or equal to this level to confirm a Sell signal.
---[ADX Range Filter]---
Parameter: Use ADX Range Filter
Group : ADX Range Filter
Function : Enable (`true`) or disable (`false`) the ADX range filter. If enabled, trades are blocked if the ADX value is below the threshold (indicating a weak trend or ranging market).
Parameter: ADX Period
Group : ADX Range Filter
Function : The lookback period for the ADX indicator.
Parameter: ADX Threshold Level (< Blocks)
Group : ADX Range Filter
Function : If the ADX filter is enabled, trades are blocked if the ADX value (from the previous closed bar) is *less than* this threshold level.
---[Trend Override]---
Parameter: Always Force ContinueTrend (Manual)
Group : Trend Override
Function : If set to `true`, this manually overrides all specific Action settings and the ATR override, forcing the bot to always take the `ContinueTrend` action (Buy on resistance break, Sell on support break).
Parameter: Use Automatic ATR Override
Group : Trend Override
Function : Enable (`true`) or disable (`false`) the automatic 'Force ContinueTrend' override based on ATR volatility. If enabled and high volatility is detected, forces `ContinueTrend` actions.
Parameter: ATR Period
Group : Trend Override
Function : The lookback period for the ATR indicator used for the volatility calculation in the automatic override.
Parameter: ATR Average Period
Group : Trend Override
Function : The lookback period for the Moving Average applied to the ATR indicator results, used to establish a baseline ("average") volatility for the threshold calculation.
Parameter: ATR Threshold Multiplier
Group : Trend Override
Function : The multiplier applied to the Average ATR. The automatic override activates if the Current ATR is greater than (Average ATR * Multiplier).
For the backtesting and live proving of these cBots, I am utilizing IC Markets: Visit IC Markets
My strategy is to copy: https://ct-sc.icmarkets.com/copy/strategy/100817