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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
132 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
118 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment