Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

beta 5 MR

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

    beta 5 MR

    thanks for adding Unrealized to the Strategies tab

    unfortunately with this version Realized now does not show anything and neither does the new Unrealized

    also, the PnL in DOM does not match the PnL retrieved via code

    this is all in MarketReplay

    #2
    ATI user,

    The PnL columns only update with real-time trades.

    How are you viewing it on the DOM? What are you using to print via code?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I am using GetAccountValue(AccountItem.CashValue) to retrieve via code

      the DOM shows PnL when flat and net of commissions is checked to should be equal...actually sometimes it is ....most often not

      Comment


        #4
        ATI user,

        Please check what you see in the Positions tab as opposed to the DOM.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Positions tab shows nothing when flat

          I am referring to PnL when flat

          DOM -103
          acct tab realized -103
          code -93

          not consistent....sometimes code matches acct tab....other times DOM does

          Comment


            #6
            Check your CalculateOnBarClose settings. It is possible you simply aren't updating as often as the accounts tab.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              always set to False

              never calc at close of bar

              Comment


                #8
                Can you please provide simple as possible script I can use to reproduce? Thanks.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  code should not make any difference....however I will test SampleAtmStrategy next anyway

                  note pics

                  Account tab shows different cash value profit (opening bal 10000 profit 212) while Realized is 134

                  Code picks up cash value....DOM picks up Realized

                  regardless of what my code does, should not the profit and Realized be equal in the Accounts tab?

                  also Strategies tab does not show any Realized for the strat that is still enabled and now Flat
                  Attached Files

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  607 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  353 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  105 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  560 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  561 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X