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 04-02-2010, 10:07 AM   #1
gg80108
Senior Member
 
Join Date: Dec 2008
Location: Castle Pines, Co
Posts: 621
Thanks: 1
Thanked 2 times in 2 posts
Default Ending Strategy Trigger

Was testing my strategy with the short ES session today.. Looking for some ideas for an "event" I could use to trigger on, to end /stop my Strategy.. Any ideas?
gg80108 is offline  
Reply With Quote
Old 04-02-2010, 10:16 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,398
Thanks: 252
Thanked 968 times in 951 posts
Default

You would need to setup time / date filters with holidays / holiday hrs and then create for example a boolean condition out of this which you include in the entry conditions.

To exit earlier on those days, you would need to setup separate ones according to the end times needed for those 'special' days.
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 04-02-2010, 11:00 AM   #3
gg80108
Senior Member
 
Join Date: Dec 2008
Location: Castle Pines, Co
Posts: 621
Thanks: 1
Thanked 2 times in 2 posts
Default

Thinking more of a keep-alive function.. If I don't see any ticks in xxx minutes but Seems like everything is driven by ticks, a catch 22,,
Like right now,, connection is good, but no new real time data.. anything in the bag of tricks?
gg80108 is offline  
Reply With Quote
Old 04-02-2010, 12:22 PM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,398
Thanks: 252
Thanked 968 times in 951 posts
Default

As an idea you could for example access the tickcount and count then how many ticks you receive and work from there - http://www.ninjatrader-support.com/H...6/TickCount.ht
NinjaTrader_Bertrand is online now  
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
Strategy trigger from fill price? What about partial fills? lurky ATM Strategies (Discretionary Trading) 1 07-10-2009 03:10 PM
Is it possible to display 60min charts with each bar period ending at xx:30? clearpicks Charting 1 03-18-2009 08:47 AM
Ending strategy once day profit target hit? tazmaan Strategy Analyzer 6 07-18-2008 12:28 AM
Ending Ninjascript strategy jlm0@infionline.net General Programming 15 11-29-2007 12:34 PM
Ending Ninjascript strategy jlm0@infionline.net General Programming 50 11-14-2007 10:59 PM


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