Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
TriggerCustomEvent() for every second?
Collapse
X
-
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.Tags: None
-
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WilliCarls, Today, 02:01 AM
|
0 responses
4 views
0 likes
|
Last Post
![]()
by WilliCarls
Today, 02:01 AM
|
||
Started by Pa_Baz, 12-14-2024, 09:40 PM
|
47 responses
792 views
1 like
|
Last Post
![]() |
||
Started by powbordon1126, 02-06-2025, 08:47 PM
|
3 responses
28 views
0 likes
|
Last Post
![]()
by rockmanx00
Today, 12:09 AM
|
||
Started by dhanushatrader96, Yesterday, 10:24 PM
|
1 response
12 views
0 likes
|
Last Post
![]()
by bltdavid
Yesterday, 11:55 PM
|
||
Started by reynoldsn, Yesterday, 07:52 PM
|
0 responses
9 views
0 likes
|
Last Post
![]()
by reynoldsn
Yesterday, 07:52 PM
|
Comment