Login Page - Create Account

Support Board


Date/Time: Wed, 05 Feb 2025 06:37:55 +0000



ASCIL Hide Main Line Keep All Others

View Count: 730

[2020-02-21 16:10:32]
User439067 - Posts: 48
trend_lines.ChartNumber = sc.ChartNumber;
  trend_lines.DrawingType = DRAWING_FAN_FIBONACCI;
  trend_lines.EndDateTime = sc.BaseDateTimeIn[sc.Index];
  trend_lines.ShowLabelsAtEnd = 0;
  trend_lines.ShowAngle = 1;
  trend_lines.Color = COLOR_BLUE;
  
  trend_lines.RetracementLevels[0] = -100.0f;
  trend_lines.LevelColor[0] = COLOR_DIMGRAY;
  trend_lines.LevelStyle[0] = LINESTYLE_DOT;
  trend_lines.LevelWidth[0] = 1;

My example is above. I want to hide the 'main' line (BLUE) but keep all the retracement lines. How can I do this?
[2020-03-04 19:16:34]
User439067 - Posts: 48
Anybody have an answer? I have a mostly useless line in my study that I want to hide but I can't figure out how. The line specifically between the two points of the DRAWING_FAN_FIBONACCI that I want to hide. I just want to see the retracement levels.
[2020-03-04 19:39:42]
Sierra Chart Engineering - Posts: 104368
Refer to the last sentence in this section:
Using Drawing Tools From an Advanced Custom Study: s_UseTool::RetracementLevels[]
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
[2020-03-04 20:58:19]
User439067 - Posts: 48
Using a value of FLT_MAX at a particular index in the RetracementLevels[] array means that level will not be drawn.

For those interested. Here is the 'particular index' I used and it seemed to do the trick. /shrug

tool.BeginDateTime = sc.BaseDateTimeIn[FLT_MAX];
[2020-03-04 21:40:09]
User183724 - Posts: 191
can you set the line color as same as chart background color. black line on black screen would make it invisible but still have it there for reference by formulas
[2020-03-04 21:41:54]
User439067 - Posts: 48
I did try that but anytime it went through a candle it would show up. Thanks!

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

Login

Login Page - Create Account