NinjaTrader Support Forum  

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 06-08-2008, 08:43 PM   #1
wcredle
Junior Member
 
Join Date: Jun 2008
Location: Georgia
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default disable script after consecutive losing trades?

In building a script/strategy, can I via the Wizard, tell the script to "quit" trading after so many consecutive losers during a trading day? Alternatively ,can I tell the script to quit trading when a defined amount of loss (either by specified $ amount or % amount) is reached?
wcredle is offline  
Reply With Quote
Old 06-08-2008, 09:40 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

You should be able to in a little more convoluted manipulation in the conditions side. Basically just add a condition that evalutes to false after you have traded thus effectively stopping future trades. I suggest you give the methods outlined in these reference samples a try instead: http://www.ninjatrader-support.com/v...ead.php?t=4804
http://www.ninjatrader-support.com/v...ead.php?t=4084
NinjaTrader_Josh 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
Consecutive Tick Number brima Indicator Development 4 04-14-2008 08:23 AM
PnL not updating after a losing trade Antraman SuperDOM and other Order Entry Windows 4 10-03-2007 09:42 AM
Losing connection while in a trade - Stop disappeared Antraman Connecting 3 10-03-2007 07:12 AM
I keep losing my cursor ct Miscellaneous Support 7 05-29-2007 09:28 PM
Losing saved chart workspace Drew Charting 1 05-16-2007 07:03 AM


All times are GMT -6. The time now is 06:01 PM.