Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No money going in Realized P&L when trade closes

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

    No money going in Realized P&L when trade closes

    It seems that no money is being shown in the realized column of control center upon closing out of a trade.

    #2
    Which column?

    - Accounts tab
    - Strategies tab

    If Strategies tab, is it a NinjaScript strategy or ATM strategy

    Thanks
    RayNinjaTrader Customer Service

    Comment


      #3
      ending ninjascript

      I am talking about closed trades from a ninjascript strategy not appearing in the Realized column under the Strategies tab.

      Comment


        #4
        Thanks for the clarification.

        I created a new strategy with only the following code in OnBarUpdate()

        Code:
        if (Historical)
            return;
        
        EnterLong();
        ExitLong();
        I ran it in real-time on a 20 second chart. On each closed trade the "Realized" column under the Strategies tab updates --> Working as expected in this situation.

        If you have a reproducible scenario that would be great.
        RayNinjaTrader Customer Service

        Comment


          #5
          No Results showing in Realized p&L for Currency Trading

          This is to confirm that there are no results showing in Realized P&L under the Strategies Tab or the Account Tab for Currency Strategy trading.
          This apparently is preventing the following code from working:

          if (Position.MarketPosition == MarketPosition.Long && Position.GetProfitLoss(Close[0], PerformanceUnit.Currency) + Performance.RealtimeTrades.TradesPerformance.Curre ncy.CumProfit > 100)
          ExitLong(
          "lg");
          return;

          Comment


            #6
            After further investigation, it seems that there is no problem. Are you on MBT FX? If yes, please increase your order quantity.

            1 = 1.
            10,000 = 1 MBT lot = 10,000 in notional value etc...
            RayNinjaTrader Customer Service

            Comment


              #7
              No Results showing in Realized p&L for Currency Trading

              I am on Gain, and I can assure you that no results are showing in Realized P&L under Strategies TAb or Account tab.

              Comment


                #8
                I am not disputing that you do not see any results.

                Please change your quantity to a value of 100,000 and see if it makes a difference.

                Thanks.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  Disregard my last request on testing with 100,000. Will come back to you after I run some tests with GAIN.
                  RayNinjaTrader Customer Service

                  Comment


                    #10
                    No Results showing in Realized p&L for Currency Trading

                    Using 100,000 for quantity seems to get the money right in Realized P&L for Accounts tab, but wild looking numbers in Unrealized P&L.

                    Comment


                      #11
                      We will have this resolved in Beta3. You will need to place orders on GAIN in simulation for 100,000 = 100,000. When trading GAIN live, 1 = your lot size, either a mini lot of 10,000 or standard lot of 100,000.
                      RayNinjaTrader Customer Service

                      Comment


                        #12
                        No Results showing in Realized p&L for Currency Trading

                        When do you expect to have Beta 3 available?

                        Comment


                          #13
                          It is currently available - http://www.ninjatrader-support.com/v...ead.php?t=3994
                          RayNinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Tin34, Today, 03:30 AM
                          2 responses
                          15 views
                          0 likes
                          Last Post Tin34
                          by Tin34
                           
                          Started by sastrades, Yesterday, 09:59 AM
                          2 responses
                          29 views
                          0 likes
                          Last Post brucerobinson  
                          Started by ETFVoyageur, Today, 12:52 AM
                          1 response
                          15 views
                          0 likes
                          Last Post Leeroy_Jenkins  
                          Started by lollers, Today, 03:26 AM
                          0 responses
                          10 views
                          0 likes
                          Last Post lollers
                          by lollers
                           
                          Started by aliyahany, Today, 03:16 AM
                          0 responses
                          2 views
                          0 likes
                          Last Post aliyahany  
                          Working...
                          X