Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TriggerCustomEvent() for every second?

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

    TriggerCustomEvent() for every second?

    How is this done? I am very confused how this works. Ive tried working with the sample file, but still i am getting excessive orders or it wont work on live sim. I am doing unmanaged orders and need the orders changed if its not filled within a 1 minute time frame.

    #2
    ericson, in the sample you will see the timer being set to 1000Ms or one second. Meaning it would the raise an event in the TimerEventProcesser where you call your method implementing the logic you would want to see taking place at every timer point trigger. To debug and isolate I would separate the timer logic first from the order logic and see at which point you get exactly the unexpected outcomes in your processing. If you are seeing excessive orders then it would suggest your checks are probably not hitting as you expect, as the unmanaged orders would not have any Entryhandling limits like the managed mode, if your condition to submit an order hits it would submit, just like for example the AtmStrategyCreate(). So I feel the issues are separate from the actual timer event calling your logic, as this would just give you an event to fire your own logic consistently from apart from any event based updates we usually only trigger via OnBarUpdate() or the other more advanced handlers.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I just went back to managed orders and no more excessive orders.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by WilliCarls, Today, 02:01 AM
      0 responses
      4 views
      0 likes
      Last Post WilliCarls  
      Started by Pa_Baz, 12-14-2024, 09:40 PM
      47 responses
      792 views
      1 like
      Last Post Gianmarco Giorgi  
      Started by powbordon1126, 02-06-2025, 08:47 PM
      3 responses
      28 views
      0 likes
      Last Post rockmanx00  
      Started by dhanushatrader96, Yesterday, 10:24 PM
      1 response
      12 views
      0 likes
      Last Post bltdavid  
      Started by reynoldsn, Yesterday, 07:52 PM
      0 responses
      9 views
      0 likes
      Last Post reynoldsn  
      Working...
      X