Is if possible to have multiple timers? I want to run one timer fast - something on the order of 10 seconds, or so. The second timer I want to run slow - several hours.
I can kick off one timer fine. But, how do I use a second timer. Declaring and starting the second timer is not the problem. The problem is how do I mediate TriggerCustomEvent? How do I put a switch or it/then statement in Trigger CustomEvent?
In pseudocode, I want to do this:
private void TimerEventProcessor(Object myObject, EventArgs myEventArgs)
{
if (myBool)
{
TriggerCustomEvent(myFastTimerEvent, 0, fastTimer.Internal);
}
else
{
TriggerCustomEvent(mySlowTimerEvent, 0, slowTimer.Internal);
}
It is probably clear I am not understanding the timer mechanism in NinjaTrader.
Suggestions?
Thanks!
Comment