Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

External Data Feed for daily data

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

    External Data Feed for daily data

    Hello,

    I have a strategy that runs on custom daily instrument data and was looking for ways to automate this process instead of having to manually import this custom data on a daily basis.

    Using the ATI I was able to push my custom data to NT and consequently update the chart using the LastPlayBack function. I am actually pushing each day 4 values for the OHLC using the same timestamp to construct the daily bar (not sure if there is a better way to do this). This would automatically trigger the bar update event and the strategy would run for the day.

    That being said, I am having problems persisting/saving all the pushed data. I noticed that unless there is a strategy running, this data would not persist on the chart, i.e. if I close and reload the chart, all the pushed data would be gone. However, if I have a running strategy on the same instrument, closing and reloading a chart will still show all the pushed data. I checked the historical data and there was nothing there. Any idea where NT is saving this data?

    On the other hand, if I close NT, all pushed data is lost.
    I tried enabling the option "Save chart data as historical" but it's saving data under minute and tick data while I actually need daily data.

    Any help would be appreciated.

    Thanks

    #2
    silacitrader, welcome to our forums - your understanding here are unfortunately correct. The historical custom daily data you seek would need to be imported from your external source into NT's database, it would be the same for other connectivity options as well - we would only offer building this data from manually nimported tick / minute data. While your strategy script is running the received data would be held in an internal cache, however it's not converted to historical data in this case. I will note this item on our product enhancement lists to consider expanding supported ways in a future platform update.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Bertrand, thank you for your answer.
      Unfortunately it looks like I'm out of luck. Although the custom data I mentioned is nothing but the eod Dubai index (DFMGI) I can't seem to find a way to feed it to NinjaTrader (other than manual import). Maybe you might have an idea around this?

      Using LastPLayback and enabling the option "Save chart data as historical" is saving historical data under minutes. Maybe an overloaded LastPlayback function with a daily timestamp would be a good consideration for future updates.

      Again, thanks for your help

      Comment


        #4
        silacitrader, I have saved your helpful suggestion in our product enhancement listings so it could be considered going forward.

        For the current moment I would unfortunately not have any workaround in mind working directly with daily bars.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Bertrand, thanks again. Here's what I did as a workaround.
          I disabled the calculate on bar close and sending the OHLC sequentially to construct the daily bar
          I'm also sending the first 3 data, ie OHL with volume = 1 and checking the volume on bar update. Whenever Volume[0]<=3 (the value of 3 is used because volume is added with every data that is sent) I return. The last feed of the close is sent with the correct volume -3 and the strategy is therefore run once on the constructed daily bar.

          It's not pretty but it works.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by arvidvanstaey, Today, 02:19 PM
          4 responses
          11 views
          0 likes
          Last Post arvidvanstaey  
          Started by samish18, 04-17-2024, 08:57 AM
          16 responses
          61 views
          0 likes
          Last Post samish18  
          Started by jordanq2, Today, 03:10 PM
          2 responses
          9 views
          0 likes
          Last Post jordanq2  
          Started by traderqz, Today, 12:06 AM
          10 responses
          18 views
          0 likes
          Last Post traderqz  
          Started by algospoke, 04-17-2024, 06:40 PM
          5 responses
          48 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X