Login Page - Create Account

Support Board


Date/Time: Thu, 13 Mar 2025 16:22:42 +0000



Post From: Compare times, so conditional is only triggered outside of certain time segment

[2022-05-25 14:19:27]
Tony - Posts: 553
Unless you need to process the bars one by one,


SCDateTime startTime(11, 30, 0, 0);

SCDateTime endTime(11, 45, 0, 0);


for (int BarCount {sc.Index}; BarCount>=sc.IndexOfFirstVisibleBar; BarCount--) {
if (sc.BaseDateTimeIn[sc.Index].GetTimeInSeconds() > startTime.GetTimeInSeconds()
&& sc.BaseDateTimeIn[sc.Index].GetTimeInSeconds() < endTime.GetTimeInSeconds())
{
SubGraph_Ref_Data.DataColor[sc.Index] = RGB(146,76,112);
}
else
{
SubGraph_Ref_Data.DataColor[sc.Index] = RGB(255,255,255);
}
}

Date Time Of Last Edit: 2022-05-25 14:22:47