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 > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

Reply
 
Thread Tools Display Modes
Old 04-30-2012, 04:04 PM   #1
marcow
Senior Member
 
Join Date: Dec 2009
Location: Netherlands
Posts: 179
Thanks: 15
Thanked 72 times in 51 posts
Default native NT Timer Method

After doing some tests with the C# Timer event, it appears that there are some safeguards in NT that prevent the timer from executing more than 100 events in the same bar. See following threads:

http://www.ninjatrader.com/support/forum/showthread.php?t=20470
http://www.ninjatrader.com/support/forum/showthread.php?p=285414#post285414


When running the strategy on large Renko bars this obviously is unacceptable. There is an unsupported workaround which is raising the MaxProcessedEvents in Initialize, but wouldn't it be nice if NT had a native Method for a timer ?

I'm thinking of a method comparable to the OnMarketData (which triggers on every incoming tick), but gets executed independent of incoming ticks. You should set the frequency of this method in initialize, let's say 1 second. All code in the "Timer- method" now gets executed every 1 second. Maybe it should be possible to have multiple timers at different frequencies ?

This timer method should act as a sort of secundary clock-pulse for the strategy, running independently from the usual incoming ticks

It can be used for :

- Efficient intrabar checking for time (to exit a strategy at a certain time) without having to run the strategy with COBC = false or using the OnMarketData to check the timestamp of incoming ticks. (In my experience the standard ExitOnClose doesn't work reliably intrabar on Kagi / Linebreak charts)

- Blinking text at a certain frequency so it attract the user's attention.For example a blinking button to signal that the strategy is live and running A static button will also display if there was a crash...


Marco
Last edited by marcow; 05-02-2012 at 12:34 PM.
marcow is offline  
Reply With Quote
Old 05-01-2012, 06:20 AM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Marco,
Thanks for your feedback. I will send your request to development for future consideration.

Please let me know if I can assist you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 05-02-2012, 12:19 PM   #3
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello marcow,
Development has assigned tracker id #1734 for your feature request.
Please let me know if I can assists you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
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
*NT** AtmStrategyChangeStopTarget() method error: OrderName 'STOP1' does not exist jokujoku ATM Strategies (Discretionary Trading) 34 10-16-2012 09:40 AM
how about this?**NT** Error on calling 'OnBarUpdate' method for strategy 'alaoluo/41d silverness General Programming 6 12-30-2010 03:09 AM
Native Error -15 astrolobe Charting 2 07-15-2009 07:15 AM
Importing a method into NT stefy General Programming 3 03-04-2009 09:02 AM
Native Error monas Miscellaneous Support 1 10-12-2005 11:57 PM


All times are GMT -6. The time now is 07:37 AM.