TIA
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Clearing Stops?
Collapse
X
-
Clearing Stops?
I'm experimenting with adjusting stops and targets dynamically, is there a way to clear profit targets without resetting them to a new value. Also is there a way to determine what the current stops and targets for the current position are in a script?
TIATags: None
-
Well the problem i'm encountering is that when i put on a trade i am specifying a stoploss for every trade. then at some point durring the trade i am specifying a target. it seems if the trade gets stopped out instead of hitting the target what happens is that if the next trade is in the opposite direction the profittarget from the old trade activates and the trade gets closed out immediately by the profittarget. This new trade only has had its stop loss set when the trade was put on, is there a way to clear the profittarget from the old trade with out setting a value for it?
Comment
-
darckeen,
It sounds like you are using Set() methods. Remember, to attach stops/targets to an entry with Set() methods you need to call the set methods before you make the entry. Otherwise it will only attach to subsequent orders if you call it after you already acquired a position. This is exactly what you are experiencing.Josh P.NinjaTrader Customer Service
Comment
-
Ah i see. So instead of using a SetProfitTarget() I should just place a limit order? And if so, can i attach it to my position so that if the trade gets stopped out rather then hitting the limit order the limit order will be cancelled?
Also is there a ninja script API documentation available that is oriented to programmers and would give me a better understanding of these kinda nuances. I find the F1 help to be pretty limited as far as the ninja script and strategy programming goes?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
633 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
567 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment