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

Lastplayback function from Dll interface

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

    Lastplayback function from Dll interface

    Hi,
    I'm a proprietary trader and I'm trying to test NT7.

    I'm using the external data feed and sending price to NT7 via a c# client using : Last function.
    It is working fine.

    1/ I'm trying now to use LastPlayBack function like that :

    NTclient.LastPlayback("Key", 4869.79, 1,"20080131173000")); //yyyyMMddhhmmss
    NTclient.LastPlayback("Key", 5000, 1,"20080228173000"));

    Those 2 datas are recorded but with the wrong timestamp. It is recording with the current datetime.

    Does anyone experiencing the same issue?

    2/ I also noticed that I have to initialize the new timeserie with at least one call of Last function.
    After taht, LastPlayback can record prices.

    3/ Last little question:
    For this, External Data Feed need to be connected. I mean from NT7 GUI.
    Is there a way to automatically connect External data feed when NT7 starts?

    Thanks for your help.

    #2
    SirHC, you could unfortunately not autoConnect to the External Feed - thanks for the suggestion.

    I'm not sure I follow you here, the LastPlayback function would only be used for synchronizing to your external source, for feeding the price then the Last is used.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      I mean:

      Last is used to feed the last price from my program to NT7.

      LastPlayback is for feeding every historical prices (past prices) from my program to NT7.

      If this is correct, timestamp (20080228173000) I'm sending with LastPlayBack is not recorded correctly.

      Comment


        #4
        SirHC, the playback functions are not used to feed historical data into the application - they are provided to set the sync timestamp for the market data.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          I'm not sure to understand how and when to use LastPlayBack.

          Can you give me a concrete exemple, please?

          Comment


            #6
            As support is limited in this area we would unfortunately not have a full working sample available, however you might want to look into this thread and the kindly shared application by a fellow forum user here -

            BertrandNinjaTrader Customer Service

            Comment


              #7
              Thank you for this exemple.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by itrader46, Today, 09:04 AM
              0 responses
              1 view
              0 likes
              Last Post itrader46  
              Started by timmbbo, Today, 08:59 AM
              0 responses
              1 view
              0 likes
              Last Post timmbbo
              by timmbbo
               
              Started by bmartz, 03-12-2024, 06:12 AM
              5 responses
              33 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Started by Aviram Y, Today, 05:29 AM
              4 responses
              14 views
              0 likes
              Last Post Aviram Y  
              Started by algospoke, 04-17-2024, 06:40 PM
              3 responses
              28 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X