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
Comment