Login Page - Create Account

Support Board


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



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

[2022-07-10 16:43:40]
SavantTrader - Posts: 110
Everything is set (I used a sample study as my template):

  // Set configuration variables
  if (sc.SetDefaults)
  {
    sc.MaintainVolumeAtPriceData = 1;

    sc.GraphName = "Bid/Ask Cluster Study (LDP)";
    sc.GraphRegion = 0;
    sc.ScaleRangeType = SCALE_AUTO;
    sc.AutoLoop = 1;

Here's a possible clue, from my debugging attempt. I used the "text display above/below bar" study to show my study's subgraph value(s). As with my problem description, they display zero (for all bars) when a chart is initially loaded, and then start displaying correct values as new bars form. It's as if the code is not iterating individual bar ticks unless it's a new bar forming.

I am hoping to understand (via docs + school of hard knocks) enough of ACSIL's idiosyncrasies to become proficient enough to code my own studies which cannot be coded using CBBOAC logic. This one is stumping me, and I feel it has something to do with the fact that I'm iterating an inner (VAP) structure... and perhaps doing something wrong in the process.
Date Time Of Last Edit: 2022-07-10 16:50:57