in my strategy I want to draw a line that marks the entry price. To do that I created a green Pen that has a wider dash pattern than what is available by default.
Unfortunately sometimes the line would not look as defined by the pen, but instead still have the original properties as used in the DrawLine() statement. So far I only noticed that error on charts that were created in realtime.
Code to draw the line and then assign the Pen:
EntryLineID = "ELP" + BarsInProgress.ToString() + "-" + CurrentBars[0].ToString(); EntryLineO = DrawLine(EntryLineID, true, Time[0], MyEntryPrice_G, Time[0].AddMinutes(1), MyEntryPrice_G, Color.Black, DashStyle.Solid, 1); EntryLineO.Pen = EntryPenP;
Thanks,
NutFlush



Comment