Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Trail stop not being placed
Collapse
X
-
Trail stop not being placed
Enclosed is a picture of the OutPut window (traceOrders) and the Orders tab in Control Center.. S1 is ok (I have my setstoploss in the initialize section) but Short-2 ,, the output window seems to say there is a trailstop for "Short-2" but the order never shows up in the Control CenterTags: None
-
Dont see the trail stop mentionedOriginally posted by NinjaTrader_Josh View PostPlease check the Control Center log for any messages relating to that trail stop.Attached Files
Comment
-
Here is the code The first postions have a SetStopLoss and they are referenced.. The second position is the trailing stop,, I can use these both if they reference different positions, cant I?Originally posted by NinjaTrader_Josh View PostIf you submit a stop loss and a trail stop it won't work. Are you doing this sequence of events?
// profit target first position
SetProfitTarget("S1", CalculationMode.Ticks, ProfitTarget1);
SetProfitTarget("L1", CalculationMode.Ticks, ProfitTarget1);
//fixed stop first position
SetStopLoss("L1", CalculationMode.Ticks, maxRisk, false);
SetStopLoss("S1", CalculationMode.Ticks, maxRisk, false);
/// trailing stop second position
SetTrailStop("Short-2", CalculationMode.Price, High[2], false);
SetTrailStop("L2", CalculationMode.Price, Low[2], false);
Comment
-
Guess I dont know how to use PerEntryExecution.Originally posted by NinjaTrader_Josh View PostDifferent positions should work. Can you please try setting your strategy's order handling to PerEntryExecution. See if that helps.
Do you mean EntryHandling.UniqueEntries ?
UniqueEntries did not help, still no trailing stop..
My code was using CalculationMode.ticks,, and ticks worked fine. Just swapping to price broke it.
SetTrailStop("Short-2", CalculationMode.Ticks, trailStop, false);
//SetTrailStop("Short-2", CalculationMode.Price, High[2], false);
Comment
-
Well Josh is that the holy grail to use tick mode instead of price, txs for the trading tips?? lolOriginally posted by NinjaTrader_Josh View PostI was referring to Stop & Target Handling. Try switching that to PerEntryExecution.
If ticks mode was working there is no need to change it to price.
, I want my stop to move as an amount gauged by the 3rd bar back, which I trade manually,, should be no problem for a computer, right?
... Found the PerEntryExecution,, was already checkedLast edited by gg80108; 06-16-2009, 04:58 PM.
Comment
-
Here is what the reference says for settrailstop. Guess this needs to be corrected????Originally posted by NinjaTrader_Josh View Postgg80108,
I am not sure what you mean. You want to use whichever mode submits the correct price for your order. CalculationMode.Price does not work for Trailing stops.
mode
CalculationMode.Percent (0.01 = 1%)
CalculationMode.Price
CalculationMode.Ticks
value
The trail stop value
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by cmoran13, Yesterday, 01:02 PM
|
0 responses
29 views
0 likes
|
Last Post
by cmoran13
Yesterday, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
21 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
160 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
95 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
148 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment