Adding volume averages to my current filters

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #145297 quote
    SR83
    Participant
    New

    Hi All,

    Can somone please advise how to add a criteria that filters according to the average volume of the last 90 days?

     

    I tried the following however it did not work:

     

    avgv = average[90](volume)
    
    criteria = avgv >300000
    #145302 quote
    robertogozzi
    Moderator
    Master

    Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.

    Thank you 🙂

    Your code is correct, it depends where you use it.

    If you add the last line:

    Return criteria

    it will return a signal when average volume > 300K.

    What do you mean by “it did not work”?

    #145356 quote
    SR83
    Participant
    New

    Hi There,

     

    I tried:

    REM Calculate the RSI indicator on 14 hourly bars
    myRSI = RSI[14]
    
    REM Our filter  condition: RSI < 30
    Filter = myRSI < 30
    
    REM Sorting criteria: myRSI
    SCREENER [ Filter ] (myRSI AS "RSI")
    
    avgv = average[90](volume)
    criteria = avgv > 300000
    Return criteria

     

    But it produced the following error message:

    !Syntax error: line 12, character 16
    The keyword RETURN is only for indicator programming (ProBuilder)

    #145367 quote
    robertogozzi
    Moderator
    Master

    You cannot use both SCREENER and RETURN, one is for screeners, the latter for indicators.

    You have to tell us what you want.

    An indicator is assumed since you posted in the ProBuilder support forum.

    #145375 quote
    robertogozzi
    Moderator
    Master

    I think you want a screener, try this one:

    REM Calculate the RSI indicator on 14 hourly bars
    myRSI = RSI[14]
     
    REM Our filter  condition: RSI < 30
    Filter = myRSI < 30
    
    avgv = average[90](volume)
    criteria = avgv > 300000
     
    REM Sorting criteria: myRSI
    
    SCREENER [Filter and criteria] (myRSI AS "RSI")

    I moved your topic to the ProScreener support.

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

Adding volume averages to my current filters


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
SR83 @sr83 Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robertogozzi
5 years, 5 months ago.

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