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 08-18-2012, 07:32 AM   #1
NFT-Trader
Junior Member
 
Join Date: Jul 2012
Posts: 16
Thanks: 6
Thanked 1 time in 1 post
Default Consecutive losing trades

Using Wizard, I would like to build a strategy to tell the script to "quit" trading after so many consecutive losers during a trading day? To date I have not been able to figure this out.
NFT-Trader is offline  
Reply With Quote
Old 08-18-2012, 12:34 PM   #2
marcow
Senior Member
 
Join Date: Dec 2009
Location: Netherlands
Posts: 179
Thanks: 15
Thanked 72 times in 51 posts
Default

hello NFT-Trader,

to determine if the last trade was a losing trade, you could take a look at the image I posted in post#3 in the following thread: http://www.ninjatrader.com/support/f...ad.php?t=51783

Problem you'll run into is that in the Wizard it is currently impossible to add or substract variables from each other, so the actual counting of consecutive losers will not be possible.

Maybe someone else knows a workaround for this by for example loading the SUM indicator with 2 variables so the output will give the summation of these 2 ?

Marco
marcow is offline  
Reply With Quote
Reply

Tags
consecutive losers

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
Two Losing Trades = No More Trading Zhorny Strategy Development 3 07-01-2012 10:36 AM
Ninjatrader7 losing trades?? Frederic Automated Trading 3 05-18-2012 10:42 AM
Consecutive Losing trades- how to double down wprosser Strategy Development 8 08-19-2011 06:13 AM
Winning Trades Calculated as Losing Trades neb1998 Strategy Development 0 07-02-2011 11:36 PM
disable script after consecutive losing trades? wcredle Strategy Development 1 06-08-2008 09:40 PM


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