Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
understanding how to implement trailing and parabolic stops into my strategy
Collapse
X
-
If TrailStopDistance is set at -40 does that mean it will place my initial stop -40ticks below entry?
-
Is it just possible to have a set target in place and a stop that starts out -40 ticks which moves up to breakeven +1 after price goes 10 ticks?
And thats it!
Forget about trailing it behind price as market goes further. Thats too complicated.
I tried this but it throws off my targets. I can adjust some of that language to see what can happen.
if (Position.MarketPosition == MarketPosition.Long && Close[0] >= Position.AveragePrice + (7 * (TickSize / 2)))
1st pic is what I have with hard stops & targets, 2nd pic is where it gets messed up with me trying to apply that script above.Last edited by trdninstyle; 10-25-2022, 06:00 PM.
Comment
-
Hello trdninstyle,
To do a breakeven you can see the breakeven sample in the following post: https://ninjatrader.com/support/foru...der#post806596
You would have to edit the existing inputs to match what you wanted to do. That script has default values for InitialStopDistance of -10 which you could set to whatever offset you wanted for the stop placement. You would also change the BreakEvenTrigger to match the amount of profit you wanted before breaking even.
If you wanted to do a +1 on the stops price after a break even you would have to edit set 4 to make the StopPrice the value that you wanted as the breakeven price. It uses the averageprice for the break even by default.
Comment
-
The BreakEvenTrigger example right now is set at 5, which is $500 ES, 10 points. That 5 isn't really 5 ticks, am I correct? Or is that saying 5 ticks? I would have to have a point in front of the number, like .1 or something.
Comment
-
In the script it looks like its under set 3 then I go to set 3 and break down each part. This part so far, I have it right?
The reason I thought the 5 was for more is because on my chart it doesn't look like it breaks even at 5 ticks, more like some crazy amount. On the chart itself.
(I'm just doing each step at a time. I'll get to doing a +1 by editing set 4 to make the StopPrice the value that I want.)Last edited by trdninstyle; 10-26-2022, 09:52 AM.
Comment
-
So set 3 is for initial stop, modify that. And set 4 is for breakeven after price moves in my favor by said amount, modify that.
So, I do not need those other sets? And I can still have a hard target in place.? In the Stops & Targets section.
Comment
-
Hold on. I'm not intending to use it for breakeven only the TARGET. The breakeven is in set 4 so yes, I don't use the Stop in 'Stops and targets'. Only for my Target of 30 ticks.
Can I still use Target in Stop & Targets section? For Target Not Stop.
Comment
-
Okay so I can. I'll go ahead and use a basic target and a breakeven stop. On sets 1,2 and 5, I copy them the way they are? and change 3 & 4 to fit my strategy. Is my understanding right then?Last edited by trdninstyle; 10-26-2022, 11:14 AM.
Comment
-
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
81 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
149 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
52 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
59 views
0 likes
|
Last Post
|

Comment