Wrong daily closing prices
Forums › ProRealTime English forum › ProRealTime platform support › Wrong daily closing prices
- This topic has 8 replies, 3 voices, and was last updated 4 years ago by Razz.
-
-
01/09/2020 at 5:55 PM #11632401/09/2020 at 10:27 PM #116344
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?
01/10/2020 at 7:09 AM #11635401/10/2020 at 10:26 AM #116371Are 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?
01/10/2020 at 12:25 PM #116388Hello 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.
01/13/2020 at 2:27 PM #116650Hello,
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.
1 user thanked author for this post.
01/14/2020 at 6:34 AM #11671901/27/2020 at 11:13 AM #118003Hello,
I apologize for the late update.
You can try the following code which should give you these values:
1234567891011121314151617181920212223242526if intradaybarindex=0 then//open2=open1high2=high1low2=low1close2=close1//open1=myopenhigh1=myhighlow1=mylowclose1=close[1]endif//myopen=open[intradaybarindex+1]myhigh=highest[intradaybarindex+1](high)mylow=lowest[intradaybarindex+1](low)if dayofweek=1 thenmyh=high2myl=low2myc=close2elsif dayofweek >=2 and dayofweek < 6 thenmyh=high1myl=low1myc=close1endifreturn myh,myl,mycBest regards,
Sébastien from ProRealTime
01/28/2020 at 11:46 AM #118120Hello 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
-
AuthorPosts
Find exclusive trading pro-tools on