Plot Yesterday’s High, Low and Close

Forums ProRealTime English forum ProBuilder support Plot Yesterday’s High, Low and Close

  • This topic has 21 replies, 5 voices, and was last updated 6 years ago by avatarAVT.
Viewing 15 posts - 1 through 15 (of 22 total)
  • #41535

    Hi

    Could somebody please help with the creation of the following indicator.

    Plot Yesterday’s High, Low and Close. The instrument trades 24 hours so the parameters necessary for calculating the indicator: Open- 083000 Close 160000. Must display on lower timeframe charts.

    Thank you

    #41545

    Hi,

    This exists as an indicator in your PRT platform per default.

    If I translate it from french it should be called “price line”. You can select “previous period” which will display yesterday’s values. According to your wish, you will create 3 indicators like this : one for the Close, one for the Highest, one for the Lowest (select “close”, “high” “low” in the indicator properties).

    BR,

    #41550

    Precisely what was wanted.  Merci.

    #41679

    Actually this is not what you asked for. The inbuilt PRT function works quite OK (there is also little problems) for high and low of the last 24h but open and close will not give you the open at 8:30 or whichever open you mean. The open tex for the Dax will give you the price from 0:00 since IG gives you a price for the dax 24h.

    So if you want an indicator that shows yesterdays open at 8:30 you will have to code it yourself and this will only work on timeframes 30min or lower. Same for the close, though if you want to have it from 16:00 1h timeframe will of course also work.

    #41690

    You are absolutely right – noticed it this morning.  Unable to code though.  So will continue to draw manually………………

    #41764
    AVT

    @denmar

    Would you please tell me exactely what lines you need? Yesterdays high, low, close is something differen than 8h open and 16h close. Or do you want all those lines, and for how long do need them in the chart?. I am plotting a lot of such lines in my window, so maybe I could change my code to your needs.

    #41766

    Hi AVt

    I am interested in the previous days HIGH, LOW reached between 0830 and 1630 and CLOSE at 1630 plotted for current day and the current day’s OPEN 0830.

    Thanks

     

    #41831

    It is problematic to code such an indicator if it shall work on different timeframes. Especially there is no possibility to make this work on TF larger than 30min.

    #41833

    Hi Despair – I am realizing there are limitations to Prorealtime – but one just adapts to these and makes do.

    #41835
    AVT

    The first part is easy, so get at least some lines automatic painted, I give you the code for painting the closing of yesterday and todays open.

    I know there’s a trick to get the other too, still working on that one, cause I don’t paint yesterdays high/low into todays chart (my own limit would be short before today opens, because I have enough lines in my day chart).

    Check the first two, would be for now 2 lines less, if it works the way you wanted.

     

    #41904
    AVT

    I think I got it working. Would you please test if it works as we want it. Thanks. Code:

    Sorry that comments are not as usual, is just my “working sheet”. 😉

    2 users thanked author for this post.
    #41905

    Thanks AVT .. will definitely try it out on Monday .. The market I am interested in closed about 1/2 an hour ago… thumbs crossed.

    2 users thanked author for this post.
    #41908
    AVT

    Thanks denmar, DAX is also closed. I checked the paintings for the last few days on DAX and they look like it is what you wanted. Have a nice weekend.

    #41942

    Hi AVT, couldn’t wait for Monday.  So have been checking it out this morning – certainly seems correct.  Many, many thanks.  Will confirm that all is in order  next week.  Big thumbs up.

    #42309

    Hello,

    I have similar request, I need to draw 2 segments (or a rectangle) to see the levels of 8:00 and 9:00 in my 15 minutes or hourly chart (cf. screenshot)

    please advice how to implement this (ideally in a flexible way so that I can change the interval…).

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

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