NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > SuperDOM and other Order Entry Windows

SuperDOM and other Order Entry Windows Support for all NinjaTrader order entry windows including the SuperDOM.

Reply
 
Thread Tools Display Modes
Old 01-03-2008, 06:05 AM   #1
dgregor5
Senior Member
 
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
Default Multiple Trades on the Same Contract

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
dgregor5 is offline  
Reply With Quote
Old 01-03-2008, 07:06 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

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.
NinjaTrader_Ray is offline  
Reply With Quote
Old 01-03-2008, 09:17 AM   #3
dgregor5
Senior Member
 
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
Default

Got it ! - appreciate your great support Ray. thx !
David
dgregor5 is offline  
Reply With Quote
Old 01-03-2008, 10:06 AM   #4
dgregor5
Senior Member
 
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
Default

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
Last edited by dgregor5; 01-03-2008 at 10:08 AM. Reason: poor english
dgregor5 is offline  
Reply With Quote
Old 01-03-2008, 10:15 AM   #5
dgregor5
Senior Member
 
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
Default

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
dgregor5 is offline  
Reply With Quote
Old 01-03-2008, 10:15 AM   #6
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

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
NinjaTrader_Ray is offline  
Reply With Quote
Old 01-03-2008, 10:23 AM   #7
dgregor5
Senior Member
 
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
Default

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
dgregor5 is offline  
Reply With Quote
Old 01-03-2008, 10:52 AM   #8
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

- 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
NinjaTrader_Ray is offline  
Reply With Quote
Old 01-03-2008, 11:00 AM   #9
dgregor5
Senior Member
 
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
Default

great - thx Ray. that matches my observations.
dgregor5 is offline  
Reply With Quote
Old 08-22-2010, 05:52 PM   #10
luxurious_04
Senior Member
 
Join Date: Jul 2010
Location: Philippines
Posts: 248
Thanks: 7
Thanked 6 times in 4 posts
Send a message via Skype™ to luxurious_04
Default Multiple Contracts

How to trade multiple contracts in ninja using a ninja script?
luxurious_04 is offline  
Reply With Quote
Old 08-22-2010, 08:40 PM   #11
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

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.
Attached Images
File Type: png multiple.PNG (4.2 KB, 7 views)
NinjaTrader_Austin is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
v5.2.1000.5 YM for 03-08 contract trymph Miscellaneous Support 2 12-13-2007 09:31 AM
GE contract issues?? zelli Miscellaneous Support 4 06-18-2007 11:47 AM
Multiple Simultaneous Trades at "Exit on Close" With Setting "1 Entry Per Direction&q KBJ Strategy Analyzer 1 04-27-2007 05:34 AM
Continuous Contract for IB zoltran Suggestions And Feedback 1 04-18-2007 06:52 AM
Multiple trades on charts Antraman Charting 1 05-01-2006 12:58 AM


All times are GMT -6. The time now is 11:09 AM.