Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Limiting the number of Bars for Active Limit
Collapse
X
-
By default, orders automatically cancel at the end of a bar therefore, you need to determine a way to *not* re-submit the order after three bars. One approach would be to create a private "int" variable outside the OnBarUpdate() method at the class level. Track the bar number the signal and order was placed (use CurrentBar) then track if the CurrentBar is greater than the bar number stored + 3 etc..
-
Limiting the number of Bars for Active Limit
I am suffering from a synapse meltdown!
I want to enter a Buy Limit order 4 ticks below the signal bar Close. ( Close[0] ). How can I cancel the order if not triggered within the next 3 bars.
I can even find documentation on this. Talk about a brain %$#@.
ThanksTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Lightheart, 01-16-2025, 03:24 PM
|
2 responses
3 views
0 likes
|
Last Post Today, 07:07 AM | ||
Started by Marty125, Today, 07:00 AM
|
0 responses
7 views
0 likes
|
Last Post
by Marty125
Today, 07:00 AM
|
||
Started by mitchdavo, 01-17-2025, 05:30 PM
|
4 responses
31 views
0 likes
|
Last Post Today, 06:16 AM | ||
Started by Mindset, 01-19-2025, 10:16 AM
|
2 responses
19 views
0 likes
|
Last Post
by Mindset
Today, 06:07 AM
|
||
Started by Ludwik, Today, 03:28 AM
|
0 responses
15 views
0 likes
|
Last Post
by Ludwik
Today, 03:28 AM
|
Leave a comment: