Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by BarzTrading, Today, 07:25 AM
            2 responses
            21 views
            1 like
            Last Post BarzTrading  
            Started by devatechnologies, 04-14-2024, 02:58 PM
            3 responses
            20 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by tkaboris, Today, 08:01 AM
            0 responses
            4 views
            0 likes
            Last Post tkaboris  
            Started by EB Worx, 04-04-2023, 02:34 AM
            7 responses
            163 views
            0 likes
            Last Post VFI26
            by VFI26
             
            Started by Mizzouman1, Today, 07:35 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X