Support Board
Date/Time: Mon, 25 Nov 2024 03:54:23 +0000
Post From: drawing a marker, issues with repeated drawing
[2024-03-08 08:37:33] |
User138457 - Posts: 38 |
I almost solved my problem, thanks. One issue remains though: I'm using if(condition) { s_UseTool Tool; Tool.Clear(); // Reset tool structure. Good practice but unnecessary in this case. Tool.ChartNumber = sc.ChartNumber; Tool.DrawingType = DRAWING_MARKER; Tool.LineNumber = ToolID1 +1; ToolID1 ++; Tool.BeginDateTime = sc.BaseDateTimeIn[sc.Index]; Tool.BeginValue = sc.Low[sc.Index]-Shiftmarker; Tool.Color = RGB(0,128,0); Tool.AddMethod = UTAM_ADD_ALWAYS; Tool.MarkerType = MARKER_X; //MARKER_TRIANGLEUP; Tool.MarkerSize = 4; Tool.LineWidth = 5; sc.UseTool(Tool); } of the candle. If I were to use UTAM_ADD_ONLY_IF_NEW I would keep only the FIRST drawing. I need to keep only the last. How do I achive this? If I use UTAM_ADD_OR_ADJUST I retain the "correct" drawing for the current candle but loose all drawing of previous candles, which defies the purpose. Essentially I would like the drawing to behave like a "color bar based on alert condition" Any way to delete the previous drawing or "replace" the drawing during candle formation? Date Time Of Last Edit: 2024-03-08 08:55:51
|