Applying a screener to different TFs

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #65662 quote
    robertogozzi
    Moderator
    Master

    I am running this screener to detect engulfing candlesticks > 10 pips on the Daily TF.

    What’s the difference between applying it on the Daily Chart or on the, say, 1-minute chart?

    ONCE BodySize = 10 * pipsize
    TIMEFRAME(daily)
    Engulf  = 0
    Body    = abs(open - close)
    Bearish = open > close
    Bullish = open < close
    IF Bearish[1] THEN                                                 //Bearish
       IF open <= close[1] AND close >= open[1] AND Bullish THEN
          Engulf = (Body > Body[1]) AND (Body >= BodySize)
       END IF
    ELSIF Bullish[1] THEN                                              //Bullish
       IF open >= close[1] AND close <= open[1] AND Bearish THEN
          Engulf = (Body > Body[1]) AND (Body >= BodySize)
       ENDIF
    ENDIF
    TIMEFRAME(default)
    Result = Engulf
    SCREENER[Result]
    xEngulfing.jpg xEngulfing.jpg
    #65704 quote
    Nicolas
    Keymaster
    Master

    Nothing. The selected timeframe in the dropdown list is the “default” one, the one you are mentioning at line 16 of your screener code.

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

Applying a screener to different TFs


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
7 years, 12 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/19/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...