Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

log to file

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

    log to file

    Hi.

    I want that every backtest run the script will write to a file:
    all the parameters values and the results of the backtest.

    what is the best option to do it ?

    thanks

    #2
    Hello gsapir,

    I have attached a link as well as a sample strategy which will save price values to a text file. For each backtest ran, the new values will be added to the file, so you could use this format for saving information from the strategy to a .txt file.

    Indicator: Using StreamWriter to write to a text file
    http://ninjatrader.com/support/forum...ead.php?t=3475

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      I couldn't get the SampleStreamWriter_NT7 to work until after I got rid of the try-catch block and added two sw.Close() statements.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Leeroy_Jenkins, 01-23-2021, 03:00 AM
      1 response
      23 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by vantojo, Today, 09:32 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by FelipeRXP, Today, 08:40 AM
      2 responses
      14 views
      0 likes
      Last Post FelipeRXP  
      Started by petedian, Today, 08:44 AM
      0 responses
      16 views
      0 likes
      Last Post petedian  
      Started by J0shTrader, Yesterday, 12:29 PM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Working...
      X