Help to code Engulfing Candle screener please

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #181163 quote
    MarkW1979
    Participant
    New

    Hi,

    I am a complete beginner to this and have tried to utilise various codes for engulfing candles but can’t get the screener to do exactly what I want to do. I would be really grateful if someone could help me.

    My criteria are as follows:

    1. Price is above 200 period SMA
    2. The 100SMA is above 200SMA
    3. Bullish engulfing candle defined by candle BODY of current candle engulfing candle BODY of previous candle – i.e. a) candle close is higher than previous candle open or close (which ever is higher), and, b) candle open is lower than previous candle open or close (whichever is lower)
    4. Strong candle close i.e short top wick – I am not sure how best to define this, maybe that the top wick is no more than say 15% of the total candle length?

    Any help appreciated, many thanks in advance.

    Mark

    #181196 quote
    MarkW1979
    Participant
    New

    I’ve kind of made some progress with this. I think I just need to amalgamate 2 pieces of code together which I’m not able to do. I’m sure this code looks horrible but as I said I am completely new to this!

    Any help appreciated.

    So I basically need help combining this code which I have cobbled together for conditions 1,2,3:

    ENGULFING = 0

    IF close > open AND close > open[1] AND open <close[1] AND close > close [1] AND open < open [1] AND ((close)> Average[200](close)) AND ((ExponentialAverage[50](close)) >= (Average[200](close))) THEN
    ENGULFING = 1
    endif

    SCREENER[ENGULFING]

    …with this Code for “short wicks” which I found on the forum (my condition 4):

    Top15 = high - (range * 0.2)
    SCREENER[close >= Top15]

    Thanks again,

    Mark

    #181198 quote
    MarkW1979
    Participant
    New

    Sorted it now, thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Help to code Engulfing Candle screener please


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
MarkW1979 @markw1979 Participant
Summary

This topic contains 2 replies,
has 1 voice, and was last updated by MarkW1979
4 years, 4 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 11/07/2021
Status: Active
Attachments: No files
Logo Logo
Loading...