HORIZONTAL BOX CHANNEL

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17740 quote
    GraHalGraHal
    Participant
    Master

    I can’t think how to code a screener to detect a ‘consolidation range’ similar to attached.

    Anybody seen code to do the job on here or got any ideas please?

    Many Thanks
    GraHal

    Horizontal-Box-Channel.jpg Horizontal-Box-Channel.jpg
    #17758 quote
    NicolasNicolas
    Keymaster
    Legend

    You can try to test the difference in points between the highest high and lowest low over last X periods.

    #17762 quote
    GraHalGraHal
    Participant
    Master

    I’ve done the two below (some of your code I’m sure, Nicolas) but they may or may not result in a horizontal pattern.

     

    hh = highest[60](high)[1]
    ll = lowest[60](low)[1]
    
    C1 = (hh-ll)<10*pipsize
    
    C2 = Open > High[1] OR Open < Low[1]
    
    Screener [C1 and C2]  (hh-ll AS "Range")

     

    fast = average[10](close)
    slow = average[40](close)
    spread = ((fast/slow)-1)*100
    flatrange = ABS((lowest[60](low)-highest[60](high))/close)*100
    
    c1 = fast>slow AND spread<10 AND close>fast AND flatrange<=15
    
    SCREENER[c1] (flatrange as "Range")
    #17766 quote
    NicolasNicolas
    Keymaster
    Legend

    I don’t know about the second one, but for the first one, it would do the job. You should look further back in the past?

Viewing 4 posts - 1 through 4 (of 4 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

HORIZONTAL BOX CHANNEL


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by NicolasNicolas
9 years, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 12/02/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...