Support Board
Date/Time: Sun, 22 Dec 2024 09:23:12 +0000
drawing in fill space questions
View Count: 1167
[2015-04-02 15:27:52] |
onnb - Posts: 662 |
I have a line that draws from index 0 to ArraySize-1. I have text in the fill space at -3. When I scroll to chart to the left, the line appears over the text. In other words, when I scroll the chart to the left, the line appears in the fill space. Is this expected or am I missing something? Date Time Of Last Edit: 2015-04-02 15:29:13
|
[2015-04-02 17:59:17] |
Sierra Chart Engineering - Posts: 104368 |
This is not normal but we do not know precisely what you are doing so there must be something different then this basic explanation of what you are doing which is causing the described behavior.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2015-04-02 21:08:25] |
onnb - Posts: 662 |
Below is the smallest code I can do that reproduces it on my end. When add the study below, lock the fill space and scroll the chart to the left, the blue line covers the text that says "hi". SCSFExport scsf_strategy_alerts_test(SCStudyGraphRef sc)
{ int& line_number = sc.PersistVars->i1; int& text_number = sc.PersistVars->i2; if (sc.SetDefaults) { sc.GraphName = "test"; sc.StudyDescription = ""; sc.AutoLoop = 1; // true sc.GraphRegion = 0; sc.FreeDLL = 1; return; } if (sc.Index == 0) { // draw line s_UseTool tool; tool.ChartNumber = sc.ChartNumber; tool.DrawingType = DRAWING_LINE; tool.BeginValue = sc.BaseData[SC_LAST][sc.ArraySize - 1]; tool.EndValue = sc.BaseData[SC_LAST][sc.ArraySize - 1]; tool.BeginIndex = 0; tool.EndIndex = sc.ArraySize - 1; tool.Color = COLOR_BLUE; tool.LineWidth = 3; tool.LineStyle = LINESTYLE_SOLID; tool.AddMethod = UTAM_ADD_OR_ADJUST; sc.UseTool(tool); line_number = tool.LineNumber; // draw text tool.Clear(); tool.ChartNumber = sc.ChartNumber; tool.Region = 0; tool.DrawingType = DRAWING_TEXT; tool.Text = "hi"; tool.TextAlignment = DT_LEFT | DT_VCENTER; tool.AddMethod = UTAM_ADD_OR_ADJUST; tool.BeginDateTime = -2; tool.BeginValue = sc.BaseData[SC_LAST][sc.ArraySize - 1]; tool.FontSize = 12; tool.FontBold = 1; tool.FontFace = "Ariel"; tool.Color = COLOR_BLUE; tool.AddAsUserDrawnDrawing = 0; sc.UseTool(tool); text_number = tool.LineNumber; } // update if (sc.Index == sc.ArraySize - 2) { s_UseTool tool; tool.LineNumber = line_number; tool.EndIndex = sc.ArraySize - 1; tool.AddMethod = UTAM_ADD_OR_ADJUST; sc.UseTool(tool); } } Date Time Of Last Edit: 2015-04-02 21:08:50
|
[2015-04-02 23:29:27] |
Sierra Chart Engineering - Posts: 104368 |
OK we see that you are using a Chart Drawing and not a study sc.Subgraph to draw the line, so this is why you see what you do. This is just how it is.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2015-04-02 23:29:44
|
To post a message in this thread, you need to log in with your Sierra Chart account: