Dclose, Dhigh – time difference
Forums › ProRealTime English forum › ProOrder support › Dclose, Dhigh – time difference
- This topic has 18 replies, 6 voices, and was last updated 1 month ago by
phoentzs.
-
-
09/25/2025 at 4:42 PM #251814
For years, the commands “Dhigh, Dclose, etc.” ALWAYS ended at 1:00 AM. Recently, the day has been ending at 6:00 AM. Regardless of the timeframe, I’ve also tried MTF. Many people use these commands in their strategies. They work with them. Logically, the strategies are also designed for these end times. How can I avoid this error, or can I reverse it?
09/25/2025 at 5:18 PM #25182009/26/2025 at 9:27 AM #251840You can always create your own DClose:
1234567891011121314151617181920212223242526272829once todayOpen=openonce todayHigh=highonce todayLow=lowonce todayClose=closeonce Dailyclose=todayCloseonce DailyOpen=todayopenonce DailyHigh=todayHighonce DailyLow=todayLowcheckTime=010000if opentime>=checktime and opentime[1]<checktime thenDailyclose=todayCloseDailyOpen=todayopenDailyHigh=todayHighDailyLow=todayLowtodayOpen=opentodayHigh=hightodayLow=lowtodayClose=closeelsetodayHigh=max(high,todayHigh)todayLow=min(low,todayLow)todayClose=closeendifreturn dailyClose as "Dclose", dailyHigh as "DHigh", dailyLow as "Dlow", dailyOpen as "Dopen"09/26/2025 at 12:06 PM #25185009/26/2025 at 1:29 PM #251852Yes, your code is fine, but only if you are on an hourly timeframe and there are always 24 bars in a day.
If there’s a holiday or shorter trading session with fewer bars, then it will give you a problem.1 user thanked author for this post.
09/29/2025 at 11:42 AM #25193009/30/2025 at 4:14 PM #252029I want to draw attention to this issue again… the H4 candles end at the wrong time, on 2, 6, 10, etc., instead of 1, 5, 9, etc., and the trading day also ends at the wrong time. Is there a solution or someone working on this?
10/01/2025 at 8:47 AM #252041I think the reason is the wrong time zone. When I started the new DAX contract, the time zone initially was set to UTC+1:00 (London time). Set it to UTC+2:00 (Berlin time) and the H4 candles will start at 9, 13, 17 o’clock.
10/01/2025 at 10:00 AM #252051Thanks for the tip. On my platform, the box at the top is checked… my computer’s time zone, which is Berlin time. It was like that before, and I haven’t changed anything. Can you test the SP500 and NASDAQ on your platform?
10/01/2025 at 10:07 AM #25205210/01/2025 at 10:16 AM #252054For American markets, it is always better to use the local time zone there (US Eastern time), because then you avoid the time shift between summer and winter time between US and Europe during 4 weeks of the year. I once suggested this to PRT and then they introduced this button “use different time zones for different markets”. This way, you always get the correct New York time in US charts. Markets then open always at 9:30 and close at 16:00.
10/01/2025 at 10:50 AM #252059Can you help me with this :
I understand the time shift in daylight savings. Until now I cover for that in the autotrading code. Clumsy but not a big deal.
Now let’s assume that from now on we work with the New York time. What would I see in my charts ? Would that be 05:45 instead of 11:45 which latter is the AMST time at this moment ? And thus I would build in checks in the program code that don’t trade around US opening hence 15:30 our time (14:30 with the daylight savings time shifted), which now is going to be 09:30 always ?If that answer is Yes Indeed, then the least (and immediately worst) what will happen is that no program code will be compatible between IG and IB.
?
Edit : when this is clear to me, I think I can tell what happened for changes … (after talking about it extensively with PRT).
10/01/2025 at 11:28 AM #252060Yes, 11:45 Amsterdam time is then 5:45 New York time. Except for the 4 weeks when US has summer time and Europe winter time, or vice versa.
But NASDAQ or S&P then open always at 9:30 when you use US Eastern as time zone for US markets, irrespective of summer or winter time.
10/01/2025 at 12:14 PM #252067then the least (and immediately worst) what will happen is that no program code will be compatible between IG and IB
Why ? When you trade American futures at IB, they should trade at the American exchanges using US Eastern Time as time zone, and European futures trade at EUREX, using Frankfurt time as time zone ?
Same for US index CFDs or European index CFDs at IG.
10/01/2025 at 12:22 PM #252068 -
AuthorPosts
