• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Export chart data to file

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

    Export chart data to file

    Sierra Charts has this very useful ability to export chart data to a text file. So as an example, if I have the chart configured with 47 minute bars real trading hours only - it can export the OHLC data of each bar out to a file. Please tell me ninjatrader can do this...

    #2
    Included is a link which contains a script that will allow you to do exactly what you have described.

    But actually StreamWriter shouldn't even be necessary for OHLC values, only indicator and other calculated values. If you simply want to upload price data, you can go to Command Center > Tools > Export > Historical Data

    Comment


      #3
      Cool. Thank you. The reason I need this is because I only want to load session specific bars, not the entire data history.

      What do I do once I have loaded the indicator? I can see it in the indicator panel below and it says 'sample stream writer' but then what? Has it created the file already (where do I find it?)or do I need to do something further?

      Comment


        #4
        Not sure what OS you are using, but in windows you would go to File Explorer > Documents > Ninjatrader 8, and you should see a new file called "MyTestFile" assuming you did not change the name in the indicator script. Good Luck!

        P.S. reloading this indicator repeatedly or loading a large amount of data can be CPU intensive, so try to be conservative about what you use it for.

        Comment


          #5
          Thank you so much lunardiplomacy
          That is exactly what I was looking for.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Abdullah_KSA, Today, 12:52 PM
          0 responses
          1 view
          0 likes
          Last Post Abdullah_KSA  
          Started by darkgreen, Today, 11:53 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_ChristopherD  
          Started by trader510, Today, 11:44 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Heath  
          Started by Lumbeezl, Yesterday, 06:32 PM
          4 responses
          25 views
          0 likes
          Last Post MojoJojo  
          Started by ozziyhtomit, Yesterday, 05:24 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X