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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
47 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
15 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
21 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment