Candles in a row

Viewing 5 posts - 1 through 5 (of 5 total)
  • #48267

    Hi,

    Could someome provide me with code that I can use in the ProScreener?

    I would like the screener to find all stocks that have between 5 to 10 green candles in a row

    Thanks

    #48285

    Topic moved to ProScreener forum section.

    This code should do the trick:

     

    #48289

    Of course you might want to change the value 5 with one that best suits you.

    Also, you my assign the result to a variable.

    Should you need to check that the green candles need not be consecutive, i.e. 6 out of the last ten:

    To adapt it to red candles you just need to replace “close >  open” with “open > close”.

    Roberto

    1 user thanked author for this post.
    #53884

    this my version , first we need the consecutive green counter      

    then we need the screener 

    you could make the cl and c2 inputs variables to make scan more versatile as well 

     

    #53885

    TO go a step further you could scan for ‘x’ greencandles lookbacking back 1 and no green candles current bar to find potential reversals  

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

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