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!
See more
See less

Partner 728x90

Collapse

TrailStop Strategy builder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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
    Thanks

    #2
    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

    Comment


      #3
      ok, thanks for reply

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by BarzTrading, Today, 07:25 AM
      2 responses
      14 views
      1 like
      Last Post BarzTrading  
      Started by devatechnologies, 04-14-2024, 02:58 PM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by tkaboris, Today, 08:01 AM
      0 responses
      3 views
      0 likes
      Last Post tkaboris  
      Started by EB Worx, 04-04-2023, 02:34 AM
      7 responses
      162 views
      0 likes
      Last Post VFI26
      by VFI26
       
      Started by Mizzouman1, Today, 07:35 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X