Thanks
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
TrailStop Strategy builder
Collapse
X
-
TrailStop Strategy builder
Hi, how can setup Trails stop in Strategy builder with similar functions the ATM? Example move it to break even each number of specific tics in price advance, or trail stop only move each number of specific tics in price advance
ThanksTags: None
-
Hello andarbe,
Thank you for the post.
This is generally a concept that is best left for manual coding as this does require the use of variables and additional logic. This would also not be as accurate in the builder because you are unable to access the individual average entry price of your entry and instead have the whole position average price.
Another problem with this in the builder specifically will be keeping the stop order active while updating it. because the builder uses the Managed Approach and you are unable to set LiveUntilCancelled on the orders, any condition you create to trail needs to become true on every bar for the order to remain uncancelled. The Set methods in the targets section do not apply to this rule which is why they are able to stay active.
If you would like to recreate ATM logic specifically, it may be suggested to instead manually code a strategy and use the ATM methods specifically. In a NinjaScript strategy, you can combine ATM strategies to manage targets from strategy submitted entries. The SampleATMStrategy that comes with NinjaTrader shows the syntax required, unfortunately, this is not available in the builder.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Waxavi, Today, 02:10 AM
|
0 responses
2 views
0 likes
|
Last Post
by Waxavi
Today, 02:10 AM
|
||
Started by TradeForge, Today, 02:09 AM
|
0 responses
2 views
0 likes
|
Last Post
by TradeForge
Today, 02:09 AM
|
||
Started by Waxavi, Today, 02:00 AM
|
0 responses
2 views
0 likes
|
Last Post
by Waxavi
Today, 02:00 AM
|
||
Started by elirion, Today, 01:36 AM
|
0 responses
4 views
0 likes
|
Last Post
by elirion
Today, 01:36 AM
|
||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
0 responses
4 views
0 likes
|
Last Post Today, 01:30 AM |
Comment