52 week high volume in any of days in last 30 days

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #49893 quote
    luckyhaa
    Participant
    Junior

    Please help me how can write code in proreal time in this condition

    condition- 52 week high volume in any of  days in last 30 days

    Quantshare code for above condition

    a= (volume ==hhv(volume,240))

    b= hhv(a,30)

    filter=b

    Thanks

    #49916 quote
    Nicolas
    Keymaster
    Master

    Condition to find if a new highest high Volume of the last 240 days has occurred in the last 30 days:

    new52WhighVol = Volume>highest[240](volume)[1]
    filter = summation[30](new52WhighVol)>0

    Not tested, please give feedback!

    #49926 quote
    luckyhaa
    Participant
    Junior

    Nicolas,

    thanks for your prompt reply ….I am not getting result…i added some more conditions …please test from your side..Looks some error in the code

    sample screener code

    new52WhighVol = Volume>highest[240](volume)[1]
    c3 = summation[30](new52WhighVol)>0
    hh = highest[52](high)
    c = Close>=0.85*hh
    c1= CLOSE > 10 AND AVERAGE[21](VOLUME) > 200000
    EMA1 = average[20](close)
    EMA2 = average[50](close)
    c2 = Close>EMA1 AND Close>EMA2 AND EMA1>EMA2
    SCREENER(c3 and c and c2 and c1)
    #49943 quote
    Nicolas
    Keymaster
    Master

    ahaha! did not test the code myself, but:

    firstly:

    For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<

    Then, (and I’m sure I’m pointing this error at least 3 times at week 🙂 ) , SCREENER instruction need conditions in square brackets, not parenthesis.

    #49951 quote
    luckyhaa
    Participant
    Junior

    sorry,Will  use insert button in the  future

    #54202 quote
    Julio
    Participant
    Junior

    I am having trouble working out the difference between:

    new52WhighVol = Volume>highest[240](volume)[1]

    and

    new52WhighVol = Volume>highest[240](volume[1])

    Please help??

    #54206 quote
    Nobody
    Participant
    Veteran

    Not sure if this is it but screener works for me  

     

    new52WhighVol = Volume>highest[240](volume)[1]
    
    
    c1 = new52WhighVol 
    
    c2 = summation[30](new52WhighVol)>0
    
    
    SCREENER[c1 AND c2 ] 

     

    #54207 quote
    robertogozzi
    Moderator
    Master
    I am having trouble working out the difference between: new52WhighVol = Volume>highest[240](volume)[1] and new52WhighVol = Volume>highest[240](volume[1]) Please help??


    I tried with  HIGH and I couldn’t spot any difference:

    GRAPH highest[240](high)[1]
    GRAPH highest[240](high[1])

    Roberto

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

52 week high volume in any of days in last 30 days


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
luckyhaa @cjdevasia Participant
Summary

This topic contains 7 replies,
has 5 voices, and was last updated by robertogozzi
8 years, 3 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 10/19/2017
Status: Active
Attachments: No files
Logo Logo
Loading...