Consecutive Candles on Specific date

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #99539 quote
    prevailution
    Participant
    Junior

    Hi, I am using a 3 consecutive candle screener searching for short term uptrends but I would like the screener to show me when the conditions were met on a previous date (so that I can see how stock behaved after meeting these conditions)

    It’s only working for the last trading day, I get 0 results when I change the date to anything other than last trading day. How do I get there screener to show the conditions met for previous days?

    a = close
    b = close [1]
    c = close [2]
    d = close [3]
    
    if a>b and b>c and c>d then
    i =1
    else
    i = 0
    endif
    
    minVolume = 100000
    minClose = 20
    idate = 20190524
    
    
    SCREENER [i and Volume>minVolume and Close>minClose and date=idate]
    #99547 quote
    Vonasi
    Moderator
    Master

    I’m not big on the workings of screeners but I’m guessing that you could just change:

    a = close
    b = close [1]
    c = close [2]
    d = close [3]

    to something like this to test for the same thing 10 candles ago:

    a = close[9]
    b = close [10]
    c = close [11]
    d = close [12]
    
    prevailution thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Consecutive Candles on Specific date


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Vonasi
6 years, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 05/27/2019
Status: Active
Attachments: No files
Logo Logo
Loading...