Gap Growing Without a Break (EMA 9 below)
Helper filterSHORT
Three conditions: in the first of the last 2 candles (you decide) the gap was above the threshold (%0.1 (you decide)); the gap has never shrunk since that candle (staying equal doesn't break it); and in this candle EMA 9 is below EMA 21. If all three hold, it opens SHORT. You set both the threshold and the window yourself.
What is the EMA gap?
The distance between the fast EMA (9) and the slow EMA (21), divided by price, as a percentage: the gap. The gap is an ABSOLUTE value — it doesn't say direction, only how wide it is. If it's opening, the move is accelerating; if it's closing, the move is fading. Direction comes from the order of the two lines.
How do you use it?
This is a STATE condition: it holds on every candle as long as the chain continues, and the entry is on the first candle the chain holds — it comes after the crossover, catching settled momentum rather than the start of the turn. Sideways, the gap flickers and breaks the chain often; that's why it's a trending-market condition.
Which settings does it read?
Two boxes are read: Condition Window (currently 2) how many candles the chain must last — set it to 1 and the chain is a single candle, the condition drops to "gap above threshold and EMA 9 below"; Width Threshold currently goes to the bot as %0.1. In the panel the threshold toggle comes OFF by default and the bot receives 0 — since the gap is absolute, 0 effectively filters nothing out.
Does this condition close the position?
It only approves the entry; even if the condition breaks after the position opens, it doesn't close it. What closes it is your choice: if Profit Lock is on, PNL tracking takes over (while it's on, the Trailing Stop, Take Profit Net, Limit Take Profit Net boxes are locked); if it's off, the numbers you entered in these three are placed as orders on Binance and the position closes from there. DCA Rescuer and Liquidation Shield kick in under their own conditions; and you can always close from the panel with CLOSE or manually from Binance.

Each row was tested separately on this chart's own engine.
CONDITION WINDOW (CANDLES)
| Value | What happens | Entry moment |
|---|---|---|
| 1 | the chain will run for 1 candle without a break — raising it TIGHTENS | 1 |
| 2 | the chain will run for 2 candles without a break — raising it TIGHTENS | 1 |
| 3 | the chain will run for 3 candles without a break — raising it TIGHTENS | 1 |
| 5 | the chain will run for 5 candles without a break — raising it TIGHTENS | 1 |
WIDTH THRESHOLD (%)
| Value | What happens | Entry moment |
|---|---|---|
| 0.00 | NO REQUIREMENT — gap is not read, everything passes | 1 |
| 0.10 | gap will exceed %0.10 · default | 1 |
| 0.50 | gap will exceed %0.50 | 1 |