Pairs trading error message

조회 수: 11 (최근 30일)
Mate 2u
Mate 2u 2012년 2월 16일
Hi everybody,
I am trying to use the webinar in pairs trading with second-second data. I keep getting a error. I am using 1 day. If anybody could tell me how I can prevent the error it would be helpful.
INPUT
window = 120:60:420; freq = 10:10:60; range = {window, freq};
annualScaling = sqrt(250*7*60*60); cost = 0.01;
pfun = @(x) pairsFun(x, DZZGLLfull, annualScaling, cost);
tic [~,param] = parameterSweep(pfun,range); toc
pairs(ZZGLLfull, param(1), param(2), 1, annualScaling, cost)
OUTPUT
??? Error using ==> parallel_function at 598 Error in ==> adftest at 317 Effective sample size of the data is less than the minimum 10 in the table of critical values.
Error in ==> pairsFun at 19 parfor i = 1:row
Error in ==> @(x)pairsFun(x,DZZGLLfull,annualScaling,cost)
Error in ==> parameterSweep at 58 resp = fun(cell2mat(var));
  댓글 수: 2
Andrew
Andrew 2013년 9월 16일
I just watched the webinar as well, and I am getting the same error. Any suggestions on how to fix this?
pzl
pzl 2013년 9월 25일
cause the normalized sample has some NaN data, which makes the efficient length of the sample is less than the minimum 10

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Transaction Cost Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by