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

Going from a Stop Loss to a Trailing Stop within a strategy

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

    #16
    Yes, every change in level 1 market data.
    RayNinjaTrader Customer Service

    Comment


      #17
      Forgot...this method is NOT called in a backtest, only real-time.
      RayNinjaTrader Customer Service

      Comment


        #18
        Yes sir.

        Last question for the night.

        If I want to set a 10 pip stop ...

        SetStopLoss(CalculationMode.Ticks, 100);

        Correct?
        mrlogik
        NinjaTrader Ecosystem Vendor - Purelogik Trading

        Comment


          #19
          Do 10 instead of 100. In your Instrument Manager your instruments should have a place for TickSize. They are generally set to 1pip so you would want 10 ticks for 10 pips. Double check your Instrument Manager beforehand to ensure you are on the right value though.
          Josh P.NinjaTrader Customer Service

          Comment


            #20
            Hey Josh,

            I have my TickSize set to .00001 (fractional pip) for EURUSD, so I think I need to do 100. I guess I could change that to .0001 and do 10 as well.

            Question. When placing my SetStopLoss(), I read you should reset it when you're flat. Can I reset it back to my origional setting right before I place a new entry order, or does this need to be done after my entry order is filled?

            Thanks
            mrlogik
            NinjaTrader Ecosystem Vendor - Purelogik Trading

            Comment


              #21
              You can do it right before.

              You may also want to just try your SetStopLoss() out in the Strategy Analyzer to see if it is submitting orders that you find suitable if you decide to play with the TickSize.
              Josh P.NinjaTrader Customer Service

              Comment


                #22
                I agree, thats a good idea.

                Thanks for your help Josh.

                Anthony
                mrlogik
                NinjaTrader Ecosystem Vendor - Purelogik Trading

                Comment


                  #23
                  DO NOT change tick size in the Instrument Manager. Depending on your provider, 10 may be 10 or may be 100 or may even be 50. Please check the Connection Guide on our website for your provider to determine if Tools > Options > Misc, FX Quote property should be set to Pip, 1/2 pip or tenth pip.
                  RayNinjaTrader Customer Service

                  Comment


                    #24
                    Hey Ray.

                    I have decided to leave everything alone as I want TickSize (with MBTrading) to be a fracion of a pip (the smallest possible change in value).

                    Thank you for your direction.

                    Anthony
                    mrlogik
                    NinjaTrader Ecosystem Vendor - Purelogik Trading

                    Comment


                      #25
                      Then it should be set to 1/10 pip and send in 100 for a 10 pip stop loss etc...
                      RayNinjaTrader Customer Service

                      Comment


                        #26
                        Hi Josh,

                        i can't open the link with the IOorder sample, can you post it once more, always tells me this "No Thread specified. If you followed a valid link, please notify the administrator" thx
                        Last edited by deralex; 03-24-2009, 12:40 PM.

                        Comment


                          #27
                          This one? http://www.ninjatrader-support2.com/...ead.php?t=7499
                          Josh P.NinjaTrader Customer Service

                          Comment


                            #28
                            thx for the fast reply. i think it is the wrong one, i was a bit unprecise, the old link goes like thishttp://www.ninjatrader-support.com/v...ead.php?t=3917
                            my problem is actually the same sidharta described concerning trailingstopps and stopp loss.

                            Comment


                              #29
                              That link is the same as the one I posted in my previous post. You need to modify your stops manually to mimic the trailing stop behavior you want. For an idea of how to calculate your own trailing stop prices please see post 9 and 11 on this thread: http://www.ninjatrader-support2.com/...ad.php?t=10344
                              Josh P.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Tin34, Today, 03:30 AM
                              2 responses
                              20 views
                              0 likes
                              Last Post Tin34
                              by Tin34
                               
                              Started by sastrades, Yesterday, 09:59 AM
                              2 responses
                              33 views
                              0 likes
                              Last Post brucerobinson  
                              Started by ETFVoyageur, Today, 12:52 AM
                              1 response
                              17 views
                              0 likes
                              Last Post Leeroy_Jenkins  
                              Started by lollers, Today, 03:26 AM
                              0 responses
                              12 views
                              0 likes
                              Last Post lollers
                              by lollers
                               
                              Started by aliyahany, Today, 03:16 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post aliyahany  
                              Working...
                              X