Description
DYNAMIC TRENDLINE PRO BOT V2.6.1
Automated trendline trading for cTrader, with session filters and prop firm risk management.
โโโโโโโโโโโโโโโโโโโโ
WHAT IT DOES
Dynamic Trendline Pro draws support and resistance trendlines on your chart and recalculates them on every new bar. It trades when price breaks, touches or approaches a line. For each of these six situations (3 events ร 2 lines) you choose the reaction: follow the trend, invert it, or do nothing.
V2.6.1 adds a full prop firm risk engine, a trading session filter with automatic daylight saving handling, and a set of fixes for position sizing and trade protection.
โโโโโโโโโโโโโโโโโโโโ
KEY FEATURES
โ
Automatic trendlines, drawn on the chart (support yellow, resistance blue, angle shown)
โ
Six independent entry scenarios: Breakout / Touch / Approach on Support and Resistance
โ
Optional filters: MA trend, RSI, ADX, slope angle, minimum touches
โ
ATR volatility override
โ
Break-Even, Trailing Stop and optional Pyramiding
โ
Risk-based position sizing (always rounds DOWN)
โ
Session filter: Asian, London, New York, Overlap, Custom (DST handled per market)
โ
Prop firm tools: daily/weekly loss limits, max drawdown, profit targets, Hard Stop
โ
Equity limits checked on EVERY TICK
โ
Max trades per day, which survives a bot restart
โ
Detailed journal: every blocked trade tells you why
โ
No special permissions required (AccessRights.None)
โโโโโโโโโโโโโโโโโโโโ
HOW IT WORKS
1๏ธโฃ Finds the 2 lowest lows (support) and 2 highest highs (resistance) in the last N candles and draws the lines
2๏ธโฃ On each closed bar, checks for Breakout, Touch or Approach
3๏ธโฃ Runs the gates: risk limits, session, daily limit, ADX, RSI, MA
4๏ธโฃ Opens the order with SL/TP in pips and risk-based volume
5๏ธโฃ Manages the trade with Break-Even, Trailing Stop and Pyramid
Direction when the action is ContinueTrend (Invert does the opposite):
โข Support Breakout โ Sell
โข Support Touch โ Buy
โข Support Approach โ Buy
โข Resistance Breakout โ Buy
โข Resistance Touch โ Sell
โข Resistance Approach โ Sell
โโโโโโโโโโโโโโโโโโโโ
PARAMETER GUIDE
โ ๏ธ Pip note: all pip values depend on the instrument. The default values (SL 2500, TP 3000, etc.) are tuned for instruments with a very small pip size, such as Gold. On standard Forex pairs, scale them down. Always review the defaults before going live.
โโโโโโโโโโโโโโโโโโโโ
๐ TRADING
โข Label โ Name tag for this bot's trades. The bot only manages positions with its own label. Use a different label for each instance on the same symbol.
โข Size Mode โ FixedLots uses a fixed volume. RiskPercent sizes each trade from your balance and stop loss.
โข Volume (Lots) โ Lot size used in FixedLots mode. Also the fallback if RiskPercent is selected but the SL is 0.
โข Risk % per Trade โ Percent of balance risked per trade in RiskPercent mode. Volume is rounded down. If the broker's minimum lot forces more risk than requested, a warning is printed in the journal.
โข Approach Distance (Pips) โ How close to a trendline price must be to trigger an Approach event. 0 disables Approach.
โโโโโโโโโโโโโโโโโโโโ
๐ TRENDLINE
โข Previous Candles Number โ How many candles are scanned to find the two anchor points. Higher gives longer, steadier lines. Lower gives faster, more reactive lines.
โข Support Price Source โ HighLow (lows) or Close for the support line.
โข Resistance Price Source โ HighLow (highs) or Close for the resistance line.
โโโโโโโโโโโโโโโโโโโโ
๐ TRENDLINE VALIDATION
โข Use Touch Validation โ Rejects lines with too few contact points.
โข Min Touches Required โ Minimum touches, counting the 2 anchor points.
โข Touch Tolerance (Pips) โ Max distance from the line for a candle to count as a touch.
โข Use Slope Filter โ Only accepts lines whose slope falls inside a range.
โข Min Slope Angle โ Minimum absolute angle, in degrees.
โข Max Slope Angle โ Maximum absolute angle, in degrees.
โโโโโโโโโโโโโโโโโโโโ
๐ฏ SUPPORT / RESISTANCE ACTIONS
Six parameters, one for each event:
Action on Support Breakout / Touch / Approach
Action on Resistance Breakout / Touch / Approach
Each accepts:
โข ContinueTrend โ enter in the "natural" direction (see the list above)
โข Invert โ enter in the opposite direction
โข NoAction โ ignore the event
Defaults: Support Breakout = Invert, Support Approach = ContinueTrend, Resistance Touch = ContinueTrend, the rest NoAction.
โโโโโโโโโโโโโโโโโโโโ
๐ STOP LOSS / TAKE PROFIT
โข Stop Loss Long / Short (Pips) โ Separate SL for Buy and Sell. 0 means NO stop. Do not use 0 in RiskPercent mode: the bot falls back to fixed volume and warns you.
โข Take Profit Long / Short (Pips) โ Separate TP for Buy and Sell. 0 means no TP.
โโโโโโโโโโโโโโโโโโโโ
โ๏ธ BREAK-EVEN
โข Use Break-Even โ Moves the stop to break-even once the trade is in profit.
โข BE Trigger (Profit Pips) โ Profit needed to activate break-even.
โข BE Extra Pips (Beyond Entry) โ How many pips beyond entry the new stop is placed. It must be well BELOW the Trigger, otherwise the broker rejects the level. The bot warns you at startup.
โโโโโโโโโโโโโโโโโโโโ
๐ TRAILING STOP
โข Use Trailing Stop โ Enables the trailing stop.
โข TS Trigger (Profit Pips) โ Profit at which trailing starts.
โข TS Distance (Pips) โ Distance between price and the stop.
โน๏ธ Break-Even and Trailing always run, even outside your trading sessions. The session filter only blocks NEW entries.
โโโโโโโโโโโโโโโโโโโโ
๐งฎ POSITION MANAGEMENT
โข Max Trades Per Day (0=off) โ Maximum trades OPENED per day, pyramid entries included, win or lose. Rebuilt from broker history on restart. Rolls over at Limits Reset Time UTC.
โข Max Initial Long Entries โ Max simultaneous Buy positions.
โข Max Initial Short Entries โ Max simultaneous Sell positions.
โโโโโโโโโโโโโโโโโโโโ
๐บ PYRAMID
โข Use Pyramid โ Enables adding to an open position.
โข Pyramid after BreakEven โ Allows an add-on once the position reached break-even.
โข Pyramid on Retrace (Pips) โ Adds when price pulls back this many pips from its best level.
โข Pyramid Lot Multiplier โ Lot multiplier per level (1.5 = +50% each add-on).
โข Max Pyramid Long / Short Entries โ Maximum add-ons per direction.
Pyramid entries count toward the daily trade limit. They also respect the session filter and the risk limits.
โโโโโโโโโโโโโโโโโโโโ
๐ SESSION FILTER
Sessions are ADDITIVE: if any enabled session is open, the bot can trade. Times are entered in each market's LOCAL time, in HH:mm format. The bot converts them to UTC and handles UK and US daylight saving separately. Japan has none.
โข Enable Session Filter โ Turns the filter on. If it is on with no session selected, NO trades will be opened.
โข Adjust For Daylight Saving โ Automatic DST for UK (last Sunday of March to last Sunday of October) and US (second Sunday of March to first Sunday of November).
โข Apply Session Filter To Pyramid โ Also restricts pyramid add-ons to your sessions.
โข Trade Asian Session + Start/End โ Tokyo local time (default 09:00โ15:00)
โข Trade London Open + Start/End โ London local time (default 08:00โ11:00)
โข Trade New York Open + Start/End โ New York local time (default 09:30โ11:30)
โข Trade London NY Overlap + Start/End โ London local time (default 13:00โ16:00)
โข Trade New York Afternoon + Start/End โ New York local time (default 13:00โ16:00)
โข Use Custom Session โ Your own window.
โข Custom Session Timezone โ UtcTime, LondonLocal, NewYorkLocal or TokyoLocal.
โข Custom Session Start / End โ Supports overnight windows (e.g. 22:00 to 06:00).
โโโโโโโโโโโโโโโโโโโโ
๐ก๏ธ RISK MANAGEMENT (PROP FIRM)
โข Use Daily Loss Limit โ Daily drawdown limit measured on EQUITY from the day's high-water mark, the way most prop firms measure it.
โข Daily Loss Limit Percent โ Maximum daily loss, in percent.
โข Use Weekly Loss Limit โ Weekly limit on realized losses.
โข Weekly Loss Limit Percent โ Maximum weekly loss, in percent.
โข Use Max Drawdown Limit โ Absolute equity floor based on the session's starting balance. Once breached it LATCHES: trading stays disabled until you restart the bot.
โข Max Drawdown Limit Percent โ Maximum total drawdown. Keep it above the daily limit.
โข Use Daily Profit Target โ Enables a daily profit goal.
โข Daily Profit Target Percent โ Daily profit goal, in percent.
โข Use Weekly Profit Target โ Enables a weekly profit goal.
โข Weekly Profit Target Percent โ Weekly profit goal, in percent.
โข Stop Trading On Profit Target โ When on, the bot stops opening trades once a target is hit. When off, it keeps trading and only logs it.
โข Use Forced Closure Hard Stop โ When a critical limit (loss or drawdown) is breached, open positions are closed immediately.
โข Hard Stop Closes All Symbol Positions โ DEFAULT: ON. Closes ALL positions on the symbol, including manual trades and trades from other bots, because prop firms measure drawdown on the whole account. Turn it off to close only this bot's positions.
โข Limits Reset Time UTC โ When daily and weekly counters and the trades-per-day count reset. Trading is re-enabled at reset, unless max drawdown was breached.
โข Enable Hourly Status Report โ Prints equity, daily and total drawdown, daily P/L and trading status to the journal every hour.
โโโโโโโโโโโโโโโโโโโโ
๐ TREND MA FILTER
โข Use Trend MA Filter โ Buys only above the moving average, sells only below.
โข MA Period / MA Type โ Period and type of the moving average.
โ RSI CONFIRMATION
โข Use RSI Confirmation Filter โ Confirms entries with RSI.
โข RSI Confirmation Period โ RSI period.
โข RSI Confirm Level Buy (>=) โ Buys are allowed only if RSI is at or above this level.
โข RSI Confirm Level Sell (<=) โ Sells are allowed only if RSI is at or below this level.
โ๏ธ SIDEWAYS MARKET FILTER (ADX)
โข Use Sideways ADX Filter โ Blocks entries in ranging markets.
โข ADX Period โ ADX period.
โข ADX Threshold Level (< Blocks) โ Entries are blocked when ADX is below this value.
โโโโโโโโโโโโโโโโโโโโ
โก OVERRIDE TREND (ATR & MANUAL)
โข Force Always ContinueTrend (Manual) โ Always forces the breakout direction and bypasses filters. Use with caution.
โข Use ATR Override โ Enables unusual-volatility detection.
โข ATR Panic Mode (Bypass Filters) โ In high volatility, forces the breakout direction AND skips the ADX/RSI/MA filters.
โข ATR Direction Only (Keep Filters) โ In high volatility, forces the breakout direction but KEEPS the filters.
โข ATR Period โ ATR period.
โข ATR Average Period โ Period of the ATR average used as a baseline.
โข ATR Threshold Multiplier โ The override triggers when ATR exceeds its average times this value.
If ATR Override is on but both Panic Mode and Direction Only are off, ATR is only monitored and changes nothing.
โโโโโโโโโโโโโโโโโโโโ
๐ WHAT'S NEW IN V2.6.1
โข Fixed inverted Bid/Ask in open-profit calculation (Break-Even, Trailing and Pyramid were firing one spread early)
โข Break-Even and Trailing now validate levels before sending, and no longer retry a rejected level on every bar
โข Position sizing always rounds DOWN, with a warning when the minimum lot raises your risk
โข RiskPercent with SL = 0 no longer invents a 10-pip stop
โข Max Trades Per Day now rolls over at Limits Reset Time UTC
โข Hard Stop snapshots positions first, so it cannot stop halfway
โข Startup validation flags configurations that cannot work
โโโโโโโโโโโโโโโโโโโโ
๐ก QUICK START TIPS
- Backtest first, then forward test on demo before going live
- Adjust SL/TP/Trailing/Break-Even to your instrument's pip size
- On prop accounts, set your limits TIGHTER than the firm's (e.g. 2% daily vs the firm's 5%)
- Read the journal at startup: it summarizes your sessions, limits and any config warnings
- Max Trades Per Day defaults to 1, so with Pyramid on, the add-ons would use up the limit
โโโโโโโโโโโโโโโโโโโโ
โ ๏ธ RISK DISCLAIMER
Trading CFDs, Forex and commodities involves a high risk of losing your capital. No bot guarantees profits. Past performance and backtest results are not indicative of future results. This software is an automation tool and is not financial advice. Only trade with money you can afford to lose.
https://www.youtube.com/watch?v=ZPy1xNpjC8Q
