MethodKit Candle Range Theory
- Experts
- Versione: 1.0
- Attivazioni: 5
MethodKit Candle Range Theory EA This Expert Advisor implements a well-known, public trading method and is offered for reference. It does not promise profit. Trading decisions and risk are yours. Past results do not guarantee future results. It is sold as a one-off tool, with no individual advice, signals, or set-up service. No edge is claimed for this method. The EA is provided so that you can read, test and study the rules yourself in the Strategy Tester and on a demo account. Short description Automates the Candle Range Theory rule: when the next higher-timeframe candle sweeps one side of the previous candle's range and closes back inside, it trades back toward the other side, with a stop beyond the sweep. Range sweep reversal (Candle Range Theory). Default stop and exit: beyond the sweep extreme of the signal candle; take-profit at the opposite side of the range; time exit after 2 range candles. Designed around three timeframe pairs: D1 range with H1 execution, H4 with M15 (default), and H1 with M5. Attach it to a chart of the execution timeframe (for example M15 for the H4 / M15 pair). It can be attached to any symbol the broker offers. These are the conditions the method is built around, not a performance claim. How it works Take one closed candle on the range timeframe. Its high is the candle range high (CRH) and its low is the candle range low (CRL). Then look at the next candle on the same timeframe once it has closed. If its wick went above CRH but it closed back below CRH (and above CRL), without also breaking CRL, the EA sells. The stop loss goes just above that sweep high, and the take-profit is at CRL. The buy side is the mirror: a wick below CRL, a close back inside the range, a stop below the sweep low and a take-profit at CRH. Instead of the opposite side of the range, the take-profit can be set to 1R or 2R (one or two times the stop distance). The entry is a market order at the start of the next candle. As an option, the EA can instead wait for a fair value gap (FVG) on the execution timeframe that formed after the sweep, and place a limit order at the near edge of that gap; the order is cancelled if it is not filled before that candle ends. By default a trade that is still open after two range-timeframe candles is closed (adjustable, 0 = off). Three optional context filters, all off by default, can be switched on: the sweep must reach the 50 to 78.6 percent Fibonacci pullback zone of the last swing; the sweep must run a horizontal level that swing points touched two or more times; or the sweep must reach a simple supply or demand zone (the base candle before a large impulse candle). These filters are mechanical approximations of chart-reading ideas and do not reproduce discretionary judgment. A stop loss is always attached. There is no grid, averaging down, or martingale. Shared risk controls A stop loss is always attached. Lot size is a fixed lot or a percentage of equity at risk (hard cap 5 percent), plus a maximum-lot cap. Maximum open positions (default 1, pending limit orders count toward it). A daily loss stop (default 3 percent of the day-start balance) that also cancels this EA's pending orders. A spread filter, a magic number, and broker GMT offset and DST inputs. No grid, no averaging down, no martingale. Method inputs - Timeframe pair (range / execution) (InpCRTPair), default H4 / M15: D1 / H1, H4 / M15 or H1 / M5. Attach the EA to a chart of the execution timeframe. - Take-profit mode (InpCRTTarget), default Opposite side of the range: Opposite side of the range (CRL for sells, CRH for buys), 1R or 2R. If price is already past the range target, the entry is skipped. - Entry mode (InpCRTEntry), default Market order: Market order at the first execution bar after the signal candle closes, or a limit order at an execution-timeframe fair value gap. - Extra stop buffer (points) (InpCRTSLBufferPts), default 0: Extra distance beyond the sweep extreme for the stop. The broker minimum stop distance is always respected. - Time exit (range candles) (InpCRTHoldBars), default 2: Close a position still open after this many range-timeframe candles from the entry candle. 0 = off. - Max gap between the two candles (hours) (InpCRTMaxGapHours), default 96: Skip a signal if the reference and signal candles are further apart than this (long market closures). - Filter: Fibonacci pullback zone (InpCRTUseFib), default false: Trade only if the sweep reaches the Fibonacci pullback zone of the last swing leg (swing points = 3-bar fractals on the range timeframe). - Fibonacci zone, % (InpCRTFibMin / InpCRTFibMax), default 50.0 / 78.6: Start and end of the pullback zone. - Filter: horizontal level (InpCRTUseLevel), default false: Trade only if the sweep runs a level that swing highs (or lows) touched at least the set number of times. - Level window / tolerance / touches (InpCRTLevelBars / InpCRTLevelTolATR / InpCRTLevelTouches), default 100 / 0.25 / 2: Search window in range-timeframe bars, tolerance in ATR(14) multiples, minimum touches. - Filter: supply / demand zone (InpCRTUseZone), default false: Trade only if the sweep reaches an unbroken zone made by the base candle before a large impulse candle. A simple mechanical approximation. - Zone window / impulse size (InpCRTZoneBars / InpCRTZoneImpulseATR), default 60 / 1.5: Search window in range-timeframe bars; minimum impulse candle body in ATR(14) multiples. The common inputs (lot mode, fixed lot, risk percent, maximum lot, stop-loss mode, maximum positions, daily loss stop, spread filters, magic number, broker time) are the same as in the other MethodKit EAs and are listed in the user manual. The common signal-timeframe and take-profit-ratio inputs are not used by this EA. Important This software does not predict markets and is not investment advice. Trading leveraged products (FX, CFDs and similar) carries a high risk of loss. You can lose more than you expect, including, in some cases, more than your deposit. That includes backtests and any forward or demo results. Please test in the Strategy Tester and on a demo account, and confirm the broker's GMT offset, before any live use. Support is limited to installation questions and bug fixes. Nothing in this description is a solicitation to buy or sell any financial instrument. Installation Copy the compiled .ex5 file into the MQL5/Experts folder, attach it to a chart of the execution timeframe (M15 for the default H4 / M15 pair), set the broker GMT offset, and allow algorithmic trading. Test it in the Strategy Tester and on a demo account first.
