But the fact remains that every so often I see this glitch. I've never seen it play out live. The 2-3 times I've seen it is where I've gone to another tab or something than come back and noticed it. I happened yesterday and I took screenshots and grabbed the output.
Please see screenshot. (Please ignore the green triangle, I omitted the code for that here). In essence, Bar 5405 is the trigger bar and here code runs that should draw a grey unicode triangle under the signal bar, in this case the signal bar is the prior bar, 5404.
The object is drawn with this code(onpricechange):
if ((Trigger == true)
&& (CurrentBars[0] == (Bar_Long_Trigger))) // Only runs when the current bar is the trigger bar.
{
Draw.Text(this, @“Grey_Triangle” + Counter, true, @Unicode_Arrow, BarsAgo_Long_Signal, Low_Long_Signal, -10, MyBrush, myFont, TextAlignment.Center, null, null, 100);
}
Time 17:25:02.1490000 CurrentBar 5405 Trigger = true Bar_Long_Signal = 5404 Bar_Long_Trigger = 5405 BarsAgo_Long_Signal = 1
Time 17:27:09.0750000 CurrentBar 5406 Long_Signal = true Bar_Long_Signal = 5404 Bar_Long_Trigger = 5405 BarsAgo_Long_Signal = 2
The fact I cannot repeat the bug on the same section of candlesticks with market replay and the same code tells me it's possible this is not at all related to my code? and just an unexplainable random rendering glitch? Is this possible?

Comment