Support Board
Date/Time: Tue, 21 Jan 2025 04:06:32 +0000
Post From: sc.AddLineUntilFutureIntersection problem
[2018-07-19 15:31:47] |
MD236 - Posts: 28 |
Hi, for an advanced study I need to draw 1 or 2 lines until further intersection within manual looping in an numbers bar chart. Sometimes I need to draw a line on the top and the bottom of an chart, each one as single works but if I try to draw both, then only the last function call draws a line. I attached an chart showing the problem, only the upper line is drawn. I isolated the code and the goal is to draw both lines, what's wrong in my code? Thanks Mario SCSFExport scsf_MD_Test(SCStudyInterfaceRef sc)
{ if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "MD_Test"; sc.GraphRegion = 0; sc.AutoLoop = 1; sc.FreeDLL = true; } int &LongIndex = sc.GetPersistentInt(0); int &ShortIndex = sc.GetPersistentInt(1); sc.AddLineUntilFutureIntersection (sc.Index , LongIndex++ , sc.Low[sc.Index] , RGB(252, 247, 129) , 2 , LINESTYLE_DOT , false , false , "" ); sc.AddLineUntilFutureIntersection (sc.Index , ShortIndex++ , sc.High[sc.Index] , RGB(0, 128, 128) , 2 , LINESTYLE_DOT , false , false , "" ); } |