Differences in closing prices between Daily and last 5-minute candles

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #103485 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    I coded this strategy, but it seems there are differences on the charts, on AAPL the Daily chart reports CLOSE as a price, while last the 5-Minute bar of the day reports a different price, though it is the same instrument and day (the closing price should be the same for all candlesticks that close when the Daily candle closes).
    Any idea why?

    IF BarIndex = 0 THEN
    IeriO = open
    IeriH = high
    IeriL = low
    IeriC = close
    OggiO = open
    OggiH = high
    OggiL = low
    OggiC = close
    ENDIF
    IF (OpenTime = 000000) OR ((OpenTime >= 000000) AND (OpenTime[1] > OpenTime)) THEN
    IeriO = OggiO
    IeriH = OggiH
    IeriL = OggiL
    IeriC = OggiC
    OggiO = open
    OggiH = high
    OggiL = low
    ENDIF
    OggiC = close
    OggiH = max(OggiH,high)
    OggiL = min(OggiL,low)
    buy at -close limit
    GRAPHONPRICE IeriO coloured(0,0,0,255)   AS "O"
    GRAPHONPRICE IeriH coloured(0,255,0,255) AS "H"
    GRAPHONPRICE IeriL coloured(255,0,0,255) AS "L"
    GRAPHONPRICE IeriC coloured(0,0,0,255)   AS "C"
    graph IeriC
    graph OggiC
    y.jpg y.jpg
    #103499 quote
    VonasiVonasi
    Moderator
    Master

    Dear Robertogozzi,

    In order to allow us to analyze your platform, please send us a technical report by following these instructions:

    • As soon as you encounter the issue, go to the “Help” menu on the ProRealTime toolbar.
    • Please assure that the window concerned by this issue is open.
    • Click on “Help center”, then on “I have a technical problem”
    • Choose the category “Data”
    • Select the window concerned that you are referring to.
    • Give as many details as possible, explain the issue you are having in the text box
    • Click “Send report”

    This will send us a report containing technical information concerning your platform, which will allow our technical team to run a diagnostic analysis of the issue you have come across.

    Many thanks in advance,

    Vonasi from ProRealCode (sorry I couldn’t help myself  I just had to post it!) 🙂 🙂 🙂
    #103500 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    IG already replied and asked for a screenshot.

    #103585 quote
    VonasiVonasi
    Moderator
    Master

    IG already replied and asked for a screenshot.

    …don’t be in a rush to send it to them otherwise you might trip over the cat on the spiral stairs and break your arm?

    #103588 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You’re damn right!

    #103686 quote
    NicolasNicolas
    Keymaster
    Legend
    #103690 quote
    VonasiVonasi
    Moderator
    Master

    Inside Roberto’s home:

    Screenshot_4.png Screenshot_4.png
    #104002 quote
    DerekDerek
    Participant
    Veteran

    Hello Roberto,

    I have observed this on equity indices as well. As an example tradingview is posting at least two different closing prices for the SPX (S&P 500) right now. Yesterdays bars are in line by now.

    I think this is caused by after hour activity with the daily bar being updated faster than the intraday bar. Waiting helps and yes, I make no sensitive decisions right on the daily close.

    #104003 quote
    DerekDerek
    Participant
    Veteran
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

From idea to ProBuilder code in seconds.

Your coding copilot for ProRealTime™. Ask in plain English — get clean, ready-to-paste indicators, screeners and systems.

Available in 7 languages
Try ProRealAI

Differences in closing prices between Daily and last 5-minute candles


Platform Support: Charts, Data & Broker Setup

New Reply
Author
Summary

This topic contains 8 replies,
has 4 voices, and was last updated by DerekDerek
7 years, 2 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 07/25/2019
Status: Active
Attachments: 3 files
ProRealCode ProRealCode
Loading...