Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created February 3, 2015 19:54
Show Gist options
  • Select an option

  • Save marketcalls/a947bf4e87f7b340f871 to your computer and use it in GitHub Desktop.

Select an option

Save marketcalls/a947bf4e87f7b340f871 to your computer and use it in GitHub Desktop.
Autocorrelation - Amibroker
_SECTION_BEGIN("Auto correlation");
Dayreturn=ROC(C,1);
AC = Optimize("AC",10,1,50,1);
AutoCor=Correlation(Dayreturn,Ref(Dayreturn,-1),AC);
Plot(AutoCor,"AutoCorrelation",colorRed);
Plot(0,"",colorGreen,style = styleDots);
_SECTION_END();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment