LinReg TPL For MultiCharts

The LinReg TPL for MC has a bug - it doesn't correctly translate Shift.

Code in TPL is (note the end hard-coded 1):

<@compress_single_line>
(Open[0]<@printInput block /> > SQ_LinearRegression(<@printComputedFromParam block /><@printInput block />, <@printParam block "#Period#" />)[1])
</@compress_single_line>

Should be:
<@compress_single_line>
(Open[0]<@printInput block /> > SQ_LinearRegression(<@printComputedFromParam block /><@printInput block />, <@printParam block "#Period#" />)[<@printShift block shift />])
</@compress_single_line>

Most likely the hard-coded Open[0] is also not right.
Attachments
No attachments
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

AS
#1

andreis

14.11.2022 19:48

Task created

E
#2

Emmanuel

14.11.2022 20:18
Voted for this task.
JB
#3

0xjoeblack@proton.me

14.11.2022 20:22
Voted for this task.
g
#4

Lee Guan Chuan

21.11.2022 03:04

Status changed from New to Fixed


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