Same named conditon for different TimeFrames

Forums ProRealTime English forum ProScreener support Same named conditon for different TimeFrames

Viewing 4 posts - 1 through 4 (of 4 total)
  • #235904

    You can see in the code below that under both Daily/Weekly timeframes there is a condition with the same name bbUP.  This appears to be causing an issue and I am unsure why?  Basically when I sort by C9 [bbUP], the correct value is returned ie BollingerUP[20](Close) for the daily bar.  HOWEVER when I change bbUP[1], it doesn’t return the value for the previous daily bar but rather the BB for previous weekly bar!!?

     

    #235909

    Anyone able to provide some much needed insight?

    #235911
    JS

    Hi,

    You can’t use the same variable name in different time frames, this causes confusion…

    For example, use:

    bbUPDaily

    bbUPWeekly

    2 users thanked author for this post.
    #235912

    I guessed as much,  I already adjusted the code accordingly.

    1 user thanked author for this post.
    avatar JS
Viewing 4 posts - 1 through 4 (of 4 total)

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