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.

    Comment


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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      637 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      571 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X