I was able to create a custom drawing tool that works perfectly fine.
But I wasn't able to find a way (even after reading/searching the forums here) to update dynamically the order quantity in ChartTrader based on the drawing tool calculations.
I don't wan't to send an order and then to update it and I don't want to create a custom strategy.
I just want to prepare the quantity without executing any order.
I guess it should be something that is very simple, but I'm missing something out.
I'm able to get the quantity via:
ChartControl.OwnerChart.ChartTrader.Quantity
chartControl.Dispatcher.InvokeAsync(((Action) => { NinjaTrader.Gui.Tools.QuantityUpDown quantitySelector = System.Windows.Window.GetWindow(chartControl.Parent).FindFirst("ChartTraderControlQuantitySelector") as NinjaTrader.Gui.Tools.QuantityUpDown; quantitySelector.Value = quantityAmount; }));
Comment