Multi Timeframe Confluence Trader
- Experts
- Versione: 3.3
- Attivazioni: 10
Multi-Timeframe Confluence Trader is an automated Expert Advisor for MetaTrader 5.
IMPORTANT RISK NOTICE
Trading leveraged products is risky. This EA uses a stop loss on its trades, but a stop loss can be skipped by gaps and slippage. Past or simulated results do not guarantee future results. Test on a demo account first and only risk money you can afford to lose.
How it works
- Builds a lane for each timeframe from monthly to one minute and records the reversal pairs of each layer.
- Strategy 1 (default) - reversal confluence: when at least three layers flip together the EA closes opposite trades and opens in the new direction; four or more layers allow adding trades (up to three in total).
- Entries are filtered by the H4 direction, price momentum over two and five days, wick gates of the opposite side and zone limits.
- Strategy 2 - four-condition range breakout with optional extra filters F1 to F6.
- Stop loss from the structure or ATR, trade management with break-even, partial close and trailing, daily trade and loss caps, drawdown cap.
- The chart shows the timeframe lanes, ranges, wick zones and confluence levels.
Safety and broker compatibility
- Volume is normalized to the symbol minimum, maximum and step before every order.
- Free margin is checked with OrderCalcMargin before an order is sent.
- Stops level and freeze level are respected when placing or modifying orders and SL/TP; a modification is not sent when the values are unchanged and nothing is modified inside the freeze zone.
- Symbol trade mode, trading session, order limit and filling mode are checked before sending requests.
- No DLL, no web requests, no files are written.
BOTKRIT recovery core and dashboard
This build includes a basket recovery core and a standard BOTKRIT panel. When the open basket of this EA loses more than the set percentage of the balance the EA pauses its own new entries and the core can open balancing (hedge) trades with its own magic number until the basket can be closed at break-even plus a target; the basket is cut at the set loss percentage. Balancing trades can increase exposure. The core works on hedging accounts only and can be switched off with InpRKOn = false. The panel can be collapsed and moved to another corner.
Inputs
- InpFont (default Tahoma): Font
- InpFontSize (default 8): Font size
- InpDarkTheme (default true): Dark theme
- InpOn (default true): On
- InpMaxTF (default PERIOD_MN1): Max tf
- InpMinTF (default PERIOD_M1): Min tf
- InpLaneW (default 20): Lane w
- InpLaneGap (default 10): Lane gap
- InpRightPad (default 150): Right pad
- InpTextW (default 96): Text w
- InpPanelBg (default true): Panel bg
- InpScanBars (default 300): Scan bars
- InpSeams (default true): Seams
- InpSeamMax (default 12): Seam max
- InpFlipLog (default true): Flip log
- InpFlipLogN (default 8): Flip log n
- InpFlipLogDim (default 0.55): Flip log dim
- InpFrame (default true): Frame
- InpFrameMinTF (default PERIOD_M5): Frame min tf
- InpFrameMaxTF (default PERIOD_W1): Frame max tf
- InpFrameWick (default true): Frame wick
- InpFrameClr (default C'232,196,90'): Frame clr
- InpUpZoneClr (default C'255,80,190'): Up zone clr
- InpDnZoneClr (default C'0,235,205'): Dn zone clr
- InpCoOn (default true): Co on
- InpCoMin (default 3): Co min
- InpCoTolATR (default 0.35): Co tol atr
- InpCoMax (default 5): Co max
- InpCoChart (default true): Co chart
- InpCoChartBars (default 20): Co chart bars
- InpMarkPair (default true): Mark pair
- InpTextMinTF (default PERIOD_H1): Text min tf
- InpHotkeys (default true): Hotkeys
- InpStrategy (default BK_ST_CO): Strategy
- InpTrendTF (default PERIOD_H4): Trend tf
- InpExitTrendFlip (default false): Exit trend flip
- InpMaxHoldHours (default 30): Max hold hours
- InpEntryGapMin (default 240): Entry gap min
- InpCoOppClose (default false): Co opp close
- InpMomOn (default true): Mom on
- InpMomDaysA (default 2): Mom days a
- InpMomMinA (default 0.25): Mom min a
- InpMomDaysB (default 5): Mom days b
- InpMomMinB (default 0.0): Mom min b
- InpMomMaxA (default 1.5): Mom max a
- InpMomMaxB (default 2.5): Mom max b
- InpCoEntryMin (default 3): Co entry min
- InpCoAddMin (default 4): Co add min
- InpCoCloseMin (default 3): Co close min
- InpCoReverse (default true): Co reverse
- InpCoHoldMin (default 4): Co hold min
- InpCoReentryMax (default 3): Co reentry max
- InpCoReentrySec (default 300): Co reentry sec
- InpZoneGuard (default true): Zone guard
- InpSqueezeRatio (default 0): Squeeze ratio
- InpWickBlock (default true): Wick block
- InpBalanceOn (default false): Balance on
- InpBalWinRatio (default 1.5): Bal win ratio
- InpBalFollow (default true): Bal follow
- InpBalWeightBig (default true): Bal weight big
- InpBalReach (default 1.0): Bal reach
- InpLineMin (default 3): Line min
- InpLineTips (default true): Line tips
- InpLineTipMinTF (default PERIOD_H1): Line tip min tf
- InpLineReachATR (default 3.0): Line reach atr
- InpLineFlipK (default 1.0): Line flip k
- InpLineGuard (default false): Line guard
- InpLineWinRatio (default 1.5): Line win ratio
- InpLineRoomATR (default 0.5): Line room atr
- InpCoFreshSec (default 120): Co fresh sec
(+ 68 more inputs, see the Inputs tab; every input has a description.)
Recovery core and dashboard inputs:
- InpRKOn (default true): Recovery core on/off: when the basket loss grows, new entries of the EA are paused and balancing trades can be opened until the basket closes
- InpRKStartPct (default 3.0): Start recovery when the basket loss exceeds this percent of the balance at basket start
- InpRKStartATR (default 3.0): or when price runs against the net position by this many ATR (0 = off)
- InpRKCutPct (default 30.0): Close the whole basket at this percent loss of the start balance
- InpRKShockATR (default 10.0): Shock distance to survive (ATR multiples), used for the lot ceiling
- InpRKMinMargin (default 300.0): Do not open a recovery trade if the margin level after opening would be below this percent
- InpRKSpreadMul (default 2.0): Pause recovery trades when the spread is above this multiple of the 60-minute median
- InpRKCorner (default bottom right): Corner of the BOTKRIT panel
- InpRKBar0 (default FULL): Bar-0 label (basket profit, spread and leverage)
Recommended setup
- Attach to a chart of any liquid symbol (gold and major pairs were used in development). M5 to M15 chart recommended.
- Minimum capital: A balance of 1,000 USD or more with risk 1 percent per trade.
- Test on a demo account first and keep the lot small.
