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 10-02-2008, 03:28 PM   #1
flurbo
Junior Member
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default pause or timeout after a trade

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
flurbo is offline  
Reply With Quote
Old 10-02-2008, 08:30 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

Hi flurbo,

Please try adding to your entry condition BarsSinceEntry().
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-03-2008, 10:00 AM   #3
flurbo
Junior Member
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default

Danke! Your quick reply is much appreciated. That is an easy thing to implement.
flurbo 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
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


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