Support Board
Date/Time: Fri, 31 Jan 2025 21:55:56 +0000
Post From: DRAWING LINE is no longer working
[2019-05-25 23:58:37] |
WarriorTrader - Posts: 245 |
Hello, After upgrading to 1919 the DRAWING_LINE is no longer working. I was able to use DRAWING_HORIZONTAL_LINE_NON_EXTENDED as a replacement for some drawings but I use the Line tool to draw vertical lines also. I did not see a "NON_EXTENDED" version for vertical lines. I also use the Line tool for lines that are not horizontal or vertical. In the code below you can switch drawing types to see that the DRAWING_LINE tool is not working. All variables have been commented out and replaced with fixed values for simplicity. Thanks, WT //Zero line for tick chart
TickPrice.Clear(); TickPrice.ChartNumber = RemoteChartNum; TickPrice.AddAsUserDrawnDrawing = 0; TickPrice.Region = 0; TickPrice.DrawingType = DRAWING_LINE; //DRAWING_HORIZONTAL_LINE_NON_EXTENDED; //DRAWING_LINE; //TickPrice.MarkerType = MARKER_TRIANGLELEFT; //TickPrice.MarkerSize = 5; TickPrice.LineWidth = 3; //TickPrice.MarkerSize = 8; TickPrice.LineStyle = LINESTYLE_SOLID; TickPrice.LineNumber = 34313355l; // + ChartNumID; TickPrice.AddMethod = UTAM_ADD_OR_ADJUST; TickPrice.UseRelativeVerticalValues = 1; TickPrice.BeginDateTime = 50; //BarLocation + 2; //TickPrice.BeginIndex = sc.Index+1; TickPrice.BeginValue = 50; //ValueLocation + TickDisplay + Overlap; TickPrice.EndDateTime =55; // BarLocation + 5; //TickPrice.BeginIndex = sc.Index+1; TickPrice.EndValue = 50; //ValueLocation + TickDisplay + Overlap; // will include negative numbers TickPrice.Color = RGB(255, 255, 255); /*if (sc.BaseData[SC_LAST][sc.Index] > ValueHighPrice) { TickPrice.Color = RGB(0, 255, 0); //TickPrice.MarkerSize = 8; TickPrice.LineWidth = 5; } else if (sc.BaseData[SC_LAST][sc.Index] < ValueLow) { TickPrice.Color = RGB(255, 0, 0); //TickPrice.MarkerSize = 8; TickPrice.LineWidth = 5; } else if ((WickResetNum == 2) && (sc.BaseData[SC_LAST][sc.Index] >= 2)) //light blue TickPrice.Color = RGB(86, 97, 235); else if ((WickResetNum == 2) && (sc.BaseData[SC_LAST][sc.Index] <= -2)) //light red TickPrice.Color = RGB(223, 100, 100); else TickPrice.Color = RGB(128, 128, 128); */ sc.UseTool(TickPrice); Date Time Of Last Edit: 2019-05-26 00:00:18
|