I need to run several end of day explorations with a set naming 
convention that must be archived for a research project.  Can I use 
the fopen and Fputs commands with an exploration?

If the the fopen and fput is the correct method how do you output the 
exploration results?  If the exploration code has several columns I 
want exported to the csv file how do I loop through the exploration 
results with the fput statement? 

The exploration code is:
Filter = C > 50;
Shares = round(50000/ Close);
AddTextColumn(Name()+ " US","Security ID");
AddColumn( DateTime(), "Filing Date", formatDateTime ); 
AddColumn(Shares,"Size",1);
AddColumn(Close,"Cost",1.2);

Yea  = Year();
Mon  = Month();
Daz = Day();
Dh  = StrFormat("%02.0f%02.0f%02.0f", Mon, Daz, Yea );
fh = fopen( "E:\\Exploration_Archive\\"+"TKRS_"+Dh+".csv", "w");

The naming convention for the fopen statement worked. That was as far 
as I was able to get with my limited programming skills.    
Any advice or assistance is appreciated.


Reply via email to