[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] backtesting filter



PureBytes Links

Trading Reference Links




Very nice Tomasz,  
thanks.
 
Richard
<BLOCKQUOTE dir=ltr 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Tomasz Janeczko 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, July 05, 2004 6:00 AM
  Subject: Re: [amibroker] How do i insert 
  a NewLine carachter into a txt file?
  
  Hello,
   
  \n
  works perfectly in Excel. Make sure to give you 
  file the .txt or .csv extension
  because Excel treats the same file differently 
  depending on extension.
   
  Example (creates CSV file for excel)
   
  fh=<FONT 
  color=#0000ff>fopen(<FONT 
  color=#ff00ff>"Test.csv",<FONT 
  color=#ff00ff>"w"); 
  if<FONT 
  face="Courier New">( fh ) { 
    for<FONT 
  color=#000000>( i = 0; i 
  < BarCount<FONT 
  face="Courier New">; i++ )   { 
     str = StrFormat<FONT 
  color=#000000>("%.4f,%.4f\n"<FONT 
  color=#000000>, Close<FONT 
  color=#000000>[ i ], <FONT 
  color=#000000>Volume<FONT 
  color=#000000>[ i ] );    <FONT 
  color=#0000ff>fputs<FONT 
  color=#000000>( str, fh ); } <FONT 
  color=#0000ff>fclose( fh 
  ); } 
   
  Best regards,Tomasz Janeczkoamibroker.com
  <BLOCKQUOTE 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    Herman van den 
    Bergen 
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">AmiBroker YahooGroups 
    Sent: Monday, July 05, 2004 1:49 
    PM
    Subject: [amibroker] How do i insert a 
    NewLine carachter into a txt file?
    
    I need to insert 
    a newline character into a text file of comma separated symbols, i tried 
    using "\n" but that doesn't work when i open the file with Excel or 
    Wordpad.
    <SPAN 
    class=031385010-05072004> 
    I have too many 
    symbols for the number of columns available in Excel and want to export in 
    Columns, i.e. a newline character after each row item. 
    <SPAN 
    class=031385010-05072004> 
    Anybody Know 
    what the NewLineFeed character to use is?
    <SPAN 
    class=031385010-05072004> 
    <SPAN 
    class=031385010-05072004>hermanCheck 
    AmiBroker web page at:<A 
    href="">http://www.amibroker.com/Check 
    group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Check AmiBroker web page at:<A 
    href="">http://www.amibroker.com/Check 
    group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    


Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.