Macd Pro EA
- Experts
-
Steve Zoeger
Hello to my Fx friends. Forex is so diverse that you can't really single out any particular indicator or strategy. The ever-changing market and the ever-changing economic conditions around the world mean that there are many different ways to trade, so I have developed many different robots. These - 버전: 1.0
- 활성화: 5
Overview
Horizon MACD Simple is a complete, self-contained MACD crossover trading system that combines a real-time visual indicator with a fully automated Expert Advisor. It is designed for traders who want the classic, time-tested logic of the MACD (Moving Average Convergence Divergence) indicator packaged into a modern, professional trading environment — with visual signals, a live status dashboard, and four distinct trade-management strategies that range from conservative single-entry trading to aggressive recovery-grid systems.
The system is built around a single, clean signal concept: the MACD line crossing the signal line, and the MACD line crossing the zero line. From these two classic events, Horizon MACD Simple constructs an entire trading framework capable of running hands-free on any symbol and timeframe.
The Signal Logic
MACD Line versus Signal Line
The primary signal is the crossover between the MACD line (the difference between the fast and slow exponential moving averages) and its own signal line (a moving average of the MACD line itself). When the MACD line crosses above the signal line, the system interprets this as bullish momentum turning upward. When it crosses below the signal line, it interprets this as bearish momentum turning downward. This is the original, foundational MACD signal that has been used by traders for decades.
MACD Line versus Zero Line
The secondary signal is the crossover of the MACD line through the zero line. A cross above zero indicates that the fast moving average has overtaken the slow moving average — a shift in the underlying trend direction. A cross below zero indicates the opposite. This signal is slower and more deliberate than the signal-line crossover, and it often acts as a confirmation that a trend has genuinely flipped rather than simply paused.
Combined or Separate
The system allows the trader to enable either signal individually or both together. When both are enabled, the signal-line crossover takes priority on any given bar (since it is the faster trigger), and the zero-line crossover provides an additional layer of trend confirmation. This gives the trader full control over how aggressive or conservative the entry logic should be.
Optional RSI Filter
For traders who prefer counter-trend confirmation, an optional RSI (Relative Strength Index) filter can be activated. When enabled, bullish entries are only permitted while the RSI is in oversold territory, and bearish entries are only permitted while the RSI is in overbought territory. This filter dramatically reduces the frequency of trades, but it ensures that every entry occurs at a point of momentum exhaustion rather than in the middle of an already-extended move.
Signal Integrity Safeguards
One Signal Per Bar
The system evaluates signals only on closed bars, never on the currently forming bar. This eliminates the common problem of signals appearing and disappearing intrabar, which is a frequent source of false entries in live trading. Once a bar closes with a valid crossover, the signal is locked in and will not be re-evaluated until the next bar closes.
Duplicate Signal Prevention
Each closed bar can only produce a single signal. The system tracks the timestamp of the most recently processed bar and refuses to fire a second signal on the same bar, even if the price oscillates and produces multiple apparent crosses within a single bar's range. This is a critical safeguard against the whipsaw effect that plagues many automated MACD systems.
Spread Filter
A configurable maximum spread filter protects against entering trades during periods of abnormal market conditions — news releases, session opens, or low-liquidity hours — when spreads can widen dramatically. If the current spread exceeds the configured limit, the signal is skipped and the system waits for more favorable conditions.
The Four Trading Modes
Horizon MACD Simple offers four completely different trade-management philosophies, all driven by the same underlying MACD signal.
Simple Mode
The most straightforward approach. Each signal opens a single position with a fixed take-profit and stop-loss (both measured in pips). Only one position is open at a time — the next signal cannot fire until the current trade is closed by hitting either its target or its stop. This mode is ideal for traders who want a clean, uncomplicated execution of the MACD signal without any complexity.
Martingale Mode (Price Grid)
A recovery-grid strategy that opens an initial position on the first signal, then adds progressively larger positions at fixed price intervals against the trade. The interval between additions, the lot multiplier, the maximum number of trades, and the maximum lot size are all fully configurable. The entire basket is closed as soon as the combined profit reaches a defined dollar target, regardless of how many grid levels were filled.
This mode is designed to turn a temporarily losing trade into a small profit through averaging — but it requires careful capital management, as the martingale progression can produce significant drawdown if the market moves strongly against the initial position without retracing.
Arrow Sequence Mode (Fixed Lot)
Every signal opens a new position with a fixed lot size, with no stop-loss and no take-profit on individual trades. Positions accumulate in the direction of the signals and the entire basket is closed as soon as the combined profit reaches a defined dollar target. An optional "close on flip" setting will immediately close all positions and reverse when a signal in the opposite direction appears.
This mode is well-suited to trending markets, where a sequence of MACD signals in the same direction can accumulate a profitable basket before any significant reversal occurs.
Arrow Sequence with Martingale
A hybrid of the previous two modes. Each signal opens a new position, but the lot size increases by a configurable multiplier for consecutive signals in the same direction. When the signal direction flips, the multiplier resets to the base lot size. The basket is closed when the combined profit reaches its target, and an optional "close on flip" behavior is available.
This mode combines the directional accumulation of the sequence approach with the recovery power of the martingale multiplier, giving it the highest profit potential of the four modes — along with the highest risk.
Capital and Risk Management
Flexible Lot Sizing
Two lot-sizing modes are available. In Fixed mode, every trade uses the same lot size regardless of account growth. In Dynamic mode, the lot size scales upward as the account balance grows beyond its starting point, allowing the system to compound profits over time without any manual adjustment.
Margin-Aware Order Validation
Every order is validated against the account's available free margin before being sent to the broker. The system calculates the maximum lot size the account can actually afford at the current price, and clamps any requested lot to that maximum. If even the minimum lot size cannot be afforded, the trade is skipped and a clear message is logged — preventing the silent "not enough money" failures that plague many automated systems on small accounts.
Drawdown Protection
An optional maximum-drawdown limiter tracks the peak account equity and closes all positions if the equity drops below a configured percentage of that peak. The trader can choose whether the system stops trading permanently after a drawdown event, or resumes after a brief pause. This gives strong protection against catastrophic losses during unexpected market events.
Equity Floor
For an additional layer of safety, an equity floor can be set as a percentage of peak equity. If the account equity drops below this floor, the system either stops opening new trades or closes all positions immediately — depending on the trader's configuration.
Trailing Stop and Breakeven
A sophisticated trailing-stop engine protects profitable positions by moving the stop-loss in the direction of the trade as profit accumulates. The trailing begins only after a configurable profit threshold is reached, moves in configurable increments, and maintains a configurable distance from the current price. An integrated breakeven feature moves the stop to entry plus a small buffer once the trade has moved far enough into profit, ensuring that a winning trade can never become a losing one.
The Visual Dashboard
Horizon MACD Simple includes a clean, professional on-chart interface designed to provide all critical information at a glance without cluttering the chart.
Central Badge
At the center of the chart, a large, subtle badge displays the system name, version, current MACD trend direction (UP, DOWN, or SIDE), and the number of days remaining until the system's operating window closes. The trend indicator changes color in real time — green for uptrend, red for downtrend, gold for sideways — giving an instant read on the current market bias.
Signal Arrows
Every valid MACD crossover is marked on the chart with a visually distinct arrow. Bullish signals appear as upward arrows below the bar's low, and bearish signals appear as downward arrows above the bar's high. Signal-line crossovers and zero-line crossovers use different vertical offsets so they can be distinguished at a glance, and the arrows remain visible across the entire chart history — giving the trader an immediate visual record of how the system has performed on the current instrument.
On-Screen Alerts
An optional alert system can fire a desktop notification whenever a valid signal is detected, giving the trader the opportunity to review the setup manually before an automated entry is executed.
Time-Based Controls
Full day-of-week and time-of-day filters are available, allowing the trader to restrict trading to specific sessions. This is particularly valuable for traders who want to avoid the low-liquidity Asian session, or who only want the system active during the London or New York sessions when volatility and volume are at their highest. The start and end times can span midnight for markets that trade around the clock.
Built-In Operating Safeguards
Self-Contained Operation
Unlike many Expert Advisors that depend on external indicator files, Horizon MACD Simple computes everything internally using the platform's native MACD and RSI functions. There are no missing indicator files, no version mismatches, and no dependencies that could break when moving the system between accounts or brokers. All signal calculations, all arrow rendering, and all trade management logic are handled entirely within the system itself.
Automatic Recovery on Restart
When the system is restarted, attached to a new chart, or the timeframe is changed, it automatically rebuilds its historical arrow display and reconstructs its internal state from the current chart data. The trader never needs to manually refresh anything — the system simply picks up where it left off.
Graceful Shutdown
When the system is removed from a chart, it cleans up all its visual objects, releases all indicator handles, and leaves the chart in a clean state. Any open positions remain open and under the trader's control — the system does not force-close anything unless explicitly configured to do so.
Who Is This For?
Discretionary traders can use the system purely as a visual indicator — watching the arrows appear on their charts and using the live trend badge to gauge the market's momentum bias. The automated trading features can be left disabled.
Semi-automated traders can enable alerts without automated execution, using the system as a signal generator while making their own entry and exit decisions.
Fully automated traders can choose any of the four trading modes based on their risk tolerance — from the conservative Simple mode to the aggressive Arrow Sequence with Martingale — and let the system manage everything hands-free.
Recovery-grid traders specifically will find the martingale and sequence-martingale modes well-suited to their approach, with all the classic protections (price interval, lot multiplier, maximum trades, dollar-based basket target) fully configurable.
Conclusion
Horizon MACD Simple distills the MACD indicator — one of the most reliable and widely used technical tools in existence — into a complete, self-contained trading system. It combines a clean visual presentation with rigorous signal integrity safeguards, sophisticated money management, four distinct trading strategies, and comprehensive risk protection. Whether used as a visual signal tool, a semi-automated alert system, or a fully automated trading engine, it offers the flexibility and reliability that professional traders require, without ever compromising on the clarity and simplicity that make the MACD signal so enduringly valuable.
