I am trying to color a renko bar if it only existed less than 30 seconds, effectively trying to measure the speed of a particular move.
Here is currently what I was trying, however I'm unable to get any bar painting to occur. Thank you!
if(
Close[0] > Open[0]
&& Time[0].Subtract(Time[1]).TotalSeconds >= 30
)
{BarBrush = Brushes.Red;}
if(
Close[0] < Open[0]
&& Time[0].Subtract(Time[1]).TotalSeconds >= 30
)
{BarBrush = Brushes.Green;}

Comment