Example: Consecutive Long Lower Shadows

Suppose you want to be alerted when there are two or more consecutive candles with long lower shadows. If you break that down, you need to compare these two values:

  • The body size of the candle (a)).
  • The size of the lower shadow (b).

Given both values, you can compare the two. For example, if the shadow size is at least 4 times the body size, that can be considered a long candle. Mathematically speaking, that implies: b>4*a. If we put this all together, we get:

FIRST EXPRESSION (A)
4 hours→
Candlestick: Body Size→
COMPARISON OPERATOR
≥≤<>=ƒ
b > 4 * a
SECOND EXPRESSION (B)
Candlestick: Lower Shadow Size→

The above condition targets one of your desired candles. Now, as the requirement was to have two consecutive ones, we also need to look back and check the previous candle. So, for that we need another condition, which is identical except for the lookback:

FIRST EXPRESSION (A)
Lookback→
Count 1→
4 hours→
of: Candlestick: Body Size→
COMPARISON OPERATOR
≥≤<>=ƒ
b > 4 * a
SECOND EXPRESSION (B)
Lookback→
Count 1→
of: Candlestick: Lower Shadow Size→