Support Board
Date/Time: Sat, 11 Jan 2025 17:06:42 +0000
Post From: Bug with DRAWING_TRIANGLE ?
[2015-09-24 19:58:19] |
zencoder - Posts: 10 |
Hi I decided to plot simple triangle. Wrote simple code: s_UseTool t; t.Clear(); t.AddAsUserDrawnDrawing = 1; t.LineNumber = 100000; t.UseRelativeVerticalValues = 0; t.AddMethod = UTAM_ADD_OR_ADJUST; t.DrawingType = DRAWING_TRIANGLE; t.Color = RGB(255,0,0); t.SecondaryColor = RGB(255, 0, 0); t.TransparencyLevel = 30; t.DrawUnderneathMainGraph = 0; int b = sc.ArraySize - 10; int bs = b; float ps = sc.Low[b]; b -= 10; int be = b; float pe = sc.Low[b]; b -= 10; int b3 = b; float p3 = sc.Low[b]; t.BeginIndex = (bs); t.BeginValue = (float)(ps); t.EndIndex = (be); t.EndValue = (float)(pe); t.ThirdIndex = (b3); t.ThirdValue = (float)(p3); sc.UseTool(t); return; Triangle's third corner appears somewhere outside chart (both bar and price values = zero). What is it? I wrote something wrong or it is a bug with DRAWING_TRIANGLE display? SC version 1296 NoCLR Date Time Of Last Edit: 2015-09-24 20:06:08
|
BadTriangle.jpg / V - Attached On 2015-09-24 19:53:02 UTC - Size: 46.52 KB - 356 views |