Screener – point in time result?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #133443 quote
    robdav
    Participant
    Veteran

    Hi

    I appreciate screeners are meant to be for live situations.

    However, there is a condition I want to check for at say 8am on Monday morning across many markets and for the result to remain until the following Monday morning at 8am. I want to use this as a reference for live screeners.

    I have included a hypothetical example, the example is irrelevant, it’s screening for a condition in a market at a fixed time that I’m after.

    I know I could check ‘x bars back’ but obviously x will constantly change during the week.

    Any suggestions welcome please.

    Thanks, Rob

    TIMEFRAME(1 hour)
    
    // I want to SCREEN the condition on Monday at 8am, not live
    
    MondayOpen = 0
    
    IF OpenDayOfWeek = 1 AND Time = 080000 THEN
    MondayOpen = 1
    ENDIF
    
    OneHourSignal = 0
    
    OneHourEMA20 = ExponentialAverage[20](close)
    
    IF Close > OneHourEMA20 THEN
    OneHourSignal = 1
    ENDIF
    
    IF Close < OneHourEMA20 THEN
    OneHourSignal = 2
    ENDIF
    
    Signal = 0
    
    IF MondayOpen = 1 AND OneHourSignal  = 1 THEN
    Signal = 1
    ENDIF
    
    IF MondayOpen = 1 AND OneHourSignal  = 2 THEN
    Signal = 2
    ENDIF
    
    SCREENER [Signal] (Signal as "1 = ↑ / 2 = ↓")
    #134227 quote
    robdav
    Participant
    Veteran

    Is anyone able to help me with this please?

    Thanks.

    #134236 quote
    robdav
    Participant
    Veteran

    Actually, I think I’ve got what I need thanks.

    I’m using the bars back option and just calculating how many bars back 8am on Monday is.

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

Screener – point in time result?


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
robdav @robdav Participant
Summary

This topic contains 2 replies,
has 1 voice, and was last updated by robdav
5 years, 9 months ago.

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