Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit/entry Position reversed

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

    Exit/entry Position reversed

    Hi!
    I discovered now (after days of attempts) that nt7 in this script confuse the exit signal with entry...
    So, like in image attached I have target that close position 1 tick above new entry signal (for the short side), but ninja seems reverse 2 signals in backtest, in a nonsense way..also for long.
    this caused me a lot of problem, because when new position is open the opposite entry order is not null and make issues in stop and target placement...
    I use unmanaged approach.
    can you help me??
    Attached Files
    Last edited by kantkant2; 04-16-2018, 05:28 AM.

    #2
    Hello kantkant2,

    Thanks for your posts.

    For debugging, are you using print statements to clarify what is happening in your script? If not that is the best place to start and here is a link to our debugging tips: https://ninjatrader.com/support/foru...ead.php?t=3418

    Comment


      #3
      Yes, I use also traceorder, but I have no idea of what's happens this time... have you some suggestion for this behaviour?
      thanks

      Comment


        #4
        Hello kantkant2,

        Thanks for your reply.

        The managed approach uses the signal names to tie the visual and reporting with the signal names. In the unmanaged approach the signal names are not used to tie entry/exit together so your strategy is subject to first in first out processing.

        You might consider using separate strategies if multiple positions will be taken on the instrument and account, in this way you can view the strategy performance on the chart and in the strategy performance windows to see the strategy entry/exits.

        Comment


          #5
          Ok thanks, but it is a big problem.....
          I use unmanaged to avoid 2 separate strategies...
          So, in real time it should not occur, if I understand well...
          And also, first in first out logic is respected when my target fills BEFORE my new entry, and I don't know why thi happens...
          Sorry, but is more than a week that I am tyring to solve this...
          Sorry for my english..
          Last edited by kantkant2; 04-16-2018, 06:41 AM.

          Comment


            #6
            Hello kantkant2,

            Thanks for your reply.

            Can you advise if your observations are based on Historical data only or do you see this on real-time as well?

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            630 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            566 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X