just trying to make a strategy that can draw a dot when the current bars range is less then previous bars range, here is the code that i made
double todaysRange = High[0] - Low[0];
double yesterdaysRange = High[1] - Low[1];
if (todaysRange <= yesterdaysRange)
{
DrawDot("My dot" + CurrentBar, false, 0, Low[0] + -5 * TickSize,Color.Blue);
}
the dots are showing up on the charts but some are incorrect and many candlesticks that qualify to have a dot don't have one.
how do i fix this ? and please explain what i did wrong as im still new to C# and eager to learn
thank you in advance
Comment