Support Board
Date/Time: Mon, 20 Jan 2025 13:48:06 +0000
Post From: DrawingType 'DRAWING_CYCLE' how to?
[2018-05-05 14:35:30] |
b3cker - Posts: 34 |
Hello, I was not able to find any example on how to use DrawingType 'DRAWING_CYCLE' in custom study. For example following will display text in the study window, but when I tried to use DRAWING_CYCLE instead of DRAWING_TEXT I am not getting cycle displayed. Can you help? s_UseTool CycleTool; CycleTool.Clear(); CycleTool.ChartNumber = sc.ChartNumber; CycleTool.DrawingType = DRAWING_CYCLE; int CycleNumber = sc.GetPersistentInt(1); if (CycleNumber != 0) CycleTool.LineNumber = CycleNumber; CycleTool.Region = sc.GraphRegion; CycleTool.ExtendRight; CycleTool.UseToolConfigNum; CycleTool.BeginDateTime = sc.BaseDateTimeIn[sc.ArraySize - 100]; CycleTool.Color = RGB(255, 255, 0); CycleTool.AddMethod = UTAM_ADD_OR_ADJUST; CycleTool.ReverseTextColor = 0; sc.UseTool(CycleTool); |