I can plot my lines accessing bars or time, both for current day. But I could not find how I can plot the day before and 2 days ago.
What do I have to change in the code please for having this line plotted on the chart not today but yesterday and the day before please:
Today (works ok): Draw.Line(this, "pivot0", false, new DateTime(Time[0].Year, Time[0].Month, Time[0].Day, 9, 00, 0), pivot0, new DateTime(Time[0].Year, Time[0].Month, Time[0].Day, 22, 00, 0), pivot0, Brushes.Green, DashStyleHelper.Solid, 2);
Yesterday: Draw.Line(this, "pivot1", false, ???, pivot1, ???, pivot1, Brushes.Green, DashStyleHelper.Solid, 2);
2 days ago: Draw.Line(this, "pivot2", false, ???, pivot2, ???, pivot2, Brushes.Blue, DashStyleHelper.Solid, 2);
Thank you!
Tony
Comment