Support Board
Date/Time: Sun, 19 Jan 2025 23:13:14 +0000
Post From: Using Tools From an Advanced Custom Study specificaly DRAWING_CYCLE
[2018-05-05 14:48:12] |
b3cker - Posts: 34 |
Hello, Need help with DrawingType DRAWING_CYCLE. Could not find any examples. Following does works with type DRAWING_TEXT but not with DRAWING_CYCLE. Object CycleTool type of DRAWING_CYCLE not displayed in the study 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); |