Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
sl and tp not working
Collapse
X
-
sl and tp not working
good morning,I'm working on a automated system with strategy,builder,the orders buy and sell is working on the chart but not the sl and tp that is set on the builder.Instead the trade closes when the next order opens,for example I have a buy open,it closes when i have a sell order.Can you help me to solve this issue please.Tags: None
-
Hello janio973,
Thank you for your post.
Does adding a condition that Current Market Position must equal MarketPosition.Flat in the conditions for each entry resolve what you are seeing?
If not, please provide screenshots of your current entry/exit logic including any stops and targets.
Thanks in advance; I look forward to assisting you further.
-
Hello janio973,
Thank you for your reply.
I don't see that you have added conditions to check whether the position is flat before submitting an entry:
Add one of these conditions to your entry set as well as your exit set and this will keep it from reversing the positions rather than using the stop and target.
Please let us know if we may be of further assistance to you.
Comment
-
My sl and tp is working now,thanks so much,can I ask you some more help:
1-when the price reach my tp,instead of close my trade,I wanted to know what condition I need to make for my trade go breakeven at tp price(not breakeven at entry),so I can profit of more mouvement in my way if there is some.
2-if price continues to go in my way ,my order follow by some ticks and close if it reverse 3 or 4 ticks for example.
Comment
-
Hello janio,
Thank you for your reply.
Breakeven and trailing functions in the Strategy Builder can get pretty complicated. There is a basic trail stop and a parabolic stop (moves in approximately the same path as the Parabolic SAR indicator) that can be used from the stops and targets screen that are pretty basic and will trail towards profit from the time they are entered. However, for more complex action as you describe, you would need to use Exit orders in sets on the Conditions and Actions screen.
Two examples of breakeven functionality may be found in this forum post:
An example of trailing stop functionality may be found in this forum post as well:
Good afternoon, I would like through the strategy builder to be able to use the trailing stop, I don't know how to use it so that my stop decreases when I have advanced a certain number of ticks? Thanks
Please let us know if we may be of further assistance to you.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
649 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 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
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
576 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|
Comment