• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 Abdullah_KSA, Yesterday, 12:52 PM
            6 responses
            38 views
            0 likes
            Last Post NinjaTrader_ChristopherD  
            Started by ZivGillat, 06-29-2020, 11:47 AM
            3 responses
            27 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by NinjaTrader_PaulH, Today, 01:48 PM
            0 responses
            6 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by NinjaTrader_PaulH, Today, 01:43 PM
            0 responses
            8 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by AnotherWorkingHomeless, Today, 12:56 PM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_Jim  
            Working...
            X