Holds Line
- 专家
- 版本: 1.0
- 激活: 5
Overview
Holds Line is an Expert Advisor for MetaTrader 5 built on a proprietary price-channel signal model combined with a flexible risk-management system. The EA is designed for traders who want market entries driven by clear mathematical criteria (slope, deviation, corridor width) while keeping full control over risk per trade.
It suits both manual parameter tuning for a specific instrument and integration into a portfolio using multiple magic numbers.
How It Works
The EA's core is a price-channel analysis model that is recalculated on every new bar.
- Channel construction. The EA analyzes the last SignalBarCount bars and builds a price channel from them, determining its overall direction.
- Slope evaluation. The channel's slope angle is compared against the EntrySlopeAngle threshold — if the slope exceeds it, the move is treated as pronounced enough for further analysis.
- Corridor calculation. A working corridor is built around the channel's center line; its width depends on SignalCorridorWidth , while its sensitivity to price fluctuations depends on the EntryDeviationFactor coefficient. This separates ordinary price oscillation within the channel from a meaningful breakout beyond it.
- Dynamic correction. On every step, StepCorrectionValue adjusts the corridor's position to the instrument's current volatility, keeping the signal model relevant during both acceleration and slowdown of price movement.
- Entry signal. When price crosses the corridor boundary in the direction of the channel's slope, the EA generates an entry signal.
- Trade management. Position size is determined by the selected risk mode (fixed lot or percentage of balance); the trade is then managed with fixed ProfitTargetPoints / LossLimitPoints levels, switching to a trailing stop once TrailStartPoints is reached, stepping by TrailStepPoints .
- Long-series control. When enabled, the Protections mechanism tightens stop levels if a trade series runs long — an additional safeguard limiting the buildup of open risk.
Key Features
- Flexible risk management. Choose between a fixed lot size ( ManualLotVolume ) and automatic sizing from a percentage of balance ( RiskPercentOfBalance ), with a cap on simultaneous orders in a series ( MaxSeriesOrders ).
- Precise exit configuration. Separate parameters for take-profit, stop-loss, trailing start, and trailing step, all in points.
- Proprietary signal logic. Entries are based on a combination of channel slope, deviation coefficient, and corridor width — filtering noise and reacting to structural price moves.
- Long-series protection. Optional Protections mechanism that automatically tightens stop levels in difficult market conditions.
- ECN account compatibility. Support for order filling modes, a requote limit, and an ECN mode flag.
- Transparent configuration. All parameters are grouped into logical blocks (general, risk, points, signal).
Settings Overview
Bot Setting — magic number, order comment, requote limit, ECN mode, and order filling type.
Risk Setting — lot sizing method (manual or percentage of balance) and the maximum number of orders in a series.
Points Setting — take-profit and stop-loss targets in points, plus trailing start and step parameters.
Signal Setting — number of bars for signal analysis, entry slope angle, deviation coefficient, corridor width, and step correction value.
Usage Recommendations
- Test the EA in the Strategy Tester on historical data for your instrument before live use.
- Tune the signal block parameters to match the volatility and timeframe you plan to trade.
- Run the EA on a demo account to verify its behavior under current market conditions.
- Always set a risk level you're comfortable with via RiskPercentOfBalance or ManualLotVolume .
Risk Disclaimer
Trading financial markets involves the risk of capital loss. Past performance in backtests does not guarantee similar results in the future. Before using this EA on a live account, be sure to test it on a demo account and confirm that its logic fits your own risk-management strategy.
