Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sample FileReadWrite Indicator

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

    #16
    Hello aadbosma,

    Take a look at BarsPeriods -
    http://www.ninjatrader.com/support/h...arsperiods.htm

    I believe this is what you are looking for.
    Cal H.NinjaTrader Customer Service

    Comment


      #17
      I tried this and a text file is created but it is blank I am running this in Market analyzer, on a couple of forex pairs. Any ideas?

      Comment


        #18
        Hello pdawg,

        Thank you for writing in.

        As we are currently outside of session hours, please right-click within the Market Analyzer and select Properties.

        Change the Session template section to Default 24/7 and click on OK.

        Does the text file still remain blank after this change?
        Zachary G.NinjaTrader Customer Service

        Comment


          #19
          OK I figured out what it was, my fault I forgot I had commented out the write string. However I was wondering if you could help me with my next problem. I can create a .csv file by adding commas and changing the file output name, which is awesome. However I would like for it to write the data in reverse, right now it writes data from oldest timestamp at the top to newest at the bottom of the spreadsheet. I would like it to output the data in reverse order. Is this possible with StreamWriter?
          Last edited by pdawg; 03-26-2016, 08:30 PM.

          Comment


            #20
            Originally posted by pdawg View Post
            OK I figured out what it was, my fault I forgot I had commented out the write string. However I was wondering if you could help me with my next problem. I can create a .csv file by adding commas and changing the file output name, which is awesome. However I would like for it to write the data in reverse, right now it writes data from oldest timestamp at the top to newest at the bottom of the spreadsheet. I would like it to output the data in reverse order. Is this possible with StreamWriter?
            Streamwriter writes in the order of your data. I'm not sure what code you are looking at - you might be able to reverse the output if it is stored in a temporary buffer of sorts.

            Anyways - Why not reverse it in the spreadsheet? There is a sort in Excel/open office.

            Comment


              #21
              That's what I ended up doing (excel sort), thanks for your help.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by CarlTrading, 03-31-2026, 09:41 PM
              1 response
              83 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              45 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              65 views
              2 likes
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              69 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              58 views
              0 likes
              Last Post CarlTrading  
              Working...
              X