Support Board
Date/Time: Tue, 06 May 2025 17:01:55 +0000
Post From: Unable to retrieve Volume At Price Threshold V2 lines ASCIL
[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
|
![]() |