Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RealTimeTrades - Conditions that generate data

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

    RealTimeTrades - Conditions that generate data

    What conditions will generate RealTimeTrades in SystemPerformance.RealTimeTrades? Assuming state.RealTime of course. Is it required to be on a live trading account, or can it be on a simulation account? What is the best way to access system performance to pull trades out of it?


    #2
    Hello parkinsonbr,

    The realtimes trades collection holds all trades the strategy placed during State.Realtime. A trade is a entry + exit. That is for the selected account and can be a sim account. You can see an example of using the realtime trades collection here: https://ninjatrader.com/support/help...ancevalues.htm

    Comment


      #3
      Thanks for confirming Jesse. Would these also generate during market replay, or when we use a simulated data feed as connection types?

      Comment


        #4
        Hello parkinsonbr,

        That collection would populate for any realtime mode which would include playback or simulated data feed.

        Comment


          #5
          Great thanks for confirming.

          Comment


            #6
            If a trade is in state.historical and then transistions to state.realtime, does it get added to the realtimetrades dictionary upon completion of the trade?

            Comment


              #7
              Hello parkinsonbr,

              Yes if the order fills in realtime it would be considered a realtime order. If you mean by trade that this hypothetical order is an Exit then there is also a note about this here:

              https://ninjatrader.com/support/help...sub=realtimetr ades

              The first trade of the "RealTimeTrades" collection will contain a synthetic entry execution if the strategy was NOT flat at the time you start the strategy.​

              Comment


                #8
                Perfect thanks for confirming. Final question, is there guidance on how to create a trades object/dictionary for an addon when the addon is managing trades?

                Comment


                  #9
                  Hello parkinsonbr,

                  The trade performance information is only for strategies. You can see the following link for an unsupported workaround for addons.

                  I would like to augment the functionality of the chart trader buttons to include some database logging and a check of my prior trades before accepting the click event e.g. checking my recent trade history before actually submitting the order via the "Buy Market" or "Sell Market" buttons. Is there a way to

                  Comment


                    #10
                    Thanks Jesse! Also, can my vote be added to ID# SFT-3088? Thanks again!

                    Comment


                      #11
                      Hello parkinsonbr,

                      I have put in a vote.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by NullPointStrategies, Today, 05:17 AM
                      0 responses
                      52 views
                      0 likes
                      Last Post NullPointStrategies  
                      Started by argusthome, 03-08-2026, 10:06 AM
                      0 responses
                      130 views
                      0 likes
                      Last Post argusthome  
                      Started by NabilKhattabi, 03-06-2026, 11:18 AM
                      0 responses
                      70 views
                      0 likes
                      Last Post NabilKhattabi  
                      Started by Deep42, 03-06-2026, 12:28 AM
                      0 responses
                      43 views
                      0 likes
                      Last Post Deep42
                      by Deep42
                       
                      Started by TheRealMorford, 03-05-2026, 06:15 PM
                      0 responses
                      48 views
                      0 likes
                      Last Post TheRealMorford  
                      Working...
                      X