View Full Version : Multiple Trades on the Same Contract
dgregor5
01-03-2008, 07:05 AM
Hi
Quick question for clarification (using Amp Futures as my broker).
If I have an automated strategy runnning on the YM, are these trades kept separate to that those that I may trade manually on the SuperDOM, i.e. is it possible to have both running simultaneously without any cross interference, e.g. SuperDOM entry trade closing down an open automated strategy trade.......
is there anyway to protect for this in NinjaScript ???
thx
David
NinjaTrader_Ray
01-03-2008, 08:06 AM
You can trade them simulataneously
- I would put the DOM StrategySelectionMode property in "DisplaySelectedStrategy", when an ATM strategy is active, the DOM will show the position relative to the strategy and not your actual account position
- When you press the "Close" button on the DOM, it will close the ATM strategy. Otherwise, pressing the CLOSE button would close the account position and terminate your NinjaScript strategy.
Play around with it in the Sim101 account to get a feel for the behaviour.
dgregor5
01-03-2008, 10:17 AM
Got it ! - appreciate your great support Ray. thx !
David
dgregor5
01-03-2008, 11:06 AM
interesting -
When trading from the DOM, it acts independently from the auto NinjaScript strategy within the chart (as expected), but this is not the case vice-versa. I have just had a trade initiate from the auto strategy, & it is also tracking the trade from within the DOM.
is there someting that i need to add to the NT code to ensure independence.
thx
David
dgregor5
01-03-2008, 11:15 AM
Pressing CLOSE on the SuperDom closes the auto strategy in the chart also. I can assure you that the ATM Strategy Selection mode is set to 'DisplaySelectedAtmStrategyOnly'.
any thoughts ?
thx
Davud
NinjaTrader_Ray
01-03-2008, 11:15 AM
What do you mean a strategy is tracking a trade from the DOM?
- If you run a strategy on a chart, the position generated from the strategy is completely indpendent from whats in your account or displayed on the DOM
dgregor5
01-03-2008, 11:23 AM
Automated NinjaScript stategy - 1 contract on the YM enter long.
Default ATM strategy on the SuperDom - 3 contracts on the YM.
1/ Trade initiated automatically in chart from NinjaScript as expected when conditions were met.
2/ PnL also tracked in the SuperDOM for this chart trade, & rather than showing FLAT in the DOM, it had 2 contracts showing long.
3/ Pressing CLOSE in the SuperDom closed the chart stratregy.
4/ ATM Strategy Selection mode is set to 'DisplaySelectedAtmStrategyOnly'.
hope this clarifies.
thx
David
NinjaTrader_Ray
01-03-2008, 11:52 AM
- If in your DOM, you have an active ATM strategy selected in the strategy list, and you press CLOSE, it will *only* close the ATM strategy
- If in your DOM, you do NOT have an active ATM strategy but your account holds a position (likely generated by your NinjaScrip strategy) and you press CLOSE, it will close the account position and *also* terminate your NinjaScript strategy
dgregor5
01-03-2008, 12:00 PM
great - thx Ray. that matches my observations.
luxurious_04
08-22-2010, 06:52 PM
How to trade multiple contracts in ninja using a ninja script?
NinjaTrader_Austin
08-22-2010, 09:40 PM
luxurious, please make sure you have the entries value set high enough to allow multiple contracts. There should be no issues with trading more than one contract. You will also have to specify the number of contracts in the code as well.