Support Board
Date/Time: Mon, 06 Jan 2025 09:24:31 +0000
Post From: ACSIL: ISSUES POSSIBLE BUGS AND SUGGESTIONS
[2014-10-03 00:05:28] |
Sierra Chart Engineering - Posts: 104368 |
Here is the code example we promised: SCSFExport scsf_MarkerToolExample(SCStudyInterfaceRef sc) { // Set configuration variables if (sc.SetDefaults) { sc.GraphName = "Marker Tool Example"; sc.StudyDescription = ""; sc.GraphRegion = 0; sc.FreeDLL = 0; sc.AutoLoop = 0; //No automatically looping return; } // Do data processing for (int BarIndex = sc.UpdateStartIndex; BarIndex < sc.ArraySize - 1; BarIndex++) { if(BarIndex % 5) continue; s_UseTool Tool; Tool.ChartNumber = sc.ChartNumber; //Tool.LineNumber will be automatically set. No need to set this. Tool.DrawingType = DRAWING_MARKER; Tool.BeginIndex = BarIndex; if(BarIndex % 10 == 0) { Tool.MarkerType = MARKER_ARROWUP; Tool.BeginValue = sc.Low[BarIndex]; } else { Tool.MarkerType = MARKER_ARROWDOWN; Tool.BeginValue = sc.High[BarIndex]; } Tool.Region = 0; Tool.Color = RGB(255, 255, 0); Tool.MarkerSize = 8; Tool.LineWidth = 5; Tool.AddMethod = UTAM_ADD_ALWAYS; sc.UseTool(Tool); // Here we make the function call to add the marker } } 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 |