CCI screener programming

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #167603 quote
    Malibu1
    Participant
    New

    Hi,

    I am trying to build a scan for the CCI. I want to know when the CCI(11) goes below -100, within the last 15 days on a daily basis.

    Can someone help me with the programming?

    TIMEFRAME(daily)

    Condition1 = CCI[11] Close < -100

    I have no idea how to program for it to look at the previous 15 days.

     

    Thanks,

    #167605 quote
    robertogozzi
    Moderator
    Master

    That’s the line to accomplish what you want:

    Condition1 = summation[15](CCI[1] < -100)

    if Condition1 > 0 then it’s true.

    #167657 quote
    Malibu1
    Participant
    New

    Hi Robert, thanks for the code.

    I am having difficulty concentrating today as my wife is working from home and keeps talking on the phone.

    Can you post the whole code as my mind is like quicksand this morning.

    I am guessing that the CCI[1] was supposed to be CCI[11].

    #167658 quote
    robertogozzi
    Moderator
    Master

    My fault, yes [1]  should have been [11]:

    Timeframe(Daily)
    Condition1 = summation[15](CCI[11] < -100)
    Timeframe(Default)
    SCREENER[Condition1](Condition1 AS "No.")

    it will show the number of occurrences within the last 15 days.

    #175589 quote
    Malibu1
    Participant
    New

    Hi again,

    Is it possible to set this up on a long timeframe such as a monthly? I tried to just alter the timeframe but it didnt seem to like it. If its not possible, is it able to be programmed as a weekly using a 4 bar period?

     

    1
    2
    3
    4
    Timeframe(Daily)
    Condition1 = summation[15](CCI[11] < 100)
    Timeframe(Default)
    SCREENER[Condition1](Condition1 AS “No.”)
    #175590 quote
    robertogozzi
    Moderator
    Master

    The monthly TF is not supported by ProScreener.

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

CCI screener programming


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Malibu1 @malibu1 Participant
Summary

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

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