BB2H on 15min TF

Viewing 8 posts - 1 through 8 (of 8 total)
  • #95999

    Hello,

    I’m looking to display the bollinger bands of the 2H TF on a 15min chart. I was able to draft the code here below, but calculation is off a few points vs the actual values and I can’t find why. Maybe someone could see if there is an error in my code.

     

    Thank you in advance,

     

    #96020

    Because you want to make an average of a non linear data serie.

    160 times the value of H2Close doesn’t mean that you are using 160 different values of it, because the data array of your H2Close is linear, it means that it follows the time passing by with the bar counts.

     

    #96037

    You could create a dummy MTF strategy and use GRAPHONPRICE to draw the 2 hour time frame Bollinger bands on a faster time frame if it is just an indicator that you want rather than a coding challenge!

    #96039

    Indeed Nicolas. How can I do to go through the last 160 values, and only store the 20 unique values that matters?

     

     

    #96045

    With a loop and some headaches, it is possible without variables arrays, but not the best solution around.

    You should have a look at examples made with GRAPHONPRICE, like Vonasi said, here: GRAPHONPRICE

    #96161

    Thx Nicolas and Vonasi for your remarks. Graphonprice is cool but I would prefer to keep my screens light, and I usually use a small segment on the right side to display different level of price from higher TF. So I will give a try. I haven’t seen a post with the kind of loop required, so if you have an idea..

    #99263

    Thx you again for your remarks, after some headaches, I finally found a way to code it.

    #99266

    I finally found a way to code it.

    Care to share it? The code might be of interest to others trying to do the same thing.

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

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