Multi Timeframe Strategy Problem

Forums ProRealTime English forum ProOrder support Multi Timeframe Strategy Problem

Viewing 2 posts - 1 through 2 (of 2 total)
  • #91417

    I was building a simple multi timeframe strategy based on the Absolute Strength indicator:

    https://www.prorealcode.com/prorealtime-indicators/absolute-strength/

    I am using the 3 Min chart of the Germany 30 Cash index as my current timeframe and the 15 Min chart for my higher timeframe.

    I am also using the Graph function to make sure I get the correct values for the Absolute Strenght lines.

    When looking at the Graph output, I noticed that when I use the condition “Timeframe(15 minutes,updateonclose)”, the Absolute Strength lines of the 15 Min timeframe slightly differ from the “true” values on the 15 Min chart.

    However, when I use the condition “Timeframe(15 minutes)” [without, updateonclose], the Absolute Strenght lines are correct.

    I would rather like to use the updateonclose condition for my strategy, so I would like to find out why this difference exist and if it can be fixed?

     

    Below you can find my code and some screenshots to further illustrate my problem (I realise it probably isn’t the best looking code, especially the way I handled the MTF bit, but thats due to my lack in coding experience – mayby that’s why I have this problem in the first place)

     

    #91421

    I modified your code by adding a coiuple of TF’s and GRAPH’s so that you can see the inner workings of BARINDEX, which is likely to be the cause of your issue (I indented my line 6 spaces):

     

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

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