[Build122] Custom Databank Column Show 0

I try to add a new databank column. but It only shows 0.



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.



Attachments
DownsideStdDev.java
(2.65 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

PS
#1

ps21

21.08.2019 14:20

Task created

TB
#2

Tomas Brynda

22.08.2019 10:16
It works for me, have you tried to restart SQ?
PS
#3

ps21

22.08.2019 12:43
Voted for this task.
PS
#4

ps21

22.08.2019 12:43
Yes, I recompiled and restarted SQX multiple times, but it remains 0.
TT
#5

Tamas

22.08.2019 14:00

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.

PS
#6

ps21

25.08.2019 12:24
I know why it happens now.


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?

TT
#7

Tamas

26.08.2019 18:14
Run retester to recompute the stats

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please