Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 23:08:10 +0000



[Programming Help] - Unable to retrieve Volume At Price Threshold V2 lines ASCIL

View Count: 164

[2024-12-19 09:15:46]
Balazs - Posts: 13
Hi everybody,

I am stuck (perhaps a very simple solution, but I am new to this). I am trying to retrieve the lines drawn by the Volume at Price Threshold V2 study. take those lines and draw the one (anyone) on the chart, which is within 4 points from the bar (top of the bar in case of an upbar in my example).

Some lines are drawn correctly, others are not shown at all. This make me conclude that either I am accessing the struct with the stored lines from the VAP study incorrectly, or there lines from the study are stored at another location and I am pulling the incorrect lines.

See picture below for the results with the code as per below
My custom study is trying to access the data from study 4 (which is the VAP thresholdV2 study that creates the Green lines in the picture). All help is very much appreciated


if(sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED)
{

int LineIDForBar = 0;
int StartIndex = 0;
int LineIndex = 0;
float LineValue = 0;
int EndIndex = 0;

auto numLines = sc.GetNumLinesUntilFutureIntersection(1, Input_LineT.GetInt()) - 1;


for (int LineIndex = 0; LineIndex < numLines; ++LineIndex)
{
      sc.GetStudyLineUntilFutureIntersectionByIndex(sc.ChartNumber, Input_LineT.GetInt(), LineIndex, LineIDForBar, StartIndex, LineValue, EndIndex);

      if ( EndIndex == 0 && UpBar[sc.Index] == 1 && sc.High[sc.Index] < LineValue && LineValue - sc.High[sc.Index] < 4 && LineValue - sc.High[sc.Index] > 0 )

      {
      
      Subgraph_BreakOutDown[sc.Index] = LineValue;
      }
}
}


Date Time Of Last Edit: 2024-12-19 09:39:53
imageScreenshot 2024-12-19 100726.png / V - Attached On 2024-12-19 09:14:21 UTC - Size: 191.56 KB - 40 views
[2024-12-20 13:25:04]
Balazs - Posts: 13
Hi everone.

Still looking for somebody who can perhaps help me jump problem. Still not able to figure it out.

Thanks so much

(John from sierra charg engineering maybe?)

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account