CCI screener

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

    Hello, sorry everyone for my poor english.

    I “need a hand” to finish a screener…

    indicator1 = CCI[72]
    indicator2 = Average[5](CCI[72])
    indicator3 = BollingerDown[21](close)
    indicator4 = BollingerUp[21](close)
    
    c1 = (indicator1 CROSSES OVER indicator2)
    
    c2 = (low[3] > indicator3[3])
    
    c3 = (low[2] <= indicator3[2])
    
    c4 = (low[1] <= indicator3[1])
    
    c5 = (indicator1 CROSSES UNDER indicator2)
    
    c6 = (high[3] < indicator4[3])
    
    c7 = (high[2] >= indicator4[2])
    
    c8 = (high[1] >= indicator4[1])
    
    criteria = CCI[72]
    
    SCREENER[c1 AND c2 AND c3 AND c4] OR [c5 AND c6 AND c7 AND c8]

     

    it seems very simply but gives and error on last “OR”….

    Any help is welcome…

    Thank you very much

    #46121 quote
    Nicolas
    Keymaster
    Master

    Conditions of screener must included into only one pair of square brackets, that’s where your syntax error is. Your last line should be coded like this:

    SCREENER [ (c1 AND c2 AND c3 AND c4) OR (c5 AND c6 AND c7 AND c8) ]

    Note that your 2 conditions are now separated with parenthesis inside the square brackets.

    #46220 quote
    camaleo
    Participant
    Junior

    Thank you very much Nicolas

     

    i am glad for learning with this fantastic forum

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

CCI screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
camaleo @camaleo Participant
Summary

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

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