Bollinger Previous Days

Forums ProRealTime English forum ProScreener support Bollinger Previous Days

Viewing 12 posts - 1 through 12 (of 12 total)
  • #182577

    Hi all,

    I’m trying to refer to the value of a Bollinger Band from previous days however, my condition does not seem to apply correctly.

    For instance, what would be the value of the lower Bollinger Band 2 days ago?

    I’m trying the following with no success: BollingerDown[20](Close[2]) or BollingerDown[20](Close)[2]

    Thanks a lot!

    #182582

    Try defining and using MyBB[n]:

    #182585

    Hi Roberto,

     

    Thanks a lot for your swift response.

     

    I tried your suggestion as per the example attached however it is still not working properly.

    For example, there is a stock where yesterday’s High is 21.780 and yesterday’s lower Bollinger Band is 21.244

    I want the condition to be true if  yesterday’s High is equal or less than yesterday’s lower Bollinger Band plus 1.5%.

    For this stock, the result of this condition would be False (21.244 * 1.015 = 21.563) however, the Proscreener is still showing it up.

     

    Any thoughts on this? Grazie mille!

     

    Alberto

    #182596

    Beacuse you are comparing different TFs.

    That’s because (1) with DHIGH means that you get yesterdays’s DAILY high and you compare it with BBInf[1] wichi is not yesterday’s BB (unless you are using the Daily TF, in which case you can use HIGH[1] instead of DHIGH(1)), but the value of the BB on the previous candle. If you use it on a 1-hour TF, DHIGH is correct, but BBInf[1] is the value of the previous hour.

    In addition, check that you do not reference more than 254 bars, which is the current limit with IG (1024 with PRT). So, if you are using a 1-minute TF, you won’t be able to make it work because you will need 1024 bars for today (maybe half of them at 12pm) + 1024 for the whole previous day, which are quite too many.

     

     

    1 user thanked author for this post.
    #182599

    Thanks Roberto, my intention here is to do everything with Daily timeframe. So compare yesterday’s daily high, with yesterday’s lower bollinger band on the daily candle.

    As per your example, I have simplified the reference to yesterday’s High, but still not been able to get it right. (I also tried introducing Timeframe(Daily) at the very beginning to force everything to be on daily basis but didnt work either.

    Also, Im not referencing to any previous days, so the 1024 limit should not affect.

     

    Thanks!

     

    #182623

    Replace the last line with:

    #182624

    That was just a typo when re-writing the code here, it is correct on ProScreener.

    #182627

    Real time subscription? Or free “end of day” account?

    #182628

    Real Time, Premium account.

    #182634

    It works finely for me.

    Is it possible that you typed * 1.015, instead of 0.985?

    #182706

    I just found out that my code is providing somewhat random (wrong) results, only when combining lists of different markets.

    When selecting only Spain for instance, it seems to be working fine.

    PRT told me they where experiencing some issues with american stocks so perhaps this is affecting proscreener.

    Thanks to all for your kind attention.

    1 user thanked author for this post.
    #182708

    Thank you for letting us know about this issue 🙂

     

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

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