The below script looks for an Inside Candle that has been triggered on the low of the inside candle.
I need the following added to the script:
I need the following added to the script:
- the triggered candle (current candle) touch the 9ema
- can be used to scan on the daily chart
Code:
# Generation time: 2025-07-21T17:23:36.710783Z
def IsUp = close > open;
def IsDown = close < open;
def IsDoji = IsDoji();
def avgRange = 0.05 * Average(high - low, 20);
plot PatternPlot =
((Sum(IsUp, 1)[2] >= 0)) and
((Sum(IsUp, 1)[1] >= 0)) and
((Sum(IsUp, 1)[0] >= 0)) and
Highest(high[2], 1) > Highest(high[1], 1) and
Highest(high[1], 1) > Highest(high[0], 1) and
Lowest(low[1], 1) > Lowest(low[0], 1) and
Lowest(low[2], 1) < Lowest(low[1], 1);
Last edited by a moderator: