![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2012
Posts: 16
Thanks: 6
Thanked 1 time in 1 post
|
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.
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Dec 2009
Location: Netherlands
Posts: 179
Thanks: 15
Thanked 72 times in 51 posts
|
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 |
|
|
|
![]() |
| Tags |
| consecutive losers |
| Thread Tools | |
| Display Modes | |
|
|
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 |