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

Fake intraday data

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

    Fake intraday data

    Hi,
    I do some modeling with stocks on daily charts. I don't have access to intraday data (for now). I understand how strategy works OnBarUpdate() but is there any way I can make fake intraday data series so strategy analyzer will work? Pic related. I don't care about intraday activity, all price levels I need are from daily bars.

    #2
    Hello Leeroy_Jenkins,

    Thank you for the inquiry.

    For the strategy analyzer that will need historical data so you would need to import data for that or have a data feed.

    If you wanted fake data you could generate a text file full of data-points and then import that. It doesn't need to be real data just in the formats shown here: https://ninjatrader.com/support/help...AndDataFormats

    I am not certain if there are any sources online that have fake intraday data but it would be worth a few google searches to see if there are any existing things you can use. You might try searching for "fake stock data" or "generate fake stock data C#" as some examples. Whatever you may find you will want to make it format the data as shown above in the help guide.

    You could make an indicator that exports the data it sees to file and then use the Simulated data feed to generate data: https://ninjatrader.com/support/help...tsub=simulated

    You can additionally design an import type in the NinjaScript editor if the data you find cannot be changed or is in some specific format. You can find examples of some import types in the editor. https://ninjatrader.com/support/help...mport_type.htm

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      How can I export all symbols at once? Cuz I see NT8 has data in .ncd format and I need txt.

      Comment


        #4
        Hello Leeroy_Jenkins,

        You could make an indicator and use the market analyzer or multiple charts to automate that. The previously mentioned items would be the starting place for getting the data in various ways. If you mean to automate exporting the simulated data you would need to do that as a market analyzer indicator column or multiple charts with your indicator.

        If you need text, you can write a text file. The platform will read its own proprietary data as needed and present it in the platform in various ways such as processing that data in an indicator. If you wanted to export that data you could write it to file in the needed format. There is a sample of writing data to file in the help guide here: https://ninjatrader.com/support/help...o_write_to.htm



        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        3 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Working...
        X