Gold Variable Dow
- Experts
-
Kyōhei Shirahama
2020年からMQL4EA開発を開始。
インジケーターを用いたロジックを基本に、ダウ理論適用ロジックなどを自主開発。
破綻のないEAを心情に、さまざまな時間軸、マルチタイムフレーム分析も取り入れながら勝てるロジックを日々探求しています。 - Versione: 1.0
- Attivazioni: 10
Gold Variable Dow reads Dow theory structure on H4 and H1 and steps down to a lower timeframe only when the higher one is unclear. It follows the trend in the direction of the Stochastic oscillator and manages each trade with a stop loss that trails the latest swing.
How it works
Each time a bar of the evaluation timeframe closes, the Expert Advisor checks the timeframes from the top down: H4, then H1, and optionally M15, M5 and M1. Only closed bars are used.
A timeframe is passed to the next lower one when:
- there is no clear Dow trend (no sequence of higher highs and higher lows, or lower highs and lower lows),
- the 20-period Bollinger Band is very narrow compared with the 200-period band (squeeze),
- price is close to one of the last three swing highs or swing lows, where a reversal or a breakout is still undecided.
On the first timeframe that has a clear trend and room from the swing lines, the Expert Advisor opens a trade in the direction of the Stochastic oscillator. A new trade is opened only when the selected timeframe or the direction changes.
Swing detection
By default, H4 and H1 swings are confirmed by the lower timeframe. A swing high is accepted when the lower timeframe breaks its own last swing low and the move is large enough in ATR terms. Small zigzags inside a range are ignored, so the swing lines follow the main structure.
Trade management
- Every trade has a stop loss from the moment it opens.
- The stop loss is placed beyond the latest swing of the entry timeframe and moves with each new swing. It never moves back.
- There is no fixed take profit. Trades close at the trailing stop.
- No grid, no martingale, no averaging. One position at a time.
Recommendations
- Symbol: XAUUSD (Gold). The logic is based on ATR and works on other symbols, but it was designed and studied on Gold.
- Chart timeframe: any. The evaluation timeframe is set in the inputs (M5 by default).
- Strategy Tester: "1 minute OHLC" or "Every tick". Use at least one year of history, because the swing structure on H4 needs time to build.
- Start with the default fixed lot and test on a demo account before live use.
Inputs
- Evaluation timeframe: the timeframe whose bar close triggers the evaluation (default M5).
- Lowest timeframe to descend to: H4 only, H1 (default), M15, M5 or M1.
- Swing: bars on each side (default 5).
- Near a line: distance in ATR from the swing lines (default 0.5).
- Squeeze: ratio of the 20-period to the 200-period band width (default 0.3, 0 = off).
- Bollinger Band proximity: optionally treat band proximity like a swing line (default off).
- Trade only when Stochastic agrees with the Dow trend (default off).
- Trade direction: buy and sell, buy only or sell only.
- Confirm H4/H1 swings by the lower timeframe (default on), minimum swing leg in ATR (default 4.5), minimum pullback in ATR (default 0.5).
- Stochastic %K, slowing and %D periods (default 14, 3, 3).
- Stop loss buffer beyond the swing in ATR (default 0.2), ATR period (default 14).
- Fixed lot (default 0.01) or risk percent of balance when the fixed lot is 0.
- Maximum spread for new entries in points.
- Magic number and chart status display.
Past test results do not guarantee future results. Trading involves a risk of loss.
