Status changed from New to Fixed
I found the issue with zero - it was zero when you copy + pasted strategies.
The format of the file is simple:
- first int is {number of values}
- then there are (number of values} pairs of long+double.
Where long is date of the day and double is the value for that day.
Full java code snippet to read it is:
ObjectInput dis = new ObjectInputStream(inputStream);
int count = dis.readInt();
if(count == 0) {
return;
}
Long2FloatRBTreeMap worstDailyEquity = new Long2FloatRBTreeMap();
for(int i=0; i<count; i++) {
long key = dis.readLong();
double value = dis.readDouble();
worstDailyEquity.addTo(key, (float) value);
}
result.setWorstDailyEquity(worstDailyEquity);
dis.close();
Also, how to access this from custom data columns?