Engulfing pattern and ADX

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #167171 quote
    James.adejareJames.adejare
    Participant
    New

    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

    1. Engulfing pattern (both in the same chart)
    2. Increasing ADX and value above 25

     

    Thanks if you can.

    #167186 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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=↓")
    James.adejare thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Engulfing pattern and ADX


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 5 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 04/15/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...