Dclose, Dhigh – time difference
Forums › ProRealTime English forum › ProOrder support › Dclose, Dhigh – time difference
- This topic has 4 replies, 3 voices, and was last updated 18 hours ago by
Iván.
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
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.
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)