Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy doesn't work with stops and p targets.
Collapse
X
-
Strategy doesn't work with stops and p targets.
My strategy seems to generate fine now and I can backtest it, but when I try to add stops and or profit targets it won't work. When I pull up a backtest menu and select my strategy the strategy window is blank. I'm sure it's the way I'm entering the stops and profit targets. What does "from entry signal" and "value" mean?Tags: None
-
Hi Melcotran,
Thanks for your post.
In the 'From Entry Signal' field you want to enter the signal name you attached to your Entry Signal.
In the 'value' field you want to enter the actual Profit Target / Stop Loss value associated with the 'mode' setting, either the price, a currency value or the tick amount.
Please review those two links below, they describe the SetProfitTarget() and SetStopLoss() methods -
Originally posted by Melcotran View PostMy strategy seems to generate fine now and I can backtest it, but when I try to add stops and or profit targets it won't work. When I pull up a backtest menu and select my strategy the strategy window is blank. I'm sure it's the way I'm entering the stops and profit targets. What does "from entry signal" and "value" mean?
-
Hi Melcotran,
You would have to use different entry order for every target you have. Then you can exit a specific quantity with a unique order name from the full position.
Please review this link - http://www.ninjatrader-support2.com/...ead.php?t=3271
Any of those orders provides you with a quantity as well as signal name input, so you can code custom scaling strategies.
Originally posted by Melcotran View PostHow would I enter multiple targets for a single position? For example: short 6 TF, with first profit target at 5 ticks for 2 contracts, 10 ticks for another 2,and 20 ticks for the last 2.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
59 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
283 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment