Higher time Frame Bollinger Band

Forums ProRealTime English forum ProBuilder support Higher time Frame Bollinger Band

Viewing 11 posts - 1 through 11 (of 11 total)
  • #126191

    I can’t find using the search

    What I would like is to add the bollinger bands to a daily chart but that it displays the weekly bollinger bands

    Any help much appreciated

     

    David

    #126209

    Multi Time Frame is not currently available for indicators. It was due for release quite soon but Covid-19 has put a delay on most new releases on the platform.

    As a work around you can create a dummy MTF strategy which draws the weekly bollinger bands on the daily chart.

    Also if you are using v11 which has arrays then it should be possible to create an array of recent weekly closing prices and then calculate our own standard deviation of them to use to calculate our own bollinger bands.

    #126216

    Here is the dummy MTF strategy:

     

    1 user thanked author for this post.
    #126260

    Here is the code for an indicator on PRTv11 that draws weekly bollinger bands on the daily chart. It updates the lines on Monday.

     

    2 users thanked author for this post.
    #126344

    Thanks

    That works well 😉

    #126638

    Here is a version of the above code that instead of updating only on the first day of the week just like TIMEFRAME(WEEKLY,UPDATEONCLOSE) behaves more like TIMEFRAME(WEEKLY,DEFAULT) and updates every candle.

    PRTv11 only due to the use of arrays.

     

    #126966

     

    Thank you for that, however when I attempt to create the indicator I get the following message:

    The following variable is undefined;deviations, P

    #126967

    Yes you need to add them as external variables that you can then change the value of in the indicator configure window or remove the // before them on lines 5 and 6.

    I plan to submit to the library two indicators that can display MTF standard deviation bands and MTF simple moving averages to any chart just as if we had MTF indicators – plus some other Bollinger band array based indicators that are quite interesting. PRT were doing maintenance today so I could not submit them but hopefully I will find time tomorrow but we will also have to wait for Nicolas to give them a five star review and make sure that they are colourful enough before they are released! (private joke)

    #127039

    the question is:

    is there a way to calculate MTF moving average/bollinger via probacktest, but by choosing the close observations. Exemple: close of the day, or the week, at a specific time (to replicate cash markets on indexes), instead of the last candle of the chart for that day/week.

    #127044

    Yes that should be possible. With arrays you can fill the array with whatever values you want so if you fill it with the closing price at 1630 every day then you can calculate an average of the last p values in the array and then calculate standard deviation bands off this average.

    I’ve just published an MTF simulating indicator to the library that might be of interest to you:

    Multi Time Frame Simple Moving Averages and Standard Deviation Bands

    #127045

    This code should do it. Not tested as I don’t have faster than daily charts on my v11 at the moment). It updates on every new candle just like TIMEFRAME(x,DEFAULT) would do.

     

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

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