Wrong daily closing prices

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #116324 quote
    Razz
    Participant
    Master

    Hi
    Why does the day’s closing price differ from the closing price in the cursor information? I actually relied on the values to be the same?
    See example photo

    Thank you

    Dax-Schlusskurse.png Dax-Schlusskurse.png
    #116344 quote
    GraHal
    Participant
    Master

    I actually relied on the values to be the same?

    Has it changed recently or has the day’s closing price always been different from the closing price in the cursor information?

    #116354 quote
    Razz
    Participant
    Master

    I think that has always been so, is probably due to the time zone + 1:00, only the cursor information and that of the price lines fit, but there are no formulas for the original price line indicator. Maybe Nicolas knows the?

    Dax-Schlusskurse-3.jpg Dax-Schlusskurse-3.jpg
    #116371 quote
    GraHal
    Participant
    Master

    Are you comparing High, Low and Close on the Charts for the exact same point in time as High, Low and Close on the Indicator?

    • On Mondays the Indicator gives values for High, Low and Close for Friday.
    • On Tue to Fri  the Indicator gives values for High, Low and Close for the day before (so Close for Mon on Tue, Tue on Wed etc etc)
    • Your Chart shows High, Low and Close dated Friday 10 Jan 20 at 07:03

    Just a few thoughts; maybe @Nicolas can give us his wisdom?

    #116388 quote
    Razz
    Participant
    Master

    Hello Grahal Thank you for your efforts!
    I took a new picture there you can also see the cursor information from the previous day. DHigh / DClose / DLow definitely delivers wrong values related to the time zone. Then I only have the choice of time zone +0: 00 then the values are correct and the chart time display is wrong, or time zone +1: 00 then the values are wrong and the chart time display is correct.

    Only the code of the price lines can help.

    Dax-Schlusskurse-4.png Dax-Schlusskurse-4.png
    #116650 quote
    Sebast
    Moderator
    Average

    Hello,

    The functions DOpen, DHigh, DLow and DClose refer to the official open/high/low/close of the market and are based on the timezone of the market independently of the settings you chose for the charts in your platform.

    If you chose the timeframe Daily for your chart, you may use the functions Open, High, Low and Close instead, which are affected by the timezone settings of your platform.

    Best regards,

    Sébastien from ProRealTime.

    GraHal thanked this post
    #116719 quote
    Razz
    Participant
    Master

    Hello Sebast
    I need the correct values for 1 or 5 minute charts, as you can see in the last picture the price lines show the same value as the cursor information daily. So I just need the formula of the price lines correctly.

    #118003 quote
    Sebast
    Moderator
    Average

    Hello,

    I apologize for the late update.

    You can try the following code which should give you these values:

    if intradaybarindex=0 then
    //open2=open1
    high2=high1
    low2=low1
    close2=close1
    //open1=myopen
    high1=myhigh
    low1=mylow
    close1=close[1]
    endif
    
    //myopen=open[intradaybarindex+1]
    myhigh=highest[intradaybarindex+1](high)
    mylow=lowest[intradaybarindex+1](low)
    
    if dayofweek=1 then
    myh=high2
    myl=low2
    myc=close2
    elsif dayofweek >=2 and dayofweek < 6 then
    myh=high1
    myl=low1
    myc=close1
    endif
    
    return myh,myl,myc

    Best regards,

    Sébastien from ProRealTime

    GraHal and Razz thanked this post
    #118120 quote
    Razz
    Participant
    Master

    Hello Sebast Thank you for your help
    I changed the indicator a little because day 1 was not displayed correctly see picture on the right, on the left after the change. Now the time-based charts are displayed correctly. Unfortunately there is still a discrepancy in tick charts.

    Nevertheless many thanks

    Fehler-Werte.png Fehler-Werte.png
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Wrong daily closing prices


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
Razz @razz Participant
Summary

This topic contains 8 replies,
has 3 voices, and was last updated by Razz
6 years ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 01/09/2020
Status: Active
Attachments: 4 files
Logo Logo
Loading...