True within 5 bars

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #164694 quote
    OboeOpt
    Participant
    Veteran

    How do I modify this screener code to show results if true within 5 bars/Days?

    NyLow = lowest[100]
    indicator1 = Average[200](close)
    indicator2 = Average[200](close)
    c1 = close < lowest[100](high[1])
    c2 = (indicator1 > indicator2[1])
    SCREENER[c1 AND c2] (NyLow AS "NL")
    
    #164695 quote
    robertogozzi
    Moderator
    Master

    Replace line 6 with:

    SCREENER[summation[5](c1 AND c2)](NyLow AS "NL")
    OboeOpt thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

True within 5 bars


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
OboeOpt @oboeopt Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 years, 12 months ago.

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