Meridian

Meridian

Volatility Adjusted Channel Breakout Engine

Most channel breakout algorithms fail because they enter during low volatility chop, get stopped out by normal market noise, and ignore broker execution constraints. Meridian solves this by combining a strict Donchian channel breakout with an ADX trend filter, volatility-adjusted position sizing, and institutional-grade execution protocols. It does not guess direction. It waits for structural momentum, sizes the position mathematically based on the actual stop distance, and validates every order against broker limits before sending it to the server.

 

The Core Execution Architecture

Meridian operates on a closed bar evaluation system to ensure entries are based on confirmed structural shifts, not intrabar liquidity sweeps.

 

Phase 1: Momentum and Trend Validation The algorithm calculates a 20-period Donchian channel on the hourly chart. However, a channel break alone is insufficient. The bot requires the Average Directional Index to be above 20.0, confirming that a genuine trending environment exists. If directional indicators are enabled, it also requires the positive and negative DI lines to align with the breakout direction. This dual confirmation filters out the vast majority of false breakouts in ranging markets.

 

Phase 2: Structural Trigger Once the trend is validated, the bot monitors the hourly close. A buy signal triggers only when the candle closes above the 20 period channel high. A sell signal triggers only when it closes below the 20-period channel low. By requiring a full bar close, the algorithm ignores temporary wicks and stop hunts that typically trap retail breakout traders.

 

Volatility Adjusted Risk and Position Sizing

Meridian treats risk as a mathematical constant, not a fixed point value.

 

  • Initial Stop Loss: The stop loss is placed at a distance of 2.0 times the 14-period average true range. This ensures the stop adapts to the current volatility environment, providing enough room to survive normal market noise without exposing the account to catastrophic risk.
  • Dynamic Lot Sizing: The position size is reverse engineered from the exact stop distance. The bot calculates the monetary risk based on the configured percentage of equity, then divides it by the exact tick value of the stop distance. This guarantees that every trade risks the exact same percentage of capital, regardless of whether the market is quiet or highly volatile.
  • Margin and Server Prechecks: Before sending an order, Meridian performs a strict server-side precheck using the native order validation protocol. It also dynamically shrinks the lot size if the required margin exceeds the available free margin, ensuring zero order rejections due to insufficient funds.

 

Comprehensive Capital Guards

The algorithm features multiple layers of automated defence to protect the account from unexpected market conditions and algorithmic decay.

 

  • Daily Loss Circuit Breaker: If the account equity drops by the configured daily loss percentage, the bot immediately closes all positions and halts new entries until the next server day.
  • Peak Equity Drawdown Halt: If the account equity falls a specified percentage from its all-time peak, the bot permanently halts trading and closes all positions until manually reset.
  • Post Loss Cooldown: After a losing trade, the bot enforces a configurable cooldown period measured in bars. This prevents the algorithm from immediately re-entering a choppy environment and compounding losses.
  • Weekend Gap Protection: A mandatory Friday close protocol automatically liquidates all open positions before the weekend, entirely eliminating gap risk. An optional midweek close is also available.

 

One Way Trailing Stop

Once a trade reaches a defined profit threshold, the stop loss begins to trail. The trailing distance is calculated dynamically using the Average True Range. Crucially, the stop loss only ever moves in the direction of the trade. If the broker rejects a stop modification due to freeze level constraints, the algorithm automatically widens the trailing gap and retries on the next tick, ensuring the trade management logic never breaks.

Disclaimer

Trading involves substantial risk of loss, including the loss of all money committed to trading. Automated systems can lose money and can experience technical or execution failures. Past performance is not a reliable indicator of future performance. Backtested, demo and simulated results are not the same as real-money trading results. The description explains the intended operation of the EA, not a guaranteed trading outcome. Verify the EA version, broker symbol specifications, pip and point conventions, server time and actual inputs before deployment. Results from one broker, version or configuration may not be reproduced elsewhere.

Frequently asked questions

Q: What is the core entry logic of this algorithm? A: Meridian uses a Donchian channel breakout strategy combined with an ADX trend filter. It enters a buy position when the hourly candle closes above the 20-period channel high while the ADX confirms a strong trend. It enters a sell position when the candle closes below the channel low with matching directional momentum.

 

Q: Why does the bot require ADX confirmation for a channel breakout? A: A channel break in a ranging market is usually a false signal that quickly reverses. The ADX measures the actual strength of the trend. By requiring the ADX to be above 20.0, the bot mathematically filters out low volatility chop and only executes breakouts when genuine directional momentum exists.

 

Q: How does the position sizing adapt to volatility? A: The stop loss is calculated as a multiple of the Average True Range. The lot size is then reverse engineered from that exact stop distance to risk a fixed percentage of account equity. If volatility increases and the stop distance widens, the lot size automatically decreases to maintain the exact same monetary risk.

 

Q: How does the bot handle broker execution constraints? A: Meridian features institutional-grade execution protocols. It checks the broker minimum stop distance and freeze level before placing an order. It also performs a server-side precheck using the native validation protocol. If the required margin is too high, it dynamically shrinks the lot size until the order is guaranteed to be accepted.

 

Q: What happens if the bot takes a losing trade? A: The algorithm enforces a post loss cooldown period. After a trade closes in a loss, the bot will not open any new trades for a configurable number of bars. This prevents the algorithm from overtrading during choppy conditions and compounding losses.

 

Q: How does the trailing stop work? A: Once the trade reaches a specific profit threshold, the stop loss trails the price at a distance defined by the Average True Range. The stop only ever moves in the direction of the trade. If a stop modification is rejected by the broker, the algorithm automatically widens the trailing distance and retries, ensuring continuous trade management.

 

Q: Does this bot use Martingale, grid, or hedging? A: Absolutely not. Meridian is a strict directional breakout engine. It holds a maximum of one position per trade, uses a hard stop loss on every single trade, and never adds to a losing position.

 

Q: How does the bot protect against weekend gaps? A: It includes a mandatory Friday close protocol. All open positions are automatically liquidated at a configurable server hour on Friday. This completely eliminates the risk of catastrophic weekend market gaps.

 

Q: What circuit breakers are in place to protect the account? A: The bot features a daily loss limit that halts trading if equity drops too far in a single day. It also has a peak equity drawdown halt that shuts down the bot entirely if the account falls too far from its all-time high. Finally, a maximum trades-per-day limit prevents overexposure.

Results:

Version: 4344

Version: 4445

Version: 7554

Add comment

Comments

There are no comments yet.

Create Your Own Website With Webador