π·οΈ TAGLINE
AI-powered dynamic trendline trading bot for cTrader β breakout, touch and approach signals filtered through nine confirmation layers.
ββββββββββββββββββββββββββββ
π DynamicTrendlineProBot V24 β AI Sentiment Edition
A professional cTrader cBot that combines advanced dynamic trendline analysis with AI-driven market sentiment scoring.
ββββββββββββββββββββββββββββ
π§ WHAT IS IT?
DynamicTrendlineProBot automatically identifies dynamic support and resistance levels from the chart, reacts to breakouts, touches and approaches, and filters every trade through 9 confirmation layers β including an internal AI sentiment engine and optional connection to external AI APIs (GPT, Claude, custom models).
ββββββββββββββββββββββββββββ
β‘ KEY FEATURES
πΉ Auto-calculated dynamic trendlines updated every bar πΉ 3 interaction types: Breakout, Touch, Approach β each fully configurable πΉ Internal AI Sentiment with composite score from -100 to +100 πΉ External AI Sentiment via HTTP POST API πΉ Full Risk Management with daily/total drawdown, equity floor, loss streak cooldown πΉ Smart Pyramiding with lot multiplier πΉ Automatic Break-Even + Trailing Stop πΉ ATR Override for high-volatility conditions πΉ MA, RSI, ADX filters plus slope and touch validation πΉ Works on any asset and timeframe πΉ AccessRights.None β maximum security for the user
ββββββββββββββββββββββββββββ
π·οΈ TRADING β GENERAL
π Label β Tag that identifies the bot's trades. Must be unique if you run multiple instances on the same account.
π Size Mode β Choose between fixed volume (FixedLots) or automatic calculation based on risk percentage of balance (RiskPercent).
π Volume (Lots) β Fixed volume per trade, only used in FixedLots mode. Default: 0.01
π Risk % per Trade β Percentage of balance risked per trade. The bot automatically calculates the volume based on the stop loss. Default: 1.9%
π Approach Distance (Pips) β Distance in pips from the trendline to trigger an Approach signal. Default: 241
ββββββββββββββββββββββββββββ
π‘οΈ RISK MANAGEMENT
π Use Daily Drawdown Limit β Stops trading if the daily loss exceeds the threshold. Default: on
π Max Daily Drawdown % β Maximum daily loss relative to the start-of-day balance. Once hit, the bot pauses until the next day. Default: 5%
π Use Total Drawdown Limit β Stops trading if the total drawdown from peak equity exceeds the threshold. Default: on
π Max Total Drawdown % β Maximum drawdown from peak equity. Trading resumes automatically when equity recovers. Default: 15%
π Use Max Exposure Limit β Caps the total open lot exposure. Default: on
π Max Total Exposure (Lots) β Maximum combined lots across all open positions. Default: 1.0
π Use Equity Floor β Blocks trading when equity drops below a fixed amount. Default: off
π Equity Floor (Amount) β Minimum equity threshold in account currency. Default: 500
π Use Loss Streak Cooldown β Pauses trading after a series of consecutive losses. Default: on
π Consecutive Losses to Trigger β Number of consecutive losses to activate the cooldown. Default: 3
π Cooldown Bars After Streak β Number of bars the bot stays idle after a loss streak. Default: 5
π Reduce Size After Streak % β Volume reduction after a loss streak. 50% means the bot halves its lot size. Default: 50%
π Max Open Positions (All) β Maximum positions open at the same time, including long, short and pyramid entries. Default: 6
ββββββββββββββββββββββββββββ
π§ AI SENTIMENT β INTERNAL
The internal sentiment engine calculates a score from -100 (extreme bearish) to +100 (extreme bullish) by combining 4 technical components, each with a configurable weight.
π Use Internal Sentiment β Enables the internal sentiment filter. Default: on
π Sentiment RSI Period β RSI period for the momentum component. Default: 14
π Sentiment MA Period β Exponential moving average period for the trend component. Default: 50
π Sentiment Momentum Period β Lookback period for Rate of Change. Default: 10
π Sentiment BB Period β Bollinger Bands period. Default: 20
π Sentiment BB StdDev β Bollinger Bands standard deviation. Default: 2.0
π Minimum Score to Buy β Minimum score to allow a long entry. Default: 15
π Maximum Score to Sell β Maximum score (negative) to allow a short entry. Default: -15
π Sentiment Action Mode β BlockOnly just blocks non-conforming trades. ConfirmAndScale also scales the volume proportionally to signal strength. Default: ConfirmAndScale
π Scale Factor at Max Score β Maximum volume multiplier when the score is at its peak. Default: 1.5x
π RSI Weight % β Weight of the RSI component. Default: 30%
π MA Trend Weight % β Weight of the MA trend component (distance + slope). Default: 25%
π Bollinger Weight % β Weight of the Bollinger Band positioning component. Default: 20%
π Momentum Weight % β Weight of the Rate of Change component. Default: 25%
π‘ Example: RSI at 70 generates a +40 component, price above MA with positive slope +60, price near the upper BB +80, positive momentum +50 β weighted final score β +52 β Buy allowed (above the 15 threshold). If the score were +8 the Buy would be blocked.
ββββββββββββββββββββββββββββ
π AI SENTIMENT β EXTERNAL API
Optional connection to any AI API. The bot sends full market context (OHLCV candles, indicators, account data) and receives a sentiment score.
π Use External AI API β Enables the connection. Default: off
π API Endpoint URL β POST endpoint URL. Supports any service that returns JSON.
π API Key (Bearer Token) β Authentication token sent in the Authorization header.
π API Timeout (Seconds) β Maximum response timeout. Default: 10s
π Cache Duration (Minutes) β The bot won't call the API more than once every N minutes. Default: 5 min
π On API Failure β What to do if the API doesn't respond: AllowTrade proceeds anyway, BlockTrade blocks the trade. Default: AllowTrade
π External Min Score Buy β Minimum external score to allow a long. Default: 20
π External Max Score Sell β Maximum external score to allow a short. Default: -20
π Send OHLCV Data to API β Includes candle data in the payload. Default: on
π OHLCV Bars to Send β Number of bars included in the payload. Default: 20
π‘ Expected response format: { "score": -100..100, "signal": "buy|sell|neutral", "confidence": 0.0-1.0 } The parser is flexible and accepts several variants.
ββββββββββββββββββββββββββββ
π TRENDLINE β CALCULATION
π Previous Candles Number β Bar window used to calculate support and resistance. More bars = slower, more robust trendlines. Default: 185
π Support Price Source β HighLow uses candle lows, Close uses closing prices. Default: HighLow
π Resistance Price Source β HighLow uses candle highs, Close uses closing prices. Default: HighLow
ββββββββββββββββββββββββββββ
β TRENDLINE β VALIDATION
π Use Touch Validation β The trendline must have been touched at least N times to be considered valid. Default: off
π Min Touches Required β Minimum touches required (including the 2 defining points). Default: 7
π Touch Tolerance (Pips) β Tolerance to count a touch as valid. Default: 1.3 pips
π Use Slope Filter β Rejects trendlines with angles that are too flat or too steep. Default: off
π Min Slope Angle β Minimum acceptable angle in degrees. Default: 8.2Β°
π Max Slope Angle β Maximum acceptable angle. Default: 18.2Β°
ββββββββββββββββββββββββββββ
π― SUPPORT ACTIONS
What the bot does when price interacts with the support trendline.
π Action on Support Breakout β Price breaks support to the downside. Default: Invert (Buy) π Action on Support Touch β Price touches support and bounces. Default: NoAction π Action on Support Approach β Price approaches support within the configured distance. Default: ContinueTrend (Buy)
π― RESISTANCE ACTIONS
What the bot does when price interacts with the resistance trendline.
π Action on Resistance Breakout β Price breaks resistance to the upside. Default: NoAction π Action on Resistance Touch β Price touches resistance and reverses. Default: ContinueTrend (Sell) π Action on Resistance Approach β Price approaches resistance. Default: NoAction
π‘ ContinueTrend = trades in the natural direction. Invert = trades the opposite way. NoAction = ignores the signal.
ββββββββββββββββββββββββββββ
π΄π’ STOP LOSS / TAKE PROFIT
π Stop Loss Long β Default: 2500 pips π Take Profit Long β Default: 3000 pips π Stop Loss Short β Default: 2500 pips π Take Profit Short β Default: 3600 pips
Set to 0 to disable.
ββββββββββββββββββββββββββββ
βοΈ BREAK-EVEN
π Use Break-Even β Moves SL to breakeven (or into profit) once triggered. Default: off π BE Trigger (Profit Pips) β Profit in pips that triggers the move. Default: 1401 π BE Extra Pips β Additional pips beyond entry price (SL is placed in profit, not exactly at breakeven). Default: 530
ββββββββββββββββββββββββββββ
π TRAILING STOP
π Use Trailing Stop β Protects profit by following the price. Default: on π TS Trigger (Profit Pips) β Minimum profit before the trailing activates. Default: 801 π TS Distance (Pips) β Trailing distance from the current price. Default: 1401
ββββββββββββββββββββββββββββ
πΊ PYRAMIDING
π Use Pyramid β Adds positions in the same direction. Default: off π Pyramid after BreakEven β Adds a position when break-even is triggered. Default: off π Pyramid on Retrace (Pips) β Adds a position when price retraces N pips from the best price reached. Default: 381 π Pyramid Lot Multiplier β Volume multiplier for each pyramid level. Default: 1.5x π Max Pyramid Long Entries β Maximum additional long positions. Default: 3 π Max Pyramid Short Entries β Maximum additional short positions. Default: 3
ββββββββββββββββββββββββββββ
π POSITION MANAGEMENT
π Max Initial Long Entries β Maximum initial long positions (non-pyramid). Default: 1 π Max Initial Short Entries β Maximum initial short positions. Default: 1
ββββββββββββββββββββββββββββ
π TREND FILTER (MA)
π Use Trend MA Filter β Only allows Buy above MA, Sell below MA. Default: off π MA Period β Moving average period. Default: 20 π MA Type β Moving average type. Default: Simple
ββββββββββββββββββββββββββββ
π RSI CONFIRMATION FILTER
π Use RSI Confirmation Filter β Additional RSI-based entry confirmation. Default: off π RSI Confirmation Period β RSI period. Default: 8 π RSI Confirm Level Buy (>=) β Minimum RSI to allow a Buy. Default: 43 π RSI Confirm Level Sell (<=) β Maximum RSI to allow a Sell. Default: 68
ββββββββββββββββββββββββββββ
π ADX FILTER (SIDEWAYS MARKET)
π Use Sideways ADX Filter β Blocks trades when ADX is below threshold. Default: off π ADX Period β ADX period. Default: 14 π ADX Threshold Level β Trading is blocked below this value. Default: 2
ββββββββββββββββββββββββββββ
β‘ TREND OVERRIDE (ATR / MANUAL)
π Force Always ContinueTrend (Manual) β Manually forces breakout direction on all trades, bypassing filters and configured actions. Default: off
π Use ATR Override β When volatility (ATR) is above average, the bot enters high-volatility mode. Default: on
π ATR Panic Mode β In high volatility, bypasses ALL filters and trades in the breakout direction. β οΈ Use with caution. Default: off
π ATR Direction Only β In high volatility, forces breakout direction but keeps all filters active. Default: off
π ATR Period β ATR period for volatility detection. Default: 8
π ATR Average Period β ATR moving average baseline period. Default: 4
π ATR Threshold Multiplier β If current ATR > average ATR Γ this value, the override activates. Default: 0.7
ββββββββββββββββββββββββββββ
π§ TECHNICAL NOTES
πΈ AccessRights.None β no elevated permissions required, HTTP calls use cTrader's native interface πΈ Single .cs file, no external dependencies πΈ Compatible with any cTrader broker (hedging and netting) πΈ Works on forex, metals, indices, crypto β any asset and timeframe
ββββββββββββββββββββββββββββ
π REQUIREMENTS
πΈ cTrader 4.x or higher πΈ Demo or live account on any cTrader broker πΈ (Optional) AI API endpoint for external sentiment
ββββββββββββββββββββββββββββ
π© For custom configuration, parameter optimization or AI API integration, contact support.
DynamicTrendlineProBot V24 β AI Sentiment Edition Β© Algotrend