Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
hold position open until minimum target is met even after an exit condition is met
Collapse
X
-
hold position open until minimum target is met even after an exit condition is met
good morning, could you help me to find out how to create a condition in s. builder, so that a trade is not closed until a minimum of points is obtained? i.e., if my condition is given to exit a bet but the position has not yet reached the minimum target I have set, the position will remain open until the target size is met. thank you very much.Tags: None
-
Hello micaeliglesias,
You can calculate the target price when the entry is submitted (or the position changes) and save this to a variable and then in the conditions compare the close price to be greater than this variable.
These examples linked below provide sample code of calculating a price and saving this to a variable that you can adapt to your needs.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
79 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