DaveN
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SetStopLimit interferes with first profit targets
Collapse
X
-
SetStopLimit interferes with first profit targets
I have a three contract strategy written in NinjaScript which takes off two contracts at a fixed profit level (4-10 tics set when strategy is placed on chart) and lets a third contract run until a negative crossover occurs. It also moves the stop to BE after the first two contracts are taken off, and trails up (for long) based on whichever is higher, the breakeven, or the low of the last bar. When I add a SetStopLoss command to protect the position when it first is entered, my first profit limit order stops working. I'm also getting problems with the stop being set above the market in the case of a short or below in the case of a long. Why does the stop interfere with my first profit target, and is there an alternative way of protecting the positon with a fixed stop until I get past my first profit target? This is easy to do using an ATM strategy, but essentially not backtestable once that tack is taken.
DaveNTags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
80 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment