correlation matrix is different SQX vs QA

if i put some SQX strategies in STR format to QA and want to compute correlation matrix i am getting different results between SQX and QA



but after i click to see profit/loss by month of 2 strategies i can see totally different monthly results between correlation table and overview in QA


overview tab in SQX and QA are the same

Attachments
sqx.jpg
(161.98 KiB)
correl.jpg
(89.89 KiB)
overview.jpg
(253.42 KiB)
qa.jpg
(154.75 KiB)
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

h
#1

hankeys

22.01.2019 17:30

Task created

h
#2

hankeys

22.01.2019 17:35

Attachment EU_M15_SQ3Strategy 158157.sqx added

Attachment EU_M15_SQ3Strategy 158157.str added

Attachment EU_M15_SQ3Strategy 187182.sqx added

Attachment EU_M15_SQ3Strategy 187182.str added

Attachment EU_M15_SQ3Strategy 225109.sqx added

Attachment EU_M15_SQ3Strategy 225109.str added

Attachment EU_M15_SQ3Strategy 726126.sqx added

Attachment EU_M15_SQ3Strategy 726126.str added

Attachment EU_M15_SQ3Strategy 749191.sqx added

Attachment EU_M15_SQ3Strategy 749191.str added

TT
#3

Tamas

23.01.2019 10:29

Attachment portfolio correlation.jpg added

Ok, I found the difference.


QA contains a bug in the snippets responsible for computing correlation. eg. SQ/CorrelationOf/ProfitLoss

Correlation should be computed for each orders except the ones with zero pl.


public class ProfitLoss extends CorrelationType {


@Override public void computePeriods(SQOrderList orders, TimePeriods timePeriods, int period) throws Exception { for(SQOrder order : orders) {

if(order.isCanceledOrder() && order.PL == 0) { continue; } ....


After the fix it works well and the results are same in SQX /QA .... printscreen attached

TT
#4

Tamas

23.01.2019 14:05

Status changed from New to Fixed

m
#5

mabi

24.01.2019 09:07
Please release the updated QA. Well not only for this You have  already fixed other things as well this was easily edited.
TT
#6

Tamas

24.01.2019 09:12
 Update will be released in next few days.
JF
#7

Honzik

25.02.2019 09:57
Voted for this task.
MG
#8

maegop

02.03.2019 14:14
Voted for this task.

Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please