These two gates judge a setup by where it came from. Each works beside the detectors that read it. Put one beside any other detector and the strategy won't run; the message names the gate to remove.
Gap age limit
Works beside the inverse fair value gap and return into a fair value gap blocks.
Switch it on and set how many candles old a gap may be; it needs both. A gap's age counts candles from its third candle up to the candle that would fire, both included. An older gap is skipped as though it weren't there.
Supply and demand zone filters
Works beside the supply and demand zone block, and beside the return into a fair value gap block, where the gap is the zone.
Every measure is optional, but you must set at least one. A setup whose zone fails any measure you set is passed over.
- Departure body: the departure is the candle that left the zone. This is the smallest part of its range, high to low, that must be body, open to close.
- Departure size: the smallest departure candle range, as a multiple of the average true range (the average size of a candle, including any gap from the close before). You set how many candles, up to the zone's last candle, it is measured over. The size and swing extreme measures use the same number.
- Clean departure: the departure candle must not overlap the candle before it.
- Extreme close: the departure candle must close within the share of its range you set, on the side it moved to.
- Retests and visits: the most candles, after the zone formed and before the signal candle, whose range may reach into the zone.
- Absorption: the most candles, after the zone formed and before the signal candle, whose body may reach into the zone.
- Age: the oldest the zone may be, in seconds, from its last candle to the entry.
- Size: the smallest zone height, in ticks or as a multiple of the average true range.
- Opposing zone: passes over a setup when a zone of the other direction that the detector still remembers sits between the entry and the target, or when the nearest one is closer than a number of ticks you set.
- Swing direction: reads swings with the number of candles each side, and over the number of recent candles, that you set. You can require the last two swing lows to rise for a long (to fall for a short), or only pass over a setup when they point the other way.
- Swing extreme: the zone must sit at a swing low for a long, or a swing high for a short, within the multiple of the average true range you set.