Simple breakout screener issues

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #152700 quote
    HuebertHuebert
    Participant
    New

    Hi there

    I’m attempting to write a weekly break up screener based on the following criteria but I’m not seeing the desired outcome with the breakout criteria – e.g I’m seeing results with the current candle below the previous candle

    What am I doing wrong?

    • Break out to new 20 week highs – breaking up ideally from consolidation from the previous 20 bars
    • Rate of change above 30
    • Price range between $.10 and $5

    Here is my code

    c1 = highest[21](close) [1]
    c2 = close > c1 [1]
    c3 = ROC[20] > 30
    c4 = close >= 0.10 AND close <= 5
    c5 = close >= open
    
     
    screener[c1 and c2 and c3 and c4 and c5]
    
      Thanks!
    #152722 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    Try with this line 2:
    close > c1
    line 1 already references the previous bar, thus in your code you refer to the one preceding the previous one.
Viewing 2 posts - 1 through 2 (of 2 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

Simple breakout screener issues


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Huebert @numlock Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 9 months ago.

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