Skip to content

Commit

Permalink
OK I think all the file names are now fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwork committed Jan 21, 2017
1 parent b719033 commit 4183fe6
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ExParseBar.d
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void main(string[] args) {
FILE *ptr_file;
char buf[1000];
char bbuf[50003];
ptr_file =fopen("c:/JOE/stock/JTDATA/symbols/SPY/2012.M1.csv","r");
ptr_file =fopen("2014.M1.csv","r");
if (!ptr_file)
return;
double startCount = nowms();
Expand Down
2 changes: 1 addition & 1 deletion ex-read-and-split.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ function ParseData(err,data)

return StockData;
}
fs.readFile('c:/JOE/stock/JTDATA/symbols/SPY/2012.M1.csv', "ascii", ParseData);
fs.readFile('2014.M1.csv', "ascii", ParseData);

2 changes: 1 addition & 1 deletion ex-read-and-split2.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ function ParseData(data)
return StockData;
}

fileContents = fs.readFileSync('2011.M10.csv', "ascii");
fileContents = fs.readFileSync('2014.M1.csv', "ascii");
ParseData(fileContents);

4 changes: 2 additions & 2 deletions ex-read-file-line-by-line.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function curr_ms()

var beg_time = curr_ms();
print_memory_usage();
//var file_name = "AS400_DAtabases_sample_records.txt";
var file_name = "AS400_Databases_2.txt";

var file_name = "2014.M1.csv";
var flags = {flags: 'r', encoding: 'utf-8', fd: null, mode: 0666, bufferSize: 64 * 1024 }
var tstream = fs.createReadStream(file_name, flags);
var head_arr = null;
Expand Down
2 changes: 1 addition & 1 deletion ex-read_and_split_struct.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ let load_barsX2(fiName : string) =
let avgb1 = nowms()
let avg1 = cavg(tout)
elap("Calc average from struct", avgb1)
let fiName = "c:/JOE/stock/JTDATA/symbols/SPY/2012.M1.csv"
let fiName = "2014.M1.csv"
let tout = load_barsX2(fiName)
2 changes: 1 addition & 1 deletion ex-read_and_split_vectors.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ let load_bars_vectors(fiName : string) =
let closeAvg = Array.average vclose
elap("Calc Average = " + string(closeAvg) + " from Array vector", begAvg)
(vdtime, vday, vopen, vclose, vhigh, vlow, vvol)
let fiName = "c:/JOE/stock/JTDATA/symbols/SPY/2012.M1.csv"
let fiName = "2014.M1.csv"
let aRes = load_bars_vectors(fiName)
2 changes: 1 addition & 1 deletion ex_parse_bar_stripped.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int main() {
FILE *ptr_file;
char buf[1000];
char bbuf[50003];
ptr_file =fopen("c:/JOE/stock/JTDATA/symbols/SPY/2012.M1.csv","r");
ptr_file =fopen("2014.M1.csv","r");
if (!ptr_file)
return 1;
double startCount = nowms();
Expand Down
4 changes: 2 additions & 2 deletions ex_read_all_lines.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ public static void TestWithVectors(String fiName)

public static void main(String[] args)
{
//TestWithVectors("c:\\JOE\\stock\\JTDATA\\symbols\\SPY\\2012.M1.csv");
TestWithStruct("c:\\JOE\\stock\\JTDATA\\symbols\\SPY\\2012.M1.csv");
//TestWithVectors("2014.M1.csv");
TestWithStruct("2014.M1.csv");
}


Expand Down
2 changes: 1 addition & 1 deletion forex_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self):


startms = curr_ms()
f = open("c:\\calgo-data\\exp-EURUSD-Tick-rsi14-stddev100-bars.csv")
f = open("2014.M1.csv")
#a = f.readlines()
#endreadms = curr_ms()
#elap("finished read lines", startms, endreadms)
Expand Down
2 changes: 1 addition & 1 deletion read_file_line_by_line.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function dorun(fname)
end

beg_time = os.clock()
local trecs = dorun("c:\\calgo-data\\exp-EURUSD-Tick-rsi14-stddev100-bars.csv")
local trecs = dorun("2014.M1.csv")
end_time = os.clock()
elap = end_time - beg_time
print("elap sec time=" .. elap .. "numRec=" .. trecs.size )
Expand Down
2 changes: 1 addition & 1 deletion read_file_line_by_line_bulk.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ double *TestLoadBulk(char *fiName, long *numRec) {

int main() {
long numRec;
char *fname = "c:/calgo-data/exp-EURUSD-Tick-rsi14-stddev100-bars.csv";
char *fname = "2014.M1.csv";
printf("CLOCKS_PER_MS=%lf CLOCKS_PER_SEC=%lf\n", (double) CLOCKS_PER_MS, (double) CLOCKS_PER_SEC);

double*tarr = TestLoadBulk(fname, &numRec);
Expand Down

0 comments on commit 4183fe6

Please sign in to comment.