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 yertle, Yesterday, 08:38 AM
            7 responses
            28 views
            0 likes
            Last Post yertle
            by yertle
             
            Started by bmartz, 03-12-2024, 06:12 AM
            2 responses
            21 views
            0 likes
            Last Post bmartz
            by bmartz
             
            Started by funk10101, Today, 12:02 AM
            0 responses
            5 views
            0 likes
            Last Post funk10101  
            Started by gravdigaz6, Yesterday, 11:40 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by MarianApalaghiei, Yesterday, 10:49 PM
            3 responses
            11 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Working...
            X