Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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

    JesseNinjaTrader Customer Service

    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.
        JesseNinjaTrader Customer Service

        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.​
              JesseNinjaTrader Customer Service

              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
                  JesseNinjaTrader Customer Service

                  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.
                      JesseNinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by ChartTourist, Today, 08:22 AM
                      0 responses
                      4 views
                      0 likes
                      Last Post ChartTourist  
                      Started by LiamTwine, Today, 08:10 AM
                      0 responses
                      2 views
                      0 likes
                      Last Post LiamTwine  
                      Started by Balage0922, Today, 07:38 AM
                      0 responses
                      5 views
                      0 likes
                      Last Post Balage0922  
                      Started by JoMoon2024, Today, 06:56 AM
                      0 responses
                      6 views
                      0 likes
                      Last Post JoMoon2024  
                      Started by Haiasi, 04-25-2024, 06:53 PM
                      2 responses
                      19 views
                      0 likes
                      Last Post Massinisa  
                      Working...
                      X