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-09 16:35:02]
SavantTrader - Posts: 110
I have an ACSIL study which I wrote. It uses the standard loop to extract tick VAP:

  for (int ElementIndex = 0; ElementIndex < Count; ElementIndex ++){

    sc.VolumeAtPriceForBars->GetVAPElementAtIndex(sc.Index, ElementIndex, &p_VolumeAtPriceAtIndex);

    if (p_VolumeAtPriceAtIndex) {

// processing and subgraph update inside here

    }//endif
  }//endfor

It updates and displays subgraph symbology just fine, but only on bars as they are forming. It does not paint when the chart is initially loaded or refreshed (such as when a study is added).

If that's not clear, I'll say it a different way: The study only paints its business on new bars that are forming, and fails to process (older existing) bars upon initial load of the chart.

I'm relatively new to ACSIL programming. Can someone please clue me in as to what I need to be doing to get this to paint on initial chart load/refresh, and not just on new bars that are forming?

Thank you.
Date Time Of Last Edit: 2022-07-10 02:02:55