else if (State == State.Configure)
{
SetProfitTarget(CalculationMode.Currency,1000);
SetStopLoss(CalculationMode.Currency,500);
SetTrailStop(CalculationMode.Ticks,1);
}
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Profit Target, Stop Loss & Trailing Stop
Collapse
X
-
Profit Target, Stop Loss & Trailing Stop
I am trying to set a profit target, stop loss & trailing stop for my strategy. The trailing stop never seems to trigger even if i set it to 1 tick. It only works if I remove the SetStopLoss. Is it not possible to have all three running at the same time?
HTML Code:Tags: None
-
Based on the documentation here: SetTrailStop, SetTrailStop and SetStopLoss cannot be used together. See the first sentence under Notes.
The SetTrailStop() method can NOT be used concurrently with the SetStopLoss() or SetParabolicStop() method for the same position, if any of methods are called for the same position (fromEntrySignal) the SetStopLoss() will always take precedence. You can however, use all three methods in the same strategy if they reference different signal names.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
57 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
39 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
45 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
35 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|
||
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
156 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|

Comment