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

market replay connection

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

    market replay connection

    Hi

    How can I know if my connection is market replay?

    THanks

    #2
    Hello kiss987,

    Thanks for writing in.

    You can hover over the green connection circle in the bottom left hand corner of the screen or view your connections menu in the control center window to see who you are connected to.

    Please let me know if I may be of any further assistance.
    Alan S.NinjaTrader Customer Service

    Comment


      #3
      I meant ,how do i do that by code

      Thanks

      Comment


        #4
        Hello kiss987,

        There are a couple ways this can be done.

        One way would be to subscribe to account item events for the Playback101 account. Another way would be to subscribe to account status events and look for the "Playback" connection.

        I've attached an example indicator demonstrating how these events can be used. I have also provided publicly available documentation below.

        AccountItemUpdate - https://ninjatrader.com/support/help...itemupdate.htm
        AccountStatusUpdate - https://ninjatrader.com/support/help...atusupdate.htm
        Connection - https://ninjatrader.com/support/help...connection.htm

        If there is anything else we can do to help, please let us know.
        Attached Files
        JimNinjaTrader Customer Service

        Comment


          #5
          Thank you for your reply.

          Isn't there a simpler way? On NT7 there was Account.Mode or Bars.MarketData.Connection.Options.Provider

          Comment


            #6
            Hello kiss987,

            As far as supported and documented ways go, this is what would be available.

            You could try checking if Cbi.Connection.PlaybackConnection is not null, however this wouldn't be a documented/supported item and may change.
            JimNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Kaledus, Today, 01:29 PM
            0 responses
            3 views
            0 likes
            Last Post Kaledus
            by Kaledus
             
            Started by PaulMohn, Today, 12:36 PM
            1 response
            16 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by yertle, Yesterday, 08:38 AM
            8 responses
            37 views
            0 likes
            Last Post ryjoga
            by ryjoga
             
            Started by rdtdale, Today, 01:02 PM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by alifarahani, Today, 09:40 AM
            3 responses
            19 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X