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

Inserting historical data to NJ from text file using C#

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

    #16
    Hi Chelsea,

    I am attaching a document of 2 pages. You can look at the indicator which I am trying to recreate on NT. Basically this is a moving average of all the bids and asks. NOT the price based on bids and asks. The response which you had posted was to graph the moving average of the price of the bids and asks.

    Do you think this has to be a custom built indicator? Kindly guide me through this..

    Thanks.
    Attached Files

    Comment


      #17
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello,

      Thank you for clarifying.

      Unfortunately, there are no supported ways to programmatically import historical data that can be viewed in the Historical Data Manager.

      While it would be possible to read data from a cvs file (see link below), this would be directly into memory for use with the script but would not be added to the historical data that is seen on the chart.

      Read/write excel file: - http://www.ninjatrader.com/support/f...36938&page=7#1

      If you would like to import the cvs data into NinjaTrader you will need to convert the cvs file to a text file with the proper formatting for import into NinjaTrader. Then you will need to follow the import instructions to import the data.

      See post #2 for the proper format and import instructions.

      Also, I've created a short video for another client for instructions converting a cvs to a txt for import.
      http://screencast.com/t/uJSNRl7GSr
      Hi,

      Thank you for your prompt reply. I have got the solution to my problem. My basic requirement was to store the CSV data in historical data manager, and also refresh the chart.

      Go to Tools --> Options --> Data tab
      Here is a checkbox under Real Time Data for storing the chart data to historical data.

      I checked this option and connected the NJ to External Data Feeder, generated the CSV which in turn refreshed the charts and stored the chart data to historical data as well :-)

      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