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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              579 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              334 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              554 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X