Login Page - Create Account

Support Board


Date/Time: Tue, 18 Mar 2025 16:49:22 +0000



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

[2015-08-31 03:51:13]
ertrader - Posts: 682
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