Break out Screener with High Volume to the Down Side

Forums ProRealTime English forum ProScreener support Break out Screener with High Volume to the Down Side

  • This topic has 6 replies, 2 voices, and was last updated 1 year ago by avatarMary.
Viewing 7 posts - 1 through 7 (of 7 total)
  • #200986

    Hello,  the Breakout screener with high volume below only shows stocks for the Upside Breakout.

    How can this Screener below be modified to do the same thing for the Downside please?  Breakout candle with high volume to the Down side?  Thank you.

    // today variation
    tdVar = (close[0] – open[0]) / open[0] * 100

    // Var condition
    avgVar = 0
    for i = 1 to 10 do
    if (close[i] > open[i]) then
    avgVar = avgVar + (close[i] – open[i]) / open[i]
    else
    avgVar = avgVar + (open[i] – close[i]) / close[i]
    endif
    next
    avgVar = avgVar / 10 * 100

    c1 = tdVar > avgVar

    // highest break condition
    maxValue = highest[10](high)[1]
    c2 = maxvalue < close and open < maxvalue

    // Volume condition
    avgVol = average[20](volume)
    sum = 0
    for i=0 to 20
    if (volume[i] < avgVol*10) then
    sum = sum + volume[i]
    else
    sum = sum + avgVol
    endif
    next

    avgVol = sum / 21
    c3 = avgVol > 1000

    // Breakout Var%
    breakoutVar = (close – maxvalue)/close*100

    // Screener
    SCREENER[c1 and c2 and c3](breakoutVar as “Breakout Var%”)

    #200988

    Try this one (not tested):

    #200992

    Thank you I put in the code but there is an error saying that

    minValue is not defined.

    Can this be corrected please?

    Thank you

     

     

     

    #200995

    Sorry, it’s due to line 14 having mistakingly joined two lines.

    Replace it with these lines:

    #201061

    Hi Robert,

    I fixed it as you suggested but now the code is not showing error but returning nothing at all not on nasdaq, not on nyc not, not on any georaphic zone.

    this is the code I have fixed as you suggested:

    // today variation
    tdVar = (close[0] – open[0]) / open[0] * 100
    // Var condition
    avgVar = 0
    for i = 1 to 10 do
    if (close[i] > open[i]) then
    avgVar = avgVar + (close[i] – open[i]) / open[i]
    else
    avgVar = avgVar + (open[i] – close[i]) / close[i]
    endif
    next
    avgVar = avgVar / 10 * 100
    c1 = tdVar > avgVar
    // lowest break condition
    minValue = lowest[10](low)[1]
    c2 = minValue > close and open > minValue
    // Volume condition
    avgVol = average[20](volume)
    sum = 0
    for i=0 to 20
    if (volume[i] < avgVol*10) then
    sum = sum + volume[i]
    else
    sum = sum + avgVol
    endif
    next
    avgVol = sum / 21
    c3 = avgVol > 1000
    // Breakout Var%
    breakoutVar = abs(close – minValue)/close*100
    // Screener
    SCREENER[c1 and c2 and c3](breakoutVar as “Breakout Var%”)

     

     

    #201068

    Sorry, I missed changing a line. Replace the line just below the line FOR…. with this one:

    #201110

    Thank you Robert,  screener working great!

     

    1 user thanked author for this post.
Viewing 7 posts - 1 through 7 (of 7 total)

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