Simple breakout from consolidation screener

Forums ProRealTime English forum ProScreener support Simple breakout from consolidation screener

Viewing 3 posts - 1 through 3 (of 3 total)
  • #126669

    Hello PRT community,

    I would very much appreciate some assistance with coding in PRT for a simple breakout screener. I have tried many ways to do this without success.

    I would like to code the following for a Daily System:

    For a long position:

    1. The Supertrend(5,15) to be above the high of the previous 7 days and
    2. The Supertrend (5,15) to be the same for the previous seven days; and
    3. The supertrend (5,15) of the current day is below the low of the current day; and
    4. The close of the current day is greater that the Supertrend(5,15) of the previous 7 days; and
    5. The close of the current day is greater than the open of the current day.

    The long position looks to identify the candle identified by the arrow in the chart below:

    The Short position is essentially the opposite of the Long position:

    1. The Supertrend(5,15) to be below the low of the previous 7 days and
    2. The Supertrend (5,15) to be the same for the previous seven days; and
    3. The supertrend (5,15) of the current day is above the high of the current day; and
    4. The close of the current day is less that the Supertrend(5,15) of the previous 7 days; and
    5. The close of the current day is less than the open of the current day.

    Thank you for your time and assistance.

    #126719

    Here is the code for that breakout screener from consolidation. Signals are identified separately in the ProScreener sorting criteria column: 1 = bullish breakout ; -1 = bearish breakout

     

     

    #127170

    Nicolas,

    Thank you very much for your assistance. With all the attempts in the world I do not believe I would have been able to work out the coding.

     

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login