Negative Volume Index screener

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #113891 quote
    Henchey
    Participant
    Junior

    Hi, I’m having trouble getting a screener to display stocks where the negative volume index crosses over a moving average of the negative volume index, could anybody advise why this returns zero results?

    indicator1 = NegativeVolumeIndex(close)
    indicator2 = Average[255](NegativeVolumeIndex(close))
    c1 = (indicator1 >= indicator2)
    
    c2 = (indicator1[1] < indicator2[1])
    c3 = (indicator1[2] < indicator2[2])
    c4 = (indicator1[3] < indicator2[3])
    c5 = (indicator1[4] < indicator2[4])
    SCREENER[c1 AND (c2 OR c3 OR c4 OR c5)] (Variation AS "%Chg prev bar")
    

     

    Thanks Pete

    #113892 quote
    robertogozzi
    Moderator
    Master

    ProScreener has a 254-period limit, so lowering 255 to 250 (because you are referencing the 4th previous candle at line 8) or a bit less should do.

    Henchey thanked this post
    #115373 quote
    Henchey
    Participant
    Junior

    Many thanks for the help Roberto, thats fixed it

    Pete

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

Negative Volume Index screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Henchey @henchey Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Henchey
6 years, 2 months ago.

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