Can anyone help with this screener please? Seems basic and I know there are a couple of mentions of engulfing already but I’m struggling a bit and would appreciate any help.
SCREENER for bullish and bearish engulfing in the same chart
CRITERIA
- Engulfing pattern (both in the same chart)
- Increasing ADX and value above 25
Thanks if you can.
There you go:
Bullish = close > open
Bearish = close < open
Body = abs(close - open)
Engulf = max(open,close) >= max(open[1],close[1]) AND min(open,close) <= min(open[1],close[1]) AND Body > Body[1]
MyAdx = Adx[14]
AdxFlag = MyAdx > 25 AND MyAdx > MyAdx[1]
BullCond = Bullish AND Bearish[1] AND Engulf AND AdxFlag
BearCond = Bearish AND Bullish[1] AND Engulf AND AdxFlag
Result = 0
IF BullCond THEN
Result = 1
ELSIF BearCond THEN
Result = 2
ENDIF
SCREENER[Result](Result AS "1=↑, 2=↓")