• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    PaulNinjaTrader Customer Service

    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.
        PaulNinjaTrader Customer Service

        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?
            PaulNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by kiss987, 10-14-2018, 10:30 AM
            3 responses
            12 views
            0 likes
            Last Post music_p13  
            Started by music_p13, Today, 02:13 PM
            0 responses
            2 views
            0 likes
            Last Post music_p13  
            Started by music_p13, Today, 01:41 PM
            2 responses
            5 views
            0 likes
            Last Post music_p13  
            Started by Johnny, Today, 12:27 PM
            2 responses
            17 views
            0 likes
            Last Post Johnny
            by Johnny
             
            Started by Trader17, Today, 12:34 PM
            5 responses
            19 views
            0 likes
            Last Post NinjaTrader_JoshG  
            Working...
            X