I am seeking to have a strategy that gives 'individual' stops and targets for my entries, but now, if I enter, my target appears in the chart trader as a limit (all good), then if that target is not hit and another signal appears and I enter with another trade, the target (and stop) stays at the same price and is now for 2 contacts. I am seeking for a target to appear at a price, say +10 pips, for my first entry and another to appear at +10 pips at a difference price for my second entry. How can I do this? is it possible in the strategy builder? I am trying to backtest/optimize the target in this manner, and so the ATM strategy template will not work. thank you!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Q on Stops and Targets for a strategy
Collapse
X
-
Q on Stops and Targets for a strategy
Hi NT8,
I am seeking to have a strategy that gives 'individual' stops and targets for my entries, but now, if I enter, my target appears in the chart trader as a limit (all good), then if that target is not hit and another signal appears and I enter with another trade, the target (and stop) stays at the same price and is now for 2 contacts. I am seeking for a target to appear at a price, say +10 pips, for my first entry and another to appear at +10 pips at a difference price for my second entry. How can I do this? is it possible in the strategy builder? I am trying to backtest/optimize the target in this manner, and so the ATM strategy template will not work. thank you!
Tags: None
-
Hello Austiner87,
Are you currently using the stops and targets page in the strategy builder for the targets? If so can you provide a screenshot of your current configuration?
You would generally need to use the Signal name field to tie targets to individual entries. For example the first entries signal name may be Entry1, the SetStopLoss in the stops and target page would have Entry1 as its signal name. For the second entry you would configure another stoploss with that signal name.
-
Hi Jesse,
I tried your suggestion, entering a different signal name "1" "2" "3" ... for each entry, and matching that signal with a target/stop referencing that signal name. However, it still turns the profit target and stop into a target/stop for my total position as opposed to each entry individually. Please see the attached code for help on this; it's only about 150 lines total.
Thank you!Attached Files
Comment
-
Hello Austiner87,
Could you clarify, are you looking at the chart trader or viewing the control center orders tab?
Just as a quick example, if we used the following code:
You would see in the chart trader only 1 line for both entries because they are priced the same. In the control center you would see a pair of targets for each entry.Code:SetProfitTarget("Long 1a", CalculationMode.Ticks, 10); SetTrailStop("Long 1a", CalculationMode.Ticks, 8, false); SetProfitTarget("Long 1b", CalculationMode.Ticks, 10); SetTrailStop("Long 1b", CalculationMode.Ticks, 8, false); EnterLong("Long 1a"); EnterLong("Long 1b");
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
71 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
143 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
76 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
47 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
51 views
0 likes
|
Last Post
|

Comment