Login Page - Create Account

Support Board


Date/Time: Sat, 15 Mar 2025 07:04:48 +0000



Post From: ACSIL Study - Paint on Initial Chart Load/Refresh

[2022-07-10 15:22:07]
SavantTrader - Posts: 110
Thank you for lending a hand. sc.AutoLoop is set to 1 here:

  // Set configuration variables
  if (sc.SetDefaults)
  {
    sc.AutoLoop = 1;
   // ... other settings...
  }

...and Count is being initialized prior to the for loop shown earlier:

  const s_VolumeAtPriceV2 *p_VolumeAtPrice;
  s_VolumeAtPriceV2 *p_VolumeAtPriceAtIndex;
  int Count = sc.VolumeAtPriceForBars-> GetSizeAtBarIndex(sc.Index);

Everything works if I let bars form real-time, but not if I pull up a new chart or cause any type of refresh (such as add a study).

Any further clues? I'm sure (as a newbie to ACSIL) it's something I overlooked, perhaps involving how to iterate VAP on refresh?

It acts as if the bar's tick-by-tick innards are not being iterated during refresh, but they are when it's a new bar forming.
Date Time Of Last Edit: 2022-07-10 15:26:14