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 > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 12-27-2010, 11:19 PM   #1
raffu
Member
 
Join Date: Apr 2010
Location: Finland
Posts: 60
Thanks: 11
Thanked 0 times in 0 posts
Send a message via Skype™ to raffu
Default How to exit a strategy programmatically

something like if error exit()... which will stop the strategy running.
raffu is offline  
Reply With Quote
Old 12-28-2010, 03:40 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,383
Thanks: 252
Thanked 967 times in 950 posts
Default

raffu, per default the strategy is terminated by NT if an error (order rejection for example) occurs - in NT7 you can also work with the Disable() method - http://www.ninjatrader.com/support/h...t7/disable.htm
NinjaTrader_Bertrand is online now  
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
exit strategy JavierPB Automated Trading 6 02-05-2012 02:00 AM
How to programmatically Sync strategy Accountsize with live account onStart MicroTrends Automated Trading 4 06-30-2010 03:31 PM
NT Strategy Backtest - How to set data series time frame programmatically? tradinghumble Version 7 Beta General Questions & Bug Reports 1 10-30-2009 11:14 AM
Accessing Strategy Analyzer Programmatically (For Loop) takacsj Strategy Analyzer 7 09-25-2009 06:38 AM
Exit Strategy SystemTrading Strategy Development 5 02-06-2009 09:05 AM


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