Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MarketData Function not Updating During Market Replay

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

    MarketData Function not Updating During Market Replay

    I've written a .Net app that submits orders through ATI and I'm testing it using Market Replay. The only issue I'm having is that the MarketData function appears to return that last price correctly on the first call (as per the Market Replay data), but then continues to return that same price even after Market Replay has moved on to a different price. Is there a way to force NT/ATI to return the "current" last price as per the Market Replay? It probably works fine in the live market, but it would be REALLY nice if it worked the same in Market Replay.

    Thanks!

    // Follow-Up #1 - The MarketData function appears to be returning 603.94 during Market Replay regardless of how many times you call it.

    // Follow-Up #2 - This function returns 603.94 (for AAPL) in all cases. I even logged onto my live Interactive Brokers account and tryed it. Same result. Very strange since AAPL closed at 605.88 on Friday.
    Last edited by LeeMellinger; 07-08-2012, 04:43 PM.

    #2
    Hello,

    Thanks for the forum post.

    I'm checking on this for you will return shortly.

    -Brett

    Comment


      #3
      With your follow up 2 your saying that on a live account you are not getting the results you expect with live data from AAPL from market open? No market replay involved here?

      -Brett

      Comment


        #4
        Originally posted by NinjaTrader_Brett View Post
        With your follow up 2 your saying that on a live account you are not getting the results you expect with live data from AAPL from market open? No market replay involved here?

        -Brett
        Fixed! - I found a post that gave me a hint and I noticed that it seems to work in debug mode in VS. You need to wait about 1/2 second (500 mls) after calling SubscribeMarketData before calling MarketData. It seems to work consistently now.

        Comment


          #5
          Glad to hear.

          -Brett

          Comment


            #6
            BTW... The ATI is really an awesome feature in NT. It allows developers to create sophisticated standalone apps with functionality that cannot be developed in a Strategy. Would definitely like to see the ATI expanded...

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by zstheorist, Today, 07:52 PM
            0 responses
            3 views
            0 likes
            Last Post zstheorist  
            Started by pmachiraju, 11-01-2023, 04:46 AM
            8 responses
            149 views
            0 likes
            Last Post rehmans
            by rehmans
             
            Started by mattbsea, Today, 05:44 PM
            0 responses
            5 views
            0 likes
            Last Post mattbsea  
            Started by RideMe, 04-07-2024, 04:54 PM
            6 responses
            33 views
            0 likes
            Last Post RideMe
            by RideMe
             
            Started by tkaboris, Today, 05:13 PM
            0 responses
            5 views
            0 likes
            Last Post tkaboris  
            Working...
            X