Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Keep limit order
Collapse
X
-
Keep limit order
Hi, I learned that the limit order placed by strategy will be cancelled if it is not fill. I would like to know how to keep the order going until filled or cancelled. I read from another post that the logic is similar to the BreakEvenStrategy but after multiple try, still can't get it going. Could anyone kindly post a template for Strategy Builder? Thank you.Last edited by Invest78; 06-15-2023, 05:27 PM.Tags: None
-
Thanks Chris, I did read thru most post in that link even before I posted my request but I did not see an example on resubmitting the order based on limit order. I have seen a number of examples on Breakeven and trailing stop. Perhaps I have missed it. I tried to create one based on those logic but wasn't successful. Do you might attached the example? Thank you.
Comment
-
Hi, thanks for the follow up. There could be many ways to ensure the order gets re-submitted on every bar it should be alive. The most common way in the strategy builder is to use the "TriggerState" system that the break even example I posted uses. I would recommend studying and fully understanding this example.
Comment
-
Hi Chris, based on the break even example and the trigger state system, I got stuck how to do the order re-submission.
Set 1: When market position is flat, I set it as TriggerState=0
Set 2: When the entry conditions are met, I set it as TriggerState=1 and define the EntryPrice (which is the close of the signal bar plus offset). I use Renko type bar.
Set 3: When TriggerState=1 and market position is flat, I set it to TriggerState=2 and do LongLimit entry with the EntryPrice.
Then I am stuck for Set 4. Do I put the condition for TriggerState=2 and do the LongLimit Entry again? I have try different combination but did not seems to work.
Thank you for your help.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
78 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment