NinjaTrader Support Forum  

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 07-27-2009, 10:55 AM   #1
cesas
Member
 
Join Date: Feb 2009
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default Stop trading after Two losing trades

Hi. How can I set the ninjascript to stop trading after two losing trades in a row?
cesas is offline  
Reply With Quote
Old 07-27-2009, 11:03 AM   #2
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

Hi cesas, the example in the following link outlines exactly what you're trying to do. Here is the help guide page for Trade Performance class.
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
stop order triggered even no trades past my stop, only the bid/ask asalada ATM Strategies (Discretionary Trading) 5 05-04-2009 07:25 AM
disable script after consecutive losing trades? wcredle Strategy Development 1 06-08-2008 09:40 PM
Losing connection while in a trade - Stop disappeared Antraman Connecting 3 10-03-2007 07:12 AM
Trading two trades simultaneously dbj Charting 2 05-08-2006 06:05 AM
Stop Loss Orders activated by number of trades past stop level DoveforUsAll Suggestions And Feedback 1 02-08-2006 01:19 AM


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