How can I use the selected cross traded instrument via the java api ?
eg. trade MES instead of ES in a strategy via the java API when "Cross trade" is enabled on the chart.
When I create a trade via the java api, it will use the main instrument, not the cross traded instrument. The example TradeManager also trades the main instrument and ignores the cross traded instrument.
If it is not possible, how can i programmatically add an extra instrument without using the settings dialog. I like to add an instrument MES, MNQ when the main isntrument is ES, NQ wihtout needing to select it in the settings menu. In Ninjatrader l can add instruments via the csharp api as i like, i can not find it in Motivewave.
thanks,
eg. trade MES instead of ES in a strategy via the java API when "Cross trade" is enabled on the chart.
When I create a trade via the java api, it will use the main instrument, not the cross traded instrument. The example TradeManager also trades the main instrument and ignores the cross traded instrument.
If it is not possible, how can i programmatically add an extra instrument without using the settings dialog. I like to add an instrument MES, MNQ when the main isntrument is ES, NQ wihtout needing to select it in the settings menu. In Ninjatrader l can add instruments via the csharp api as i like, i can not find it in Motivewave.
thanks,