Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 16:39:53 +0000



Post From: Changes to Chart Settings > Chart Data > Dates to Exclude ignored

[2024-09-09 00:24:07]
Mark Lewis - Posts: 25
I'm using sc.AddDateToExclude() in my custom study. It successfully adds a date to Dates to Exclude but it is ignored. I have tried using sc.FlagToReloadChartData = 1 and opened Chart Settings > Chart Data > Dates to Exclude directly to apply settings. The only way the date is excluded from the data is if I make a change directly in settings. Perhaps the setting is cached causing the additions via ACSIL to be ignored?

Here is the code that successfully adds the date to the Chart Settings > Chart Data > Dates to Exclude. The code works, but the information is not used.


  if (sc.MenuEventID != 0)
  {
    if (sc.MenuEventID == r_ExcludeDateMenuID)
    {
      SCDateTime SelectedTPODateTime = sc.BaseDateTimeIn[sc.ActiveToolIndex];  

      sc.AddDateToExclude(ChartNumber, SelectedTPODateTime);

      sc.FlagToReloadChartData = 1;
    }

    if (sc.MenuEventID == r_ClearExcludedDatesMenuID)
    {
      sc.DatesToExcludeClear(ChartNumber);

      sc.FlagToReloadChartData = 1;
    }
  }


Thank you for looking into this!
Date Time Of Last Edit: 2024-09-09 00:26:46