I created a simple indicator using the DrawDiamond(), but the diamonds do not appear on all occurrences and then disappear when the chart is scrolled. Here is my code.
currenthigh = MRO(delegate {return High[0] == CurrentDayOHL().CurrentHigh[0];}, 1, 5);
if (currenthigh > -1
&& RValueCharts(Color.Blue, 3, 3).VClose[0] <= -4
)
{
DrawDiamond("DailyHighReversal",true,0,Low[0]-TickSize-1,Color.DarkMagenta);
}
currentlow = MRO(delegate {return Low[0] == CurrentDayOHL().CurrentLow[0];}, 1, 5);
if (currentlow > -1
&& RValueCharts(Color.Blue, 3, 3).VClose[0] >= 4
)
{ DrawDiamond("DailyLowReversal",true,0,High[0]+TickSize+1,Color.BlueViolet);
}
Any idea as to why the diamonds would disappear? Thanks
Comment