I am developing a strategy, I add some drawing tools to my strategy (Horizontal line) and it works perfectly. However, when I add a horizontal line while the strategy is running, it cannot be identified in the strategy. Does exist any form that the strategy can identify horizontal lines without restarting the strategy?
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { base.OnRender(chartControl, chartScale); foreach (DrawingTool draw in DrawObjects) { if (draw is DrawingTools.HorizontalLine) { DrawingTools.HorizontalLine line = (DrawingTools.HorizontalLine)DrawObjects[draw.Tag]; } } }
Regards.
Comment