Support Board
Date/Time: Mon, 20 Jan 2025 13:50:31 +0000
Post From: DrawingType 'DRAWING_CYCLE' how to?
[2018-06-10 01:28:19] |
Sierra Chart Engineering - Posts: 104368 |
It works properly for us when using Chart Region 1. Use this code as a test: SCSFExport scsf_UseToolExampleDrawingCycle(SCStudyInterfaceRef sc)
{ // Set configuration variables if (sc.SetDefaults) { sc.GraphName = "UseTool Example: Cycle"; sc.GraphRegion = 1; sc.FreeDLL = 0; sc.AutoLoop = 0; //No automatic looping return; } int& r_LineNumber = sc.GetPersistentInt(1); if (sc.IsFullRecalculation) { r_LineNumber = 0; } //Add or update cycle drawing. s_UseTool Tool; Tool.Clear(); Tool.ChartNumber = sc.ChartNumber; Tool.Region = 1; if (r_LineNumber != 0) Tool.LineNumber = r_LineNumber; Tool.DrawingType = DRAWING_CYCLE; Tool.BeginDateTime = sc.BaseDateTimeIn[sc.ArraySize - 100]; Tool.EndDateTime = sc.BaseDateTimeIn[sc.ArraySize - 90]; Tool.Color = RGB(255, 255, 0); Tool.LineWidth = 5; Tool.NumCycles = 5; Tool.AddMethod = UTAM_ADD_OR_ADJUST; if (sc.UseTool(Tool) > 0) r_LineNumber = Tool.LineNumber; } 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 |