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 7 posts - 16 through 22 (of 22 total)
  • #42311

    Hi mmichael

    The indicator found here: https://www.prorealcode.com/prorealtime-indicators/initial-balance-indicator-v2-0/   bought to my attention by Toto le Heros should do what you want.

    1 user thanked author for this post.
    #42312

    Hi AVT, if you are following this thread, just want to thank you for the sterling coding job you did.  The indicator has worked perfectly so far this week so I assume it must be bug free – unless  affected by public holidays etc.  I would like to ask you another favour if you don’t mind and have some spare moments.  It involves checking some code from one of my earlier posts and a modification to some code- which I have not been able to do myself.  If you are game, please let me know here, and I will bring you up to speed with the issue(s).  Thank you.

    #42405
    AVT

    @denmar Following, but not checking my mail account, so I might be a day late sometimes.

    I did also follow the line plotting and noticed some lines not constantly updated with ongoing minutes. There’s a peace of code in it checking what timeframe we are in which is neither my work nor do I understand it (shame on me) and when debugging this code, it sometimes showed wrong results (like on a m3 chart it sometimes said we have m6 or even m24, which is why I don’t trust that code – or the code is correct and sometimes just the calculation engine too busy or god know what), so it’s still in “working sheet” state – there’s by the way still a DRAWTEXT line in it which should be deleted.

    #42443
    AVT

    I made a detailed example for you, so you can examine how it is done. Those 2 “breakout range lines”  will accompany you through the whole market session and it will do that for every day (very handy if one wants to compare them with previous days). Code:

    I also attach the itf so you can see how/where we set external variables.

    Hope this helps you.

    #42455

    Hello,

    I would like to jump in your interesting topic.

    I share with you a small enhancement. If (like me) you need these lines only for indexes (CAC, DAX, DJI, …) as these are not relevant for other assets, forex etc…, I would suggest to change line 38 as follows –> It works for me.

    I have a small question, is it possible to add a condition (or choice checkbox) to plot the lines only for the current day?

    #42456

    For information, to plot the lines only for today, I tried the following code but it works for DAX but not DJI. Any idea ?

     

    #42485
    AVT

    @mmichael

    In this code snip you suggested

    you say: print only if we are in the allowed time and the closing price is above 5000.

    But printing should not have anything to do with a price level. Just have a look here http://www.finanzen.net/indizes/Westeuropa – there are a lot of European indices which are well below 5000 and you would exclude all those from ever being printed.

    If you have this printing tool in a forex chart for example, there’s the check box ShowLines – and if you switch that off no line will be shown and that’s it.

    As for the 2nd matter of drawing just at the current day, this snip

    does not work here at all, because all those Date,Today,Yesterday,OpenDate return a “wrong format” (due to https://www.prorealcode.com/documentation/category/dateandtime/ those should: Report …. in YYYYMMDD format, but actually they simply return 20,2M which is unusable). My solution would be to compare the day part of a date (DD). But at the moment a day change at my PRT takes place around 17:45 and 18:15 – really don’t know what the cause for that is, so for now I can’t test anything, sorry for that. I have to find out what the heck is the orign of such time differences.

     

     

     

     

     

     

Viewing 7 posts - 16 through 22 (of 22 total)

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