![]() |
|
|||||||
| SuperDOM and other Order Entry Windows Support for all NinjaTrader order entry windows including the SuperDOM. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
Got it ! - appreciate your great support Ray. thx !
David |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
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
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#8 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
- 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
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
great - thx Ray. that matches my observations.
|
|
|
|
|
|
#10 |
|
Senior Member
|
How to trade multiple contracts in ninja using a ninja script?
|
|
|
|
|
|
#11 |
|
NinjaTrader Customer Service
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
|
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.
Austin
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |