Hammer green on historical date

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

    Hi,

    I have the  screener below. I want to test it on historical dates. Suppose i want to see all the results of this screener on 20-08-2025. What do i need to change in screener?

     

    EMA10=ExponentialAverage[10](Close)
    EMA20=ExponentialAverage[20](Close)
    EMA50=ExponentialAverage[50](Close)
    SMA200=Average[200](Close)
    c13= EMA10>EMA20 and EMA20>EMA50 and EMA50>SMA200
    C1=Summation[3](Close>EMA10)=3

    ATRpercent=100*(AverageTrueRange[14](close))/close
    c2 = ATRpercent>=3
    C3=Close*Average[30](Volume)>4000000
    c8= (open-low)>0.5*(high-low)

    c4= close>open

    C5= (high-close)<0.17*(high-low)
    c6= high<high[1] and high[1]<high[2]
    c7=low<ema10

    timeframe (weekly)
    EMA50=ExponentialAverage[50](Close)

    c12= close>EMA50

    test = c1 AND C2 AND C3 and c4 and c5 and c6 and c8 and c12 and c13 and c7
    screener[test]

    gr Marco

    #250701 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go:

    Timeframe(default)
    myDATE = 20250820
    EMA10=ExponentialAverage[10](Close)
    EMA20=ExponentialAverage[20](Close)
    EMA50=ExponentialAverage[50](Close)
    SMA200=Average[200](Close)
    c13= EMA10>EMA20 and EMA20>EMA50 and EMA50>SMA200
    C1=Summation[3](Close>EMA10)=3
    
    ATRpercent=100*(AverageTrueRange[14](close))/close
    c2 = ATRpercent>=3
    C3=Close*Average[30](Volume)>4000000
    c8= (open-low)>0.5*(high-low)
    
    c4= close>open
    
    C5= (high-close)<0.17*(high-low)
    c6= high<high[1] and high[1]<high[2]
    c7=low<ema10
    
    timeframe (weekly)
    EMA50=ExponentialAverage[50](Close)
    
    Timeframe(default)
    c12= close>EMA50
    
    test = c1 AND C2 AND C3 and c4 and c5 and c6 and c8 and c12 and c13 and c7
    myCond = 0
    IF myDate = Date THEN
       myCond = test
    ELSIF myDate < Date THEN
       FOR i = 0 TO BarIndex
          IF myDate = Date[i] THEN
             myCond = test[i]
             break
          ENDIF
       NEXT
    ENDIF
    screener[myCond]
    Iván González thanked this post
    #250707 quote
    marco7630marco7630
    Participant
    New

    Thanks Roberto

Viewing 3 posts - 1 through 3 (of 3 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

Hammer green on historical date


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
marco7630 @marco7630 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by marco7630marco7630
1 year ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 09/11/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...