Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Question about trailing stops
Collapse
X
-
Go to the Reference Sample section of the forums and find the sample for OnOrderUpdate(). It will show you techniques that you can apply over to your case, but it is considered more advanced programming.
-
Originally posted by NinjaTrader_Josh View PostYes. Please see the reference sample for OnOrderUpdate() and OnExecution().
Leave a comment:
-
Yes. Please see the reference sample for OnOrderUpdate() and OnExecution().
Leave a comment:
-
Question about trailing stops
I am looking to have a setup for trailing stops that I get the feeling I will have to code on my own because it seems this logic doesn't exist at the broker level (my broker is IB).
I want to set the stop for a losing position to be say 10 ticks, and I want a trailing stop for the winning position to be 10 ticks as well. But what happens is that if the position goes up 8 from time of entry, and then falls -2 below where I entered, it sees it as having fallen 10 from the high, and closes it -2 below. But my logic never wants to close when its down by less than 10.
So will I have to code this by hand or is there a way to set up this order logic with Ninja Script and my broker's order types?Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by trilliantrader, 04-18-2024, 08:16 AM
|
5 responses
22 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by Davidtowleii, Today, 12:15 AM
|
0 responses
3 views
0 likes
|
Last Post
by Davidtowleii
Today, 12:15 AM
|
||
Started by guillembm, Yesterday, 11:25 AM
|
2 responses
9 views
0 likes
|
Last Post
by guillembm
Yesterday, 11:58 PM
|
||
Started by junkone, 04-21-2024, 07:17 AM
|
9 responses
70 views
0 likes
|
Last Post
by jeronymite
Yesterday, 11:51 PM
|
||
Started by mgco4you, Yesterday, 09:46 PM
|
1 response
14 views
0 likes
|
Last Post Yesterday, 09:56 PM |
Leave a comment: