is there a way to create this action in the GUI or I really have to be a programmer?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Builder - How can I enter long with a set profit and stop limit?
Collapse
X
-
Strategy Builder - How can I enter long with a set profit and stop limit?
Newbie here. I'm experimenting with conditions which I think I understand. But how do I configure an action to go long with a specific profit target and stop target?
is there a way to create this action in the GUI or I really have to be a programmer?Tags: None
-
Hello MatthewLesko,
Thank you for your post.
You can set stops and targets for your entries on the Stops and Targets screen of the Strategy Builder. These can be linked to specific entries using Signal Names. Entry orders will have a field called Signal Name, and stops and targets will have a field called From Entry Signal. If you put the same Signal name in for an entry order that you put in the From Entry Signal field for a stop or target, this will link that stop/target with that particular entry and these will only be triggered if that entry was used. You can use this to link specific entries with specific exits.
I'm attaching an example strategy that enters 2 positions and scales out one using an exit order and a trail stop to exit the other, using signal names to connect the entries with the exits.
Please let us know if we may be of further assistance to you.Attached Files
- Likes 1
-
Thanks I will try. Also is there a way to have a condition to not order if there has already been a trade in last X minutes?
Comment
-
Hello Matthew,
Thank you for your reply.
If you're running the strategy on 1 minute bars, you could use Bars Since Exit under the Misc folder of the Condition Builder. Bars Since Exit can be compared to a numeric value. It will return either the number of bars since the strategy last exited a position or a -1 if no position has yet been exited. You'd want to use a condition group for this, since you'd want to check if it's been more than X number of minute bars since an exit or if Bars Since Exit equals -1, meaning it hasn't exited a position yet, then an entry could be taken.
Please let us know if we may be of further assistance to you.
- Likes 1
Comment
-
-
Hello Matthew,
Thank you for your reply.
As long as the number of minutes you want to delay entry by is a multiple of 5 it would, because it depends on the time frame of the chart how many minutes each bar would represent.
Please let us know if we may be of further assistance to you.
- Likes 1
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
54 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
131 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment