Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AllTrades vs RealtimeTrades

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

    AllTrades vs RealtimeTrades

    Hello,

    What is the difference between
    Performance.RealtimeTrades and
    Performance.AllTrades?

    #2
    tamas, AllTrades includes realtime and historical trades, RealtimeTrades only the realtime ones.



    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      tamas, AllTrades includes realtime and historical trades, RealtimeTrades only the realtime ones.
      Bertrand, thank you, i thought the same, i just wanted to be sure. One more question: do RealtimeTrades datas use datas from the broker or or its NT's calculated datas? I ask it, because, i use my own varibles in backtest plus NT performance datas, do i have to use these during live trading or i can use the broker's performance datas.

      Thank you in advance

      Comment


        #4
        All Performance class data is internally NinjaTrader generated data, same as you would for example see in the Strategy Analyzer.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          All Performance class data is internally NinjaTrader generated data, same as you would for example see in the Strategy Analyzer.
          Absolutelly clear, thank you

          Comment


            #6
            What are real-time trades? Are they the trades happening for today?

            For example, if I want to know the trades information for today, I just use RealTime trades?

            But in the example code to see if there are three losers for today, it doesn't use RealTime trades, instead it calculates from the all time trades... so I am kind of confused...

            Comment


              #7
              ShadowKnows, the realtime trades would the trades since you've started the specifc instance, not only for today though, so it's not a session based count. That's why you have to store where you're at in the sample at your beginning via AllTrades, since that would be containing historical info as well.

              Comment


                #8
                What if I only want the current open position..

                Comment


                  #9
                  You can then work with the Position object in NinjaScript - http://www.ninjatrader.com/support/h...7/position.htm

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  633 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  364 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
                  567 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  568 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X