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

import made-up files

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

    import made-up files

    Hello,

    How do i import a made-up file?
    I would like to use ninjatrader chart to display a bunch of data.
    Something simple like numbers 10, 8, 5, 7, 23 ... no hours needed just vertical fake prices.
    Can we create an instrument like ES 06-23 for example and modify it to become fakenumber.last and put numbers in the files and import into a chart?

    Thank you




    #2
    Hello frankduc,

    You could do that, the data would need to be in a format like the ones shown in the historical data import page:



    If you wanted to display data that is not in that format you could write an indicator to read the file and then plot the data.

    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse,

      I created that file LQ. How do i insert the file and find the file?
      In historical import format i kept the settings as default. It says 0 data records sucessfully imported

      How do i open a chart of my file? Do i have to create it in instrument list?

      TY
      Attached Files

      Comment


        #4
        Hello frankduc,

        You need to follow the directions on the historical data import page, the file name is important and tells the import what type of data is being imported. You would also need to create a custom instrument to use that data. You will get errors when opening charts for a fake instrument if you are connected to a data provider because it won't be able to request live or historical data for it.

        File Name
        When using the NinjaTrader format, the name of the text file to be imported must be the NinjaTrader instrument name followed by a period and "Last", "Bid", or "Ask" depending on the data type. For example:
        MSFT.Last.txt for Microsoft stock last price data

        ES 12-09.Bid.txt for the S&P E-mini December contract bid price data

        EURUSD.Ask.txt for the Euro/U.S. dollar currency pair ask price data

        JesseNinjaTrader Customer Service

        Comment


          #5
          Hello again,

          Is there a way to open a chart without an instrument?
          Select nothing or something that could create a chart with no data, just to create lines and numbers in vertical and horizontal axis?

          TY

          Comment


            #6
            Hello frankduc,

            A chart needs a series to work, there is not a way to display something on a chart without using an instrument.
            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sidlercom80, 10-28-2023, 08:49 AM
            177 responses
            2,400 views
            0 likes
            Last Post jeronymite  
            Started by algospoke, Today, 06:36 PM
            0 responses
            3 views
            0 likes
            Last Post algospoke  
            Started by ETFVoyageur, Yesterday, 06:05 PM
            8 responses
            50 views
            0 likes
            Last Post ETFVoyageur  
            Started by futtrader, 04-21-2024, 01:50 AM
            7 responses
            68 views
            0 likes
            Last Post NinjaTrader_Eduardo  
            Started by pibrew, Today, 06:10 PM
            0 responses
            12 views
            0 likes
            Last Post pibrew
            by pibrew
             
            Working...
            X