Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Trail stop at high of a pullback
Collapse
X
-
Trail stop at high of a pullback
I am trying to create a trailing stop for a strategy that will place the stop order (for a short position) at the high of a pullback plus 1 tick and the reverse for a long position. I have not been able to figure out how to determine the correct bar in the pullback. I have attached a screen shot showing which bar I am trying to identify.
ThanksTags: None
-
Seems you are looking for the Swing indicator that ships with NT? No?Originally posted by mlarocco View PostI am trying to create a trailing stop for a strategy that will place the stop order (for a short position) at the high of a pullback plus 1 tick and the reverse for a long position. I have not been able to figure out how to determine the correct bar in the pullback. I have attached a screen shot showing which bar I am trying to identify.
Thanks
-
I did an example for you.
and yes its a bit complex but it was my first idea on how to do it and i just went with it.
If you have questions regarding the code, just ask.
make sure also to use the right declarations when using this (line1)
tho i think i didnt make a mistake, it still is possible, but after all its just supposed to show the way it can be done. you have to do the rest from here.
EDIT: Note that with this version you would only start looking for retracements once you enter a position. so you cant access retracements b4 that point. if you wanna do that you would have to make a few changes, but i think if you understand how the code works, you can easily make your own adjustmentsAttached FilesLast edited by BigRo; 11-07-2015, 05:26 PM.
Comment
-
I'm no expert, but it seems to me that you can code this by accessingOriginally posted by mlarocco View PostThank you for taking the time to create this! I'll see how I can use it.
Swing(strength).SwingHigh[0]
or
Swing(strength).SwingLow[0]
in your code by placing exits N ticks above/below those.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
52 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
142 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment