Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

using trail stop

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

    using trail stop

    hello all
    I'm new in using the program and i encountered a few problems .
    every time i'm trying to write a strategy using trail stop it wont work . its like the program just ignoring the trail can you help ?

    i don't know how to program so i'm using the wizard
    Attached Files

    #2
    Hi german87,

    Thanks for your post and welcome to the NinjaTrader forums!

    I noticed you are using enter long as the fromSignalName for the trail stop. Is this also the signalName of the entry order?

    May we also have a screenshot of the entry order in the Strategy Wizard?

    Is the entry order being filled as you run the strategy?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      yes the order is being made . but only once and it wont react to stop or trail rulls

      i have attached the screenshots

      thanks for the help
      Attached Files

      Comment


        #4
        Hi german87,

        May I test your strategy on my end?

        If so, please add an export of the script to your next post.

        To export your script do the following:
        1. Click File -> Utilities -> Export NinjaScript
        2. Enter a unique name for the file in the value for 'File name:'
        3. Select the strategy from the objects list on the left -> click the right facing arrow ">" to add the strategy to the export
        4. Click the 'Export' button -> click 'yes' to add any referenced indicators to the export -> click OK to clear the export location message


        By default your exported file will be in the following location:
        • (My) Documents/NinjaTrader 7/bin/Custom/ExportNinjaScript/<export_file_name.zip>


        Below is a link to the help guide on Exporting NinjaScripts.
        http://www.ninjatrader.com/support/h...nt7/export.htm
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          here is the exported strategy
          Attached Files

          Comment


            #6
            Hello german87,

            The percentage used here will be in decimal form.

            For example to have a stop loss at 1 percent use .01. To have a stop loss of 10 percent use .1. For 100 percent use 1.

            I found that even .01 is too large of number for the trade to exit. I found that using a stop loss of .001 (.1 percent) allowed for the trade to exit a few times using daily bars since the beginning of the year.

            Also, if SetStopLoss and SetTrailStop are used on the same order, SetTrailStop will be ignored and only SetStopLoss will be used.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              that explains a lot ,i tried it and it works ! thank you

              one other thing how can i use take profit not on the whole trade but for example : 50% take profit and 50% stop trail

              ilya

              Comment


                #8
                Hi german87,

                That would not be possible with one order.

                Instead I would recommend that you place two orders using separate signal names. Then you can have a separate stop loss and or profit target for each order.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  i understand

                  thanks for all the help

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  650 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  370 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  109 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  574 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  577 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X