Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 02:24:49 +0000



Post From: ACSIL Restart cumulative measurement with each new session

[2024-09-24 04:04:59]
User729073 - Posts: 2
Hi all,

I'm wondering how to restart a measurement when a new session begins. I tried using `IsNewTradingDay` but that's only working for each new calendar day, not when my session and evening sessions change.


if (sc.IsNewTradingDay(sc.Index))
{
my_custom_cumulative_measurement = 0;
}