High/Low/Close previous day with time

Forums ProRealTime English forum ProBuilder support High/Low/Close previous day with time

Viewing 15 posts - 16 through 30 (of 34 total)
  • #180358

    Still having trouble with this unfortunately, Roberto. The code pinpoints the previous day’s High, Low and Close just fine, but not the Open. I have compared both versions of the code with

    in lines 18-20 as per your original and also

    but neither seems to work, as you can see from the screenshot (Germany 40 – today and yesterday). The code pegs the previous day’s Open at 15,546.3, but you can clearly see from the big red candle at 0800 yesterday it was more like 15,579. Is there an easier way to do this with arrays? Just thinking out loud…

    Thanks again for your help on this.

    #180461

    It’s due to IG having set the closing of the Daily candle at 00:00 (Utc +1 +DST). Currently it’s at 01:00.

    At 00:00 the date and time is updated on the platform, but the broker reports the previous day till day change at 01:00.

    Replace

    by

     

    1 user thanked author for this post.
    #180482

    Thanks for this, Roberto, but it’s made no difference on my end… It seems to be taking the Open of the first bar at 0000 (midnight) rather than at 0800…

    #180494

    Use this line:

    #180524

    Still no joy…

    #180531

    Please post the code you are using and your conditions, as they may be quite different from the original code.

    #180533

    Sure, I have doubled up on the code to give me the OHLC levels for two different sessions simultaneously:

     

    #180538
    smp

    Hi guys,

    Will you be so kind to make an indicator that shows:

    high (blue) / low (blue) / close (yellow) of the previous day

    with Monday showing the previous Friday

    with time setting (for example from 09.00 – 17.35 hours)

    for use in intraday charts

    Thank you in advance!

    SMP – Would this be of use.  I am waiting for this to be uploaded into the library.  It’s an EOD (End of day) Cash Market Pivots Indicator!

    #180541

    I changed the colouring so that at the beginning od the evening session, the prior session is no longer visible (is this what you wanted?).

    As to time change, I can’t spot any glitch:

    #180547

    Thanks, Roberto. I hadn’t thought of that design element, but that’s actually very helpful. There are only two outstanding issues as far as I can see:

    1. The indicator now does not show the Previous day Close @ 1635 as per the attached screenshot.
    2. It appears that, in order for the code to use the correct bars for the end of the session, you have to use the time of the bar close one before the desired session end time (so in this case 163000 instead of 163500 and 205500 instead of 210000), which means the thicker lines stop one bar (in this case – on a 5-min timeframe – 5 mins) early. Any way of remedying this?

    Thanks again,

    JM

    #180562

    My bad…I wrote 7 instead of t in line 77.

    PrevC1 coloured(0,0,0,7)  should read PrevC1 coloured(0,0,0,t).

    1 user thanked author for this post.
    #204310

    Hello

     

    Thanks for this code.

    I understand how to adjust so it shows the high and low from all the day (midnight to midnight).

    But what I would like some help with is this: I would like the script to print the high and low from the previous day according to a specific timezone (NY-timezone, which my PRT are set to). Now I think it takes the high and low from the daily candle.

    Thanks for any help!

    #204319
    smp

    If you want to track and display end-of-day (EOD) pivots on cash markets, you CAN NOT do this using coding and measuring last-day high/low etc.  You cannot do this automatically because the real close is determined in the “settling period”, which, depending on the cash market you are trading, is between 5 minutes and 12 minutes.  During this period, a price is determined and set in this period.

    These are the accurate pivots and are used by institutions and professional traders.  Take it from a pro-trader; you are wasting time trying to automate using chart data.  Also, depending on the broker (Take IG as an example), they have a 24-hour market and “make” the market so a user can trade “out of hours”, so their candles at the close are not accurate.

    I have shared an EOD pivot indicator, which is correct and works on all cash markets.

    You are wasting your time automating pivots that are not correct.

    I hope this helps.

    Steve

    #204330

    Thanks for yout reply.

    I dont want to track eod data on cash markets. I am trading fx and want to track high and low of previos day (which I define as NY midnight to midnight). I see now the original question was in regards to cash markets, hence the confusion I think.

    #204561

    Is this what you want?

     

    1 user thanked author for this post.
Viewing 15 posts - 16 through 30 (of 34 total)

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