Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

General timer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    General timer

    Hello,

    I need to perform some action periodically (e.g. query a database once per second), regardless any market data. Is there any (NinjaTrader or NinjaScript built-in) periodical event or procedure that I could use?

    Or should I use some of the .NET timers? I tried starting System.Threading.Timer when the strategy started, but it didn't work correctly (sometimes the callback was invoked, sometimes not)

    Thank you in advance

    #2
    mix.net, please see this sample here for triggering custom events with a timer in NinjaScript / C# - http://www.ninjatrader.com/support/f...ead.php?t=5965
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pilotfo, Today, 12:50 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by DTSSTS, Today, 11:35 AM
    2 responses
    11 views
    0 likes
    Last Post DTSSTS
    by DTSSTS
     
    Started by sinpeople, Today, 07:20 AM
    2 responses
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Frank1000, Today, 03:05 AM
    5 responses
    16 views
    0 likes
    Last Post Frank1000  
    Started by fscabrera03, Yesterday, 01:18 PM
    2 responses
    25 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X