![]() |
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: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
Does anyone know of a way to keep an automated strategy from executing a trade for a specified amount time after closing a trade?
The problem I have is that after a trade closes through a stop or profit target, the conditions that may have initiated the buy/short still exist so that after the trade closes, the strategy enters a buy/short immediately - usually that trade closes out on a stop I just need the strategy to not trade for the next 10 - 30 minutes. Thanks |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Hi flurbo,
Please try adding to your entry condition BarsSinceEntry().
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
Danke! Your quick reply is much appreciated. That is an easy thing to implement.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Patsystems Interval & Timeout | saltminer | Connecting | 7 | 09-16-2008 09:59 AM |
| any pause command | toyogo00 | General Programming | 8 | 06-28-2008 10:58 PM |
| Trade Logger or Journal like Trade Navigator | tradertool | Suggestions And Feedback | 2 | 03-08-2008 10:08 PM |
| Auto Execution Pause | BIGRED | Automated Trading | 3 | 03-04-2008 12:14 AM |
| deleting spurious trade from sim trade list | Arbitrageur | Miscellaneous Support | 2 | 09-12-2006 03:59 AM |