Capture yesterday high low

Forums ProRealTime English forum ProBuilder support Capture yesterday high low

  • This topic has 13 replies, 2 voices, and was last updated 4 years ago by avatarBC.
Viewing 14 posts - 1 through 14 (of 14 total)
  • #97279
    BC

    I want to capture yesterday (9:15 – 16:30) high low and show on today chart, but my code didn’t show correctly, what I did wrong?

     

     

     

    #97283

    You need to store yesterdays value before resetting and looking for todays value.

    You could also use MAX and MIN instead of all the IF  and THEN’s.

     

    #97286
    BC

    Vonasi

    It works! Thanks a lot.

    #110619
    BC

    Hi PRT Master

     

    I stuck again on how to capture last week (9:15 – 16:30) high low, anyone can help?

     

    Thanks

     

    #110623

    Try this:

    EDIT : Code corrected 20191021

    1 user thanked author for this post.
    avatar BC
    #110635
    BC

    Million Thanks, Vonasi.

    #110719
    BC

    Hi Vonasi

     

    I just test the code, but the output not same as your screen cap.

     

    BC

    #110721
    BC

    Hi Vonasi

     

    I found where is the problem, should use OpenDayOfWeek command instead of OpenDay.

     

    Thanks

    #110731

    Sorry about that – not sure how that typo got in there! I’ll edit the code in my post to correct it.

    #111245
    BC

    Hi Vonasi

     

    I stuck again on capture last X week high low within 9:15-16:00, can you help?

     

    Thanks

    #111256

    By X do you mean you want the high and low between 0915 and 1600 for the week X weeks ago or do you mean you want them for the last X weeks all included?

    #111257
    BC

    High and low between 0915 and 1600 for the week X weeks ago, eg: 10 weeks ago.

     

    Thanks

    #111261

    This code will do that – but be warned it is very slow to draw due to the loop.

     

    1 user thanked author for this post.
    #111305
    BC

    Thanks Vonasi.

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

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