As shown in the pic, the BarColor works consistently, but the Triangles are missing MOST of the time. There are no errors in the Log tab.
BTW, I do not wish to use BarColor for this. It is only to see that the code is working fine.
Please help.
double value = RSI(Close, Period, Smooth)[0]; // Use an if branch to set triangles if (value > 70) { DrawTriangleUp("tag1", true, 0, Low[0] - TickSize, UpTriangle); BarColor = UpTriangle; CandleOutlineColor = Color.Black; } else if (value < 30) { DrawTriangleDown("tag2", true, 0, High[0] + TickSize, DownTriangle); BarColor = DownTriangle; CandleOutlineColor = Color.Black; }
Comment