I try to change compute function return to a constant which in this case is 11.00 but it still shows 0 on the column.
Status changed from New to Fixed
There is a error, 11.0f is float but round2() expect double
public double compute(SQStats stats, StatsTypeCombination combination, OrdersList ordersList, SettingsMap settings, SQStats statsLong, SQStats statsShort) throws Exception { double downsideStdDev = computeStdev(ordersList, combination); return round2(11.0f); //return round2(downsideStdDev); }
Just return round2(11) without f and run the project.
Stats are computed on the fly.
It shows zero on the strategies that create before compile code snippet and restarts SQX but for the strategies that generated after code compile and restart SQX now show correct value!
How to make the old strategies that create before compile custom column shows correct value?