Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

move stoplosses

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

    move stoplosses

    Hello,

    when working with auto-strategies it occurs that I need to move stoplosses. It happened today that I moved stoploss but few seconds later the stoploss was pulled back to the posiiton from where I moved it away.

    Does this happen wiht setstoploss and using a strategy? Or when using settrailstop? Or isn´t it possible anyway to move the stoploss of the strategy? If so, what is the reaction time that the stoploss(es) is/are pulled back?

    Thanks
    Tony

    #2
    Hi Tony,

    How are you moving stop losses? Through code or manually in a different chart or order entry screen?
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hello Ryan,

      thank you for your prompt reply - great support as usual with NinjaTrader!

      The stoploss is defined in the strategy (initial stoploss and then move to entry price eg after 90 ticks).

      But when price is in my direction I want to pull stoploss manually closer to actual price for not giving back profits when price falls back to entry-price.

      I can move with chart-trader but few seconds later it moves back "from ghost-hand" to where I took it away.

      Best
      Tony

      Comment


        #4
        The strategy code will continue to set the value of the stop loss, even if you manually move it. If you want manual adjustments to stop losses after an automated entry, you can use the NinjaScript > ATM model for this.

        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thank you!

          Comment


            #6
            Ryan,

            it seems that only ATM-strategies (like to "build" in chart-trader) can be moved stoplosses? Or also strategies with conditions created in strategy-analyzer?

            Thanks
            Tony

            Comment


              #7
              Strategies will set the level of stop loss orders, unless you integrate an ATM strategy into the NinjaScript strategy.

              The use model for creating an ATM Strategy within a NinjaScript Strategy is when you want to programmatically monitor and generate an entry signal and then manualy manage the resulting open position via an ATM Strategy in one of NinjaTrader's order entry windows.
              Ryan M.NinjaTrader Customer Service

              Comment


                #8
                So, I understand that I can code in the strategy that the stoplosses are managed by ATM-strategy (so that I can move the stoplosses with chart-trader, which I couldn´t do when stoplosses managed by strategy) and the exit-conditions (NOT profit-targets, as in this case I could do all as ATM and don´t need a strategy) work with the coded strategy.

                Is that right or some misunderstanding on my end?

                And if so do you have a sample how to do ATM-strategy within a coded strategy (like your samplepricemodification or samplemultiinstrument....)?

                Thanks
                Tony
                Last edited by tonynt; 06-03-2011, 01:27 PM. Reason: typing error

                Comment


                  #9
                  Yes, your understanding is correct. The ATM sample is built into the platform. Click Tools > Edit NinjaScript > Strategy > SampleAtmStrategy

                  Ryan M.NinjaTrader Customer Service

                  Comment


                    #10
                    Hi Ryan,

                    thanks for all the support. Have a great weekend!

                    Another hint at this opportunity - if posts would be assorted most recent post at bottom (I think this occurs sometimes in threads) then this makes it more easier and faster to reply as one doesn´t need to scroll up where last post is to answer correctly.

                    Best
                    Tony

                    Comment


                      #11
                      Thanks, Tony. I agree and have set up my forum display to work this way.

                      Click User CP on the forum toolbar.
                      Edit Options
                      Under Thread Display Mode, change to Linear - Oldest first.

                      Hope that trick helps you out. Thanks - Have a great weekend!
                      Ryan M.NinjaTrader Customer Service

                      Comment


                        #12
                        Hi Ryan,

                        sorry for asking again now;-)

                        The ATM-strategies are easy to do, also strategy-development and coding is easy already. But how can I join both? Checking the sampleatmstrategy I don´t see where I can code my exit conditions. Sorry!

                        Thanks
                        Tony
                        Last edited by tonynt; 06-03-2011, 03:34 PM. Reason: wrong translation into english

                        Comment


                          #13
                          It's similar. Define your exit conditions but then use the AtmStrategyClose() method instead of ExitLong, ExitShort.



                          Ryan M.NinjaTrader Customer Service

                          Comment


                            #14
                            Hi Ryan,

                            sorry for causing some misunderstanding - already midnight here;-)

                            What I mean is not - if I understand right your reply - how to manage the ATMStrategyClose but I mean

                            * WHERE to code the exit conditions in the strategy - not with ATM as I want to have exits with conditions and not fixed profittargets as in ATM? (in help guide using atm strategies there is not a sample how to do the exits - or are the "strategy-coded-exits" not important and not referred by the ATM?

                            * which strings in the sampleatmstrategy (eg) are "samples" and which are the core and necessary to join with an ATM? I can´t understand this sample as there are no "normal" entries and exits defined. Isn´t there another sample?

                            Thanks
                            Tony
                            Last edited by tonynt; 06-03-2011, 04:35 PM. Reason: correction question

                            Comment


                              #15
                              The sample has a lot to it and most all of it is required for a working NS > ATM solution. About the only part that is not required is the change stop target block.

                              The entry condition is simple: Close[0] > Open[0]

                              The sample does not have explicit exit conditions. The only exits are determined by the target and stop loss defined within the ATM strategy. You can define your own exits conditions if you want, and use the AtmStrategyClose() call to programatically close an ATM strategy.

                              Since there's a lot to it, you should try first to get it submitting orders with a simple ATM strategy attached. Once things work as you expect, add additional layers of complexity like separate exit conditions.
                              Last edited by NinjaTrader_RyanM1; 06-03-2011, 04:50 PM.
                              Ryan M.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Vilavani, Today, 01:08 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post Vilavani  
                              Started by Playdc, Today, 12:38 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post Playdc
                              by Playdc
                               
                              Started by Mykro, 12-04-2024, 10:18 AM
                              2 responses
                              14 views
                              1 like
                              Last Post GrumpyDude  
                              Started by DerkWehler, 12-04-2024, 09:00 AM
                              3 responses
                              29 views
                              2 likes
                              Last Post GrumpyDude  
                              Started by Blaze212, 12-04-2024, 10:05 PM
                              2 responses
                              23 views
                              0 likes
                              Last Post Blaze212  
                              Working...
                              X