Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Catching up to strategy in progress

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

    Catching up to strategy in progress

    I have a strategy that initiates a trade using trailing stop losses and at points along the way adjust those stop losses. when the strategy is first loaded it is in progress. If I catch up by say buying 1 Long how do i 1)set the trail stop loss and 2)will the strategy exit the position i bought manually and cancel the manually entered trail stop loss when the strategy hits my exit signal (ExitLong)?.

    Thank you,
    Howie

    #2
    Not sure I follow, but here is some info
    - right now you can not sync a NinjaScript strategy with any trade placed manually. Trades placed manually run outside any NinjaScript strategy.
    - ExitLong will cancel any pending trail stop order on the same position

    Comment


      #3
      can you tell me how can i manually through DOM or chart place a trailing stop order?

      Comment


        #4
        and, if a strategy enters a position and has orders oco outstanding... then the system is rebooted and the strategies restarted.... are the positions and pending orders under the strategies controll still?

        Comment


          #5
          You can not manually place a trail stop order in the DOM.
          Strategies are not recovered after NT restart, you have to restart the strategy.
          RayNinjaTrader Customer Service

          Comment


            #6
            Ray, when i restart the strategy will it manage the orders and positions it was managing before the restart?

            Comment


              #7
              No it will not.
              RayNinjaTrader Customer Service

              Comment


                #8
                Is the only advice for long term strategy to make sure it keeps running? Is it possible to write a program(script) to find out the status of orders placed prior to the reset? Thanks for your time Ray, Howie

                Comment


                  #9
                  At this time that is correct. We do plan to review our approach to persisting strategies across sesions in later this year. There is no way to associate past orders to a new instance of a strategy.
                  RayNinjaTrader Customer Service

                  Comment


                    #10
                    No Problem Ray, I really should make those decisions at time of entry anyway. I got the signals down great using NT and NT is my strategy for long term positioning. I'd settle for the Strategy Analyzer interface of testing folders of instruments for the live strategy tab.

                    Comment


                      #11
                      in re: to strategy managed orders... when i call up the chart for the position taken by the strategy i can see everything set by the strategy. i can stop the strategy and now manage/control the rest of the position myself. Because i have optioned to not exit position/orders on strategy exits, this is correct?
                      If the strategy is still running, i do not have control of the position and any changes i make on the chart to TP and SL may be changed back to where the strategy set them, this is correct?
                      My trailing stop orders and take profits set by NT reside on the GAIN server at the time the position is taken and each time they are changed in onBarUpdate, is this correct?
                      How can I manage Trailing Stops set programatically? Can I drag them on the chart?
                      Thanks again for the help Ray
                      Howie

                      Comment


                        #12
                        Because i have optioned to not exit position/orders on strategy exits, this is correct?
                        >>> This is correct.


                        If the strategy is still running, i do not have control of the position and any changes i make on the chart to TP and SL may be changed back to where the strategy set them, this is correct?
                        >>> If you change data series of a chart with a running strategy, it will (I believe) terminate and restart the strategy with the new chart data series.

                        My trailing stop orders and take profits set by NT reside on the GAIN server at the time the position is taken and each time they are changed in onBarUpdate, is this correct?
                        >>> This is correct.

                        How can I manage Trailing Stops set programatically? Can I drag them on the chart?
                        >>> You can but you will see unexpected behaviour when the strategy modifies the price of the order to the price the strategy calculates it to be at on the close of each bar.
                        RayNinjaTrader Customer Service

                        Comment


                          #13
                          Thank you. When you say i will see unexpected adjustment of the trail stop by the strategy, are you refering to my strategy or the strategy used by NT to display the draggable trailing stop loss? is it trailing at gain or by NT? if i drag it does it send a change to GAIN and the trailstop adjusted? again, all after mycustom strategy is terminated.
                          thanks,
                          howie

                          Comment


                            #14
                            This depends.

                            What initiated the trailing stop?
                            NinjaScript Strategy SetTrailStop() or the ATM trailing stop?
                            RayNinjaTrader Customer Service

                            Comment


                              #15
                              Senario would be myCustom NT Script does a SetTrailStop and SetTargetProfit, Then the system is rebooted and myCustom NT Sctript is no longer in control. Can I bring up a chart, click on Chart Trader, and drag the take profits and Trailing Stop Losses set by myCustomStrategy? Will Chart Trader respect the Trailing Stops and send trailing stop order modifications to GAIN server when i drag them under Chart Trader?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              576 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              334 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              101 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              553 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              551 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X