Negative Volume Index screener

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #113891 quote
    HencheyHenchey
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    HencheyHenchey
    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.
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

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 HencheyHenchey
6 years, 9 months ago.

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