I need to check, for any bar in a chart, if the bar date matches with a list of dates. If yes I will draw a vertical line on that bar.
I'm trying building an array to store dates to be matched as variable, but I have some problems.
#region Variables private int[] myArray = new int [1]; #endregion
protected override void Initialize()
{
myArray[0] = 20130319;
myArray[1] = 20130424;
}
protected override void OnBarUpdate()
{
for (int i = 0; i < 2; i++)
{
if(ToDay(Time[0]) == myArray[i])
{
DrawVerticalLine("test1",0, Color.DarkRed, DashStyle.Dot, 3)
}
}
}
I know the use of array for EasyLanguage but I have some problem with c#.
Could someone put me on the right way?
Thanks.

Comment