• 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, 04: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
    Paul H.NinjaTrader 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.
        Paul H.NinjaTrader 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, 05: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?
            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by 3lliot, Today, 01:00 AM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_EricB  
            Started by JohnSteinberg, Yesterday, 04:19 AM
            0 responses
            17 views
            0 likes
            Last Post JohnSteinberg  
            Started by herben31, Yesterday, 03:00 PM
            0 responses
            26 views
            0 likes
            Last Post herben31  
            Started by ruedigold, Yesterday, 04:53 AM
            2 responses
            11 views
            0 likes
            Last Post sledge
            by sledge
             
            Started by fredfred123, 12-28-2016, 08:56 AM
            8 responses
            1,150 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X