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

TrailBuilderExample

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

    TrailBuilderExample

    I have used your example of trail for lengths, and it works well ... I would like to use it also for shorts, but I don't know how to modify it.
    It doesn't work well for me.

    he usado su ejemple de trail para largos , y funciona bien... me gustaria usarlo tambien para cortos, pero no se como modificarlo.
    no me fuiciona bien.
    Attached Files

    #2
    Hello natan, thanks for your post.

    It looks like your stop loss and profit target prices are not correct for a short order. When you enter short, the stop loss needs to be above the entry price, and the profit target below the entry price. Every aspect of the long version of the trail builder script must be reversed to employ short orders.

    Kind regards.
    Chris L.NinjaTrader Customer Service

    Comment


      #3

      any guide on how to do it?
      I'm new and I can't reverse it

      Comment


        #4
        Hello natan, thanks for your reply.

        If you are just beginning in the strategy builder, this example is not the best place to start. We would consider this more of an advanced type of strategy. If you have not already, please read through the condition builder page of the help guide where building basic conditions are demonstrated:



        Unfortunately, I can not spend the time to convert the existing examples we have, this must be left as an exercise for the reader to convert any existing example to suit their needs.

        When you do want to tackle converting this example, consider building it from scratch so you know exactly how it works. Then build it from scratch again but in a Short design. The key component here is getting practice with the condition builder.

        Please let me know if you have any questions on this material.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by chbruno, Today, 04:10 PM
        0 responses
        3 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        6 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by frslvr, 04-11-2024, 07:26 AM
        9 responses
        127 views
        1 like
        Last Post caryc123  
        Working...
        X