Simple script showing values correctly on Daily but not lower TFs

Forums ProRealTime English forum ProBuilder support Simple script showing values correctly on Daily but not lower TFs

Viewing 15 posts - 1 through 15 (of 17 total)
  • #158797

    Hi all,

    I’ve a simple “Camarilla Levels” script for PRT. It used to display fine on all timeframes in PRT 10.3 but ever since moving to PRT 11, it shows correctly on daily but wrong values in lower TFs.

    Code is below

    Any thoughts what could be the problem here?

    Regards

    Ash

    #158802

    Indeed, there is sometimes strange behaviour of the code, coming from constants like Dopen or Dlow, I can replicate with the below code:

    I will ask what cause this issue, please feel free to launch a suppor ticket with a link to this thread, I’ll do the same. Thanks.

    #158821

    I use IG PRT but where shall I raise the support ticket?

    Thanks.

    #158823
    #158893

    If you are an IG customer use the support ticket tool in the platform Help menu.

    #159390

    Topic moved to ProBuilder forum. I confirm that a fix is on his way for that issue.

    #159746

    Thanks Nic.

    highhtf = DHigh(1)
    lowhtf = DLow(1)
    closehtf=DClose(1)

    Just a simple script to display above values will give different results on different time frames. Only daily is returning correct value because above values are Daily based.

     

    #162527

    Hi,

     

    Any idea if this bug has been fixed?

     

    Thanks.

    #162534

    I have no idea right now, but a workaround would be to use the daily timeframe to get the OHLC value:

     

    1 user thanked author for this post.
    #162606

    Thanks a lot Nic.

    Everyday is a learning day. I read somewhere Ale mentioning that MTF is there in new version but i was like it is only in scanners. I will be doing all my MTF porting from TV to PRT now. Thanks.

    Function timeframe opens many opportunities.

    #162607

    Hi Nic,

    I modified the code such as

    The display is fine on Daily Chart but when I use lower TF charts, it doesn’t display anything.

    #162614

    Because you are not switching to the default timeframe (the one displayed on the chart) in the code, add this line below line 13:

    so all the below code will be read and used on the current timeframe displayed.

     

    1 user thanked author for this post.
    #162622

    I did that but it displays different values on 1D chart, and different values on lower timeframes charts but all lower timeframes have same values. i.e.

    values of 1D isn’t equal to values from 4h/2h/1h/30/15m while (4h=2h=1h=30m=15m)

    #162664

    remove updateonclose for the daily timeframe instruction, it should be ok then.

    1 user thanked author for this post.
    #162673

    I see no benefit either way.

    I think this workaround doesn’t work. Bug needs proper fix.

Viewing 15 posts - 1 through 15 (of 17 total)

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