Store opening price time 9am in a variable

Forums ProRealTime English forum ProRealTime platform support Store opening price time 9am in a variable

Viewing 3 posts - 1 through 3 (of 3 total)
  • #138855

    Hello

    What is best practice to store the opening price at a specific time (ex. 090000 – 9am) in a variable

    I tried the following code:

    Thanks for your support.

     

    #138868

    I would say:

    the first part (time = 090000) will be true whenever a bar closes at that time sharp, while the latter will be true whenever a bar does NOT close at 090000 sharp but it’s the first one to cross that time.

    1 user thanked author for this post.
    #138987

    Thanks @robertogozzi

    The following solution is working for me:

     

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

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