Support Board
Date/Time: Tue, 25 Aug 2026 08:43:00 +0000
Post From: Extend Closes Until Future Intersection and Line Until Future Intersection ACSIL Function
| [2026-07-14 19:45:04] |
| kachowdary11 - Posts: 12 |
|
Thanks John, that's helpful. Based on your response I've made the following change and confirmed behavior on my end: Value / Name labels — I've verified and now set these explicitly on every n_ACSIL::s_LineUntilFutureIntersection I draw: LineStruct.DrawValueLabel = 0; // value label OFF LineStruct.DrawNameLabel = 1; // name label ON LineStruct.NameLabel.Format("%s", OriginLabel.c_str()); So only the name label is drawn. (DrawValueLabel was already 0 by struct default, so this only made it explicit.) Remaining issue — name label position for always-extending lines For lines drawn with: LineStruct.EndBarIndex = 0; LineStruct.AlwaysExtendToEndOfChart = 1; // active/extending line the name label renders on/over the right-side value (price) scale, rather than in the right-side free space of the chart. For lines stopped at a specific EndBarIndex (AlwaysExtendToEndOfChart = 0), the name label renders correctly at that bar in chart space. Looking at the s_LineUntilFutureIntersection struct, I don't see any member controlling the label's position, alignment, or anchor — only DrawNameLabel (on/off) and NameLabel (the text). The label appears to auto-anchor to the line's right terminus, which for an always-extending line falls at the far-right edge over the value scale. Questions: Would it be possible to add label position/alignment control (or an option to anchor the name label to the last bar rather than the extended terminus) in a future release? Can you confirm there is no per-line z-order member on s_LineUntilFutureIntersection (I understand z-order is controlled study-wide via DrawStudyUnderneathMainPriceGraph)? If there's no supported way to reposition the label today, please let me know what you'd need from my end (sample chartbook, study DLL, screenshots, exact chart settings, etc.) and I'll provide it. Thanks again for your help. |
