@tonbijl
After replying to your topic, for unknown reasons it became inaccessible to me. I don’t know if you can read it, so I decided to make a copy of it.
Will you mind posting again your cinditions?
I changed them slightly as a couple of them seemed incorrect.
There you go (not tested):
C1 = (range = 8*pipsize)
// Bearish candlestick
S1 = (High-Open <= 1*pipsize)
S2 = (Close-Low <= 1*pipsize)
S3 = close < open
SC = S1 and S2 and S3 and C1
// Bullish candlestick
L1 = (High-Close <= 1*pipsize)
L2 = (Open-Low <= 1*pipsize)
L3 = close > open
LC = L1 and L2 and L3 and C1
//
Return (SC or SL)