Support Board
Date/Time: Mon, 25 Nov 2024 02:25:45 +0000
Post From: Point Variable Size with Border primary color issue
[2024-03-27 02:18:13] |
LudaTrades - Posts: 26 |
I've got some strange behavior with Point Variable Size with Border, no circles fill in except for circles located on the left visible bar. On OpenGL enabled I see outlines only with fills correct on left visible bar. On OpenGL disabled I see outlines with solid white fill and only correct fill on left visible bar. I made a simple test study to double check it wasn't anything in my code causing this. It seems to be a bug with the drawstyle, attached image for reference. SCSFExport scsf_BodyHighLow(SCStudyInterfaceRef sc)
{ SCInputRef Input_CircleSize = sc.Input[0]; SCSubgraphRef Subgraph_BodyHigh = sc.Subgraph[0]; SCSubgraphRef Subgraph_BodyLow = sc.Subgraph[1]; if (sc.SetDefaults) { sc.GraphName = "Candle Body High and Low"; sc.AutoLoop = 1; sc.GraphRegion = 0; Input_CircleSize.Name = "Circle Size"; Input_CircleSize.SetInt(10); Subgraph_BodyHigh.Name = "Body High"; Subgraph_BodyHigh.DrawStyle = DRAWSTYLE_POINT_VARIABLE_SIZE_WITH_BORDER; Subgraph_BodyHigh.PrimaryColor = RGB(0,255,0); Subgraph_BodyHigh.SecondaryColor = RGB(255,255,255); Subgraph_BodyLow.Name = "Body Low"; Subgraph_BodyLow.DrawStyle = DRAWSTYLE_POINT_VARIABLE_SIZE_WITH_BORDER; Subgraph_BodyLow.PrimaryColor = RGB(255,0,0); Subgraph_BodyLow.SecondaryColor = RGB(255,255,255); return; } float BodyHigh = sc.BaseDataIn[SC_LAST][sc.Index] >= sc.BaseDataIn[SC_OPEN][sc.Index] ? sc.BaseDataIn[SC_LAST][sc.Index] : sc.BaseDataIn[SC_OPEN][sc.Index]; float BodyLow = sc.BaseDataIn[SC_LAST][sc.Index] >= sc.BaseDataIn[SC_OPEN][sc.Index] ? sc.BaseDataIn[SC_OPEN][sc.Index] : sc.BaseDataIn[SC_LAST][sc.Index]; Subgraph_BodyHigh[sc.Index] = BodyHigh; Subgraph_BodyHigh.Arrays[0][sc.Index] = Input_CircleSize.GetInt(); Subgraph_BodyLow[sc.Index] = BodyLow; Subgraph_BodyLow.Arrays[0][sc.Index] = Input_CircleSize.GetInt(); } |
drawstyle_nofill.png / V - Attached On 2024-03-27 02:14:12 UTC - Size: 153.69 KB - 70 views |