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 samish18, 04-17-2024, 08:57 AM
            16 responses
            55 views
            0 likes
            Last Post samish18  
            Started by arvidvanstaey, Today, 02:19 PM
            3 responses
            9 views
            0 likes
            Last Post NinjaTrader_Zachary  
            Started by jordanq2, Today, 03:10 PM
            2 responses
            8 views
            0 likes
            Last Post jordanq2  
            Started by traderqz, Today, 12:06 AM
            10 responses
            18 views
            0 likes
            Last Post traderqz  
            Started by algospoke, 04-17-2024, 06:40 PM
            5 responses
            47 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X