if i stop and start a strategy. how do i detect it from my code so that i can reinitialize all my strategy values on restart.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
how to find our barid against which i enetered order.
Collapse
X
-
how to find our barid against which i enetered order.
how do i find the barid against which i placed order. i want to cancel it if the orderis not filled after 2 bars.
if i stop and start a strategy. how do i detect it from my code so that i can reinitialize all my strategy values on restart.Last edited by junkone; 05-26-2009, 05:40 AM.Tags: None
-
You would need to store the barnumber with CurrentBar you placed the order on - http://www.ninjatrader-support.com/H...urrentBar.html
Then CancelOrder it if CurrentBar is higher than your variable + x
(sample script for this is also found on this helpguide page)
Unfortunately there's no method to detect if the strategy is started / stopped.
-
Right. If you cancel an exit order for an entry you will not be able to resubmit that same exit order for that same entry. We have already provided you workarounds for that. Unfortunately there is no ETA I can provide you at this time for when the fix will be available. This is a very sensitive area that has many implications everywhere and every precaution needs to be taken in creating this fix. Thank you for understanding.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
20 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
14 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
10 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
41 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment