MACD and Stochastic Signals with New-Bar Entries and Tick Trailing
Summary
This expert advisor combines MACD direction and zero-line context with Stochastic direction and threshold checks. A buy requires MACD to rise after a prior negative reading while Stochastic rises from a lower value below its buy threshold. A sell requires MACD to fall after a prior positive reading while Stochastic falls from a higher value above its sell threshold. The EA evaluates entries when a new bar appears on a configurable working timeframe, while trailing logic runs on each tick. The MACD and Stochastic calculations can each use their own timeframe, and buy and sell positions can have separate stop-loss and take-profit settings.
The document says parameters were optimized for USDJPY and recommends following OHLC-based optimization with tests using every-tick data, including real ticks where available. It gives no performance figures, testing period, transaction-cost assumptions, or robustness analysis, so the stated optimization does not establish that the rules will perform reliably out of sample or on other markets.
Key ideas
- The buy setup pairs rising MACD after a negative reading with a rising Stochastic below its buy threshold.
- The sell setup pairs falling MACD after a positive reading with a falling Stochastic above its sell threshold.
- Entry checks occur on a new bar of a configurable working timeframe, while trailing runs on each tick.
- MACD and Stochastic may use separate timeframes, and long and short positions can have different risk and profit levels.
- The document recommends validating optimized settings with every-tick testing but supplies no performance or robustness evidence.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.