Bangkok
Posts: 2 since Sep 2014
Thanks Given: 0
Thanks Received: 0
|
Hi Guys and Girls,
I got a simple question I want to print the following info into a csv which I can import later into Excel
So what I managed is the following, this gives me 4 decimals in the log file
Print (File("c:\test.txt"),"Symbol , Date , Time , Open , High , Low , Close");
Print (File("c:\test.txt"), Symbol , Date , Time , Open:0:4 , High:0:4 , Low:0:4 , Close:0:4);
However the following data doesn't want to write 4 decimals but gives me 2, and I don't know how to correct it
This doesn't work:
Print (File("c:\test.txt"), Symbol , Date , Time[1] , Open:0:4[1] , High:0:4[1] , Low:0:4[1] , Close:0:4[1]);
And this doesn't work??
Print (File("C:\test.txt"), Symbol , Date , Time[2] , Open[2]:0:4 , High[2]:0:4 , Low[2]:0:4 , Close[2]:0:4);
So how to I make previous data write also with 4 decimals within the print statement?
Thanks
R
|