Login Page - Create Account

Support Board


Date/Time: Tue, 01 Jul 2025 02:28:49 +0000



Post From: Time of Current bar High or Low in ACSIL

[2015-08-31 03:51:13]
ertrader - Posts: 684
Hi Support,
A couple questions:
1) What is the correct code to get time in seconds from midnight of the current index high and low?

The following gets time of current bar as usual correctly but does not get the time of High or Low of the current bar:
SCDateTime DateTime;
DateTime = sc.BaseDateTimeIn[sc.Index].GetTime();

I tried the following but get incorrect results:
SCDateTime DateTimeHigh, DateTimeLow;
DateTimeHigh = sc.BaseDateTimeIn[sc.High[sc.Index]].GetTime();
DateTimeLow = sc.BaseDateTimeIn[sc.Low[sc.Index]].GetTime();

2) What is the correct code to obtain millisecond values for High and Low values of the current index?

Is the following correct?
SCDateTimeMS DateTimeMSHigh , DateTimeMSLow;
DateTimeMSHigh = sc.BaseDateTimeIn[sc.High[sc.Index]].GetMilliSecond();
DateTimeMSLow = sc.BaseDateTimeIn[sc.Low[sc.Index]].GetMilliSecond();

Thank you