Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem in Exiting Position

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

    Problem in Exiting Position

    The above problem happens in real time only.

    My rules for exiting the position is not trigger before a new entry position, it will exit where a specific condition is meet. My strategy can only work in the backtest situtation, when in real time, the position will still be closed when the condition is met, but Ninja Trader will also close the position once again right before a new entry signal, (the signal name is "close position") ie. the position has exited TWICE.

    #2
    imported post

    Not sure I follow. NT should not exit the same position twice, since this will bring you to the other side of the market.

    Please attach a simple as possible strategy in order to reproduce the issue.

    Comment


      #3
      imported post

      SO.. that's the problem~



      I have send you the snapshot of my screen for your kind attention.



      Thanks

      Comment


        #4
        imported post

        Great. Please see below, I would need simple as possible startegy in order to reproduce.

        Comment


          #5
          imported post

          Please make sure you either post screenshot and strategy here or send it to "dierk AT ninjatrader DOT com".

          Comment


            #6
            imported post

            The signals buy to cover is correct, while the 2 close positions are not ... they juz happened before the new entry~



            thanks
            Attached Files

            Comment


              #7
              imported post

              To clarify (you posted this under ATM strategy section): Is this a discretionary strategy which you trade on the DOM or a self coded NinjaScript strategy?

              Comment


                #8
                imported post

                Mine is C# self coded NinjaScript strategy.

                Comment


                  #9
                  imported post

                  Ok, so here is what you should try as well: Set TraceOrders=true in your Initialize method of your simplified strategy to trace your signals (please consult the docs for details).

                  Comment


                    #10
                    imported post

                    what is the purpose of that? How to solve the problem~??



                    THanks

                    Comment


                      #11
                      imported post

                      TraceOrders=true allows you trace which signals your strategy generated. This could give you an idea if there is an coding issue with your strategy.

                      Comment


                        #12
                        imported post


                        if the signal name of entry (buy) and the name of the exitlong are the same .. shouldn't the exitlong just exit the buy trade.. but there is still another signal of close position afterwards

                        Comment


                          #13
                          imported post

                          Again, I would want to suggest that you attach a simple as possible version of your strategy to your post.

                          Also:
                          - in your problem reproducible?
                          - which instrument is this?
                          - which feed/broker are you connected to?
                          - which time series (1 minute? else?) are you running your strategy on?
                          - please post a screenshot of your strategy settings

                          Comment


                            #14
                            imported post

                            Actually the problem do occur in every market I tested.


                            Attached Files

                            Comment


                              #15
                              imported post

                              Please provide the info as requested or I can not follow up. Thanks

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by jeronymite, 04-12-2024, 04:26 PM
                              3 responses
                              43 views
                              0 likes
                              Last Post jeronymite  
                              Started by frankthearm, Today, 09:08 AM
                              4 responses
                              9 views
                              0 likes
                              Last Post frankthearm  
                              Started by yertle, Today, 08:38 AM
                              5 responses
                              15 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Started by adeelshahzad, Today, 03:54 AM
                              3 responses
                              16 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Started by bill2023, Yesterday, 08:51 AM
                              6 responses
                              27 views
                              0 likes
                              Last Post NinjaTrader_Erick  
                              Working...
                              X