I built a strategy which uses only the generic chart dataseries, (no additional dataseries), and doesn't use any external resources, such as indicator or so. Just the Strategy code. The only thing the strategy draws is changing the background color, when order is submitted using
BackBrushes[0] = entryStroke.Brush;
No other Drawing or Rendering.
I am using EnterLongMIT/EnterShortMIT and stop and target are set using Set StopLoss and SetProfitTarget
SetStopLoss(name, CalculationMode.Price, stopPrice, false); SetProfitTarget(name, CalculationMode.Price, targetPrice,TargetisMIT); owner.EnterLongMIT(qty, enterPrice, name);
I am using the strategy in the chart with the Chart trader, and as you can see the trade markets move to the wrong position (wrong bar).
Looking further into it, the trade markers are not scrolling with the chat, as the bars are created.
Any idea?

Comment