int IntervalValue = BarsPeriod.Value; double IntervalValueDouble = Convert.ToDouble(IntervalValue); DateTime CurrentBarDT = Bars.GetTime(CurrentBar); DateTime HalfwayBetweenBarsDT = CurrentBarDT.AddMinutes(-IntervalValueDouble/2); Draw.Dot(this, CurrentBar.ToString()+"Dot", false, HalfwayBetweenBarsDT, Low[0], Brushes.Yellow, true);
I've added the following code...
Print("CurrentBar = " + CurrentBar); Print("HalfwayBetweenBarsDT = " + HalfwayBetweenBarsDT);
Is there anyway to correct this problem?
Is there a better/easier way to draw a dot between two bars without using DateTime? Perhaps some pixel offset?
Comment