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 TraderBCL, Today, 04:38 AM
            2 responses
            17 views
            0 likes
            Last Post TraderBCL  
            Started by martin70, 03-24-2023, 04:58 AM
            14 responses
            106 views
            0 likes
            Last Post martin70  
            Started by Radano, 06-10-2021, 01:40 AM
            19 responses
            609 views
            0 likes
            Last Post Radano
            by Radano
             
            Started by KenneGaray, Today, 03:48 AM
            0 responses
            5 views
            0 likes
            Last Post KenneGaray  
            Started by thanajo, 05-04-2021, 02:11 AM
            4 responses
            471 views
            0 likes
            Last Post tradingnasdaqprueba  
            Working...
            X