[116] "Worst Year Profit" metric never shows anything > $0

TheĀ "Worst Year Profit" metric never shows anything > $0, even if the strategy has 100% profitable years with the minimum profit in any year being (for example) $1000, it still shows $0. It works correctly if there are years with a loss and correctly shows the worst negative $ value in that case. However, it will never shows a positive $ value.
Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

g
#1

geektrader

24.12.2018 08:14

Task created

g
#2

geektrader

24.12.2018 08:17
Voted for this task.
TT
#3

Tamas

28.12.2018 10:54

Status changed from New to Fixed

Attachment WorstYearProfit.java added

Fixed snippet attached. It will be in the next update.

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