How to get price just before close yesterday

Forums ProRealTime English forum ProOrder support How to get price just before close yesterday

Viewing 7 posts - 1 through 7 (of 7 total)
  • #71398

    Hi – I’m very new to this, so please forgive me for my ignorance. I am trying to code a simple strategy that looks at the price of the FTSE yesterday just before close, so at 16:29:59, and takes the difference from today’s opening price at 08:00:01.

    Can anyone please help me with how I do this? I have spent quite a while looking at the TIME function, and OPEN and CLOSE, but I can’t work it out.

    Many thanks.

    #71400

    Since you want to compute the difference between two adjacent bars, you can simply write

    this solution works with every intraday TF.

    If you need to have exactly the values at 16:29:59 and at 08:00:01, you’ll have to use the 1-second TF and write this piece of code:

     

     

    3 users thanked author for this post.
    #71403

    That’s completely brilliant, Roberto, thank you so much.

    Helen

    #71405

    This is not really a PRT Platform issue but more of ProOrder auto-trading issue. Now that Robert has provided the solution I have moved it across to the ProOrder section of the Forum where it is a bit more relevant. Please try to post in the correct section of the forum when you have future requests or questions so that you will find the best chance of an answer. 🙂

    #71452

    @ robertogozzi

    does this work in 1min timeframe too? or just in intraday?

    thx for help!

    #71453

    1 minute IS intraday, so it will work perfectly.

     

    #71465

    thank you!

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

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