源码
input:N(61,0,999);
A:=BACKSET(ISLASTBAR,N+1);
B:=BARSLAST(A>REF(A,1));
D:=REF(C,B);
E:=REF(INDEXC,B);
个股:C/D,COLORRED,LINETHICK2;
大盘:INDEXC/E,COLORGREEN;{都从1开始,形状均不变,指标排序}
F:SUM(ABS(个股-大盘),N+1),LINETHICK0;{累计每天两线之间的距离}
G:CORR(个股,大盘,N+1),LINETHICK0;{求两线之间的相关系数}