protected override void OnMarketData(MarketDataEventArgs e) { if(State==State.Historical|| CurrentBar <= 2)return; TriggerCustomEvent(o =>Draw.Line(this,"line", false, 5,Close[0], 1, Close[0], Brushes.LimeGreen, DashStyleHelper.Dot, 4),null); }
ERROR: Failed to call OnRender() for chart object 'Line': 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Is this a bug? Or maybe I can't draw lines in Strategy?
Comment