![]() |
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 |
|
Senior Member
Join Date: Dec 2008
Location: Castle Pines, Co
Posts: 621
Thanks: 1
Thanked 2 times in 2 posts
|
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?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,398
Thanks: 252
Thanked 968 times in 951 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2008
Location: Castle Pines, Co
Posts: 621
Thanks: 1
Thanked 2 times in 2 posts
|
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? |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,398
Thanks: 252
Thanked 968 times in 951 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |