NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 09-12-2007, 01:07 PM   #1
daven
Senior Member
 
Join Date: Mar 2006
Location: Bellingham, WA , USA
Posts: 329
Thanks: 0
Thanked 11 times in 8 posts
Default Automatic Strategy Entries with Manual Exits

I've been testing a strategy on several instruments which looks promising but it is clear that there are times that exiting the position, perhaps even reversing it would improve the performance. However, when I intervene this way the strategy seems to automatically stop and I can't start it again without reloading it on the chart. Is there a way to set a strategy up so I can intervene without causing it to stop? The strategy is giving me great entries, but so far the exits are the problem, and the various methods I've tried to improve exits haven't worked to make it better.
daven is offline  
Reply With Quote
Old 09-12-2007, 01:53 PM   #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

Are you referring to a NinjaScript strategy?
Does your NinjaScript strategy create ATM strategies?
When you say intervene, do you mean manually? What exactly are you doing?

Thanks.
NinjaTrader_Ray is offline  
Reply With Quote
Old 09-12-2007, 06:33 PM   #3
daven
Senior Member
 
Join Date: Mar 2006
Location: Bellingham, WA , USA
Posts: 329
Thanks: 0
Thanked 11 times in 8 posts
Default Manual Adjustment

I'm not that sophisticated, (yet). I would like to use ATM's to manage exits while entering with a NinjaScript strategy. I know its possible, I just haven't figured out how to do it yet. I suspect it is also not testable other than realtime. I would like to move a stop or close a position, perhaps enter a new position, while preserving the strategies ability to enter a trade when the conditions defined in an NT script are present. My next effort is to learn how to marry a strategy entry with an ATM exit management. How tough is that? In the meantime is it possible to set the NinjaScript strategy up to enter a trade, but allow the user to intervene to manage or exit the trade?
daven is offline  
Reply With Quote
Old 09-12-2007, 07:57 PM   #4
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

No it is not possible. To manually intervene, you need to use a NinaScript strategy that programatically monitors for an entry and intiate an ATM strategy that you can manually manage.
NinjaTrader_Ray is offline  
Reply With Quote
Old 09-12-2007, 09:52 PM   #5
daven
Senior Member
 
Join Date: Mar 2006
Location: Bellingham, WA , USA
Posts: 329
Thanks: 0
Thanked 11 times in 8 posts
Default NinjaScript calls an ATM Strategy

I took a look at the user guide on calling ATM strategies, seems straightforward enough but there are a lot of extra commands around the topic. Is there an example of some code that implements this feature somewhere? Is it possible to implement an ATM call while using the strategy wizard. (I still prefer the training wheels. Everytime I try to create code without the wizard I usually get some kind of error message that I can't figure out how to correct.)
daven is offline  
Reply With Quote
Old 09-13-2007, 06:42 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

Unfortunately you can not work with ATM strategies within the Strategy Wizard.
NinjaTrader_Ray is offline  
Reply With Quote
Old 09-13-2007, 11:26 AM   #7
daven
Senior Member
 
Join Date: Mar 2006
Location: Bellingham, WA , USA
Posts: 329
Thanks: 0
Thanked 11 times in 8 posts
Default Automated/Manual Strategies

Hi Ray,
In my last post I asked about using the strategy wizard to call an ATM strategy, which I understand from you is not possible. I also asked if there was any resource that I could look at that had the code implemented in a strategy. Not just a snippet which already exists in the user guide, but a portion of functional code which calls an ATM strategy and actually works? I just need something I can monkey-train on, (monkey-see, monkey-do). To get started.
Thanks
Daven
daven is offline  
Reply With Quote
Old 09-13-2007, 12:00 PM   #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

See the SampleAtmStrategy that is installed with NT.
NinjaTrader_Ray is offline  
Reply With Quote
Old 10-27-2007, 06:57 AM   #9
yimbot
Member
 
Join Date: Jun 2006
Location: , , Australia
Posts: 69
Thanks: 0
Thanked 2 times in 2 posts
Default

On the flip side to this...

Is is possible to manually enter a trade, but have a Ninjascript strategy automatically exit rather than use an ATM strategy?

...or are there any plans to include things like ATR based trailing stops and more advanced exits of this type to the ATM Strategies?
yimbot is offline  
Reply With Quote
Old 10-27-2007, 07:57 AM   #10
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

Unfortuntately not at this time.
NinjaTrader_Ray 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
Semi-Automatic Strategy jstockman Automated Trading 1 08-19-2007 12:00 PM
Exits not happening DarrylT Strategy Development 3 01-11-2007 03:06 AM
how do I delete/edit performance tab entries? dberliner SuperDOM and other Order Entry Windows 1 11-02-2006 08:52 AM
Erroneous Exits pivot44 Miscellaneous Support 1 04-11-2006 07:11 AM
Limitis of Ninjascript? Manual? fliesch Indicator Development 2 03-16-2006 09:50 PM


All times are GMT -6. The time now is 12:50 PM.