Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Closes position on EnterLong() execution

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

    Closes position on EnterLong() execution

    On real time, this system closed a short position (on 9/23 16:45) on EnterLong() execution. Since then, trades seem to be displaced, trades begin on ExitLong/Short() and end on EnterLong/Short() (see trade on 9/26 11:45 - 9/26 12:30).(see attached image)
    Could anyone explain it, please?
    Thank you.
    The system contains something like:
    EnterLong(0,1,"Compra")
    EnterShort(0,1,"Venta")
    ExitLong(0,1,"Cierro compra","Compra")
    ExitShort(0,1,"Cierro venta","Venta")
    Attached Files

    #2
    Hello NoName,

    Welcome to the NinjaTrader forum! Unfortunately real time performance does not pair trades according to the signal names used in a strategy. All trades are paired with FIFO, even if they originate from an automated strategy.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      So realized PnL on strategies tab is different from real time performance by clicking right button Performance -> Realtime?

      Comment


        #4
        No, my response was about trade pairing. Generally PnL should be identical. Are you seeing different in your NinjaTrader?
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Yes, i'm seeing different realized PnL. You can see the rare operations on the image I sent you. The realized PnL on strategies tab matches the ("CierroCompra" - "Compra") sum while the realized PnL on Performance->Realtime matches the ("Compra" - "CierroCompra") sum

          Comment


            #6
            One explanation for this is that the strategies tab is dynamically updated with each trade, and the real time performance is only updated at the time you request the report. Do they match if you request a new real time performance report?
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              That's not the problem. I think the problem is induced by 'rare trades'.

              Comment


                #8
                NoName, from your original post it seems more like a syncronization issue as you restart the strategy - with which synching options are you working here?

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                110 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                59 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                37 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                41 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                78 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X