顶底自知(先锋、主力、底部)
2011-03-05 10:21:00来源:本站整理浏览:121
顶底自知(先锋、主力、底部)-指标公式源码
N1:=3;
N2:=8;
N3:=13;
TH:=MAX(HIGH,REF(CLOSE,1));
TL:=MIN(LOW,REF(CLOSE,1));
ACC1:=SUM(CLOSE-TL,N1)/SUM(TH-TL,N1);
ACC2:=SUM(CLOSE-TL,N2)/SUM(TH-TL,N2);
ACC3:=SUM(CLOSE-TL,N3)/SUM(TH-TL,N3);
ACC4:=(ACC1*N2*N3+ACC2*N1*N3+ACC3*N1*N2)*100/(N1*N2+N1*N3+N2*N3);
先锋:EXPMEMA(ACC4,5),LINETHICK2;
主力:EXPMEMA(ACC4,10),COLORMAGENTA;
{DRAWBAND(MA5,RGB(150,0,100),MA10,RGB(100,100,50));};
先锋1:IF(先锋<REF(先锋,1),先锋,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(先锋<=31.1,50,65,2,0),COLORRED;
风险:65,COLORLIRED;
分界:50,COLORLIBLUE;
底部:30,COLORGREEN;
分界:50,COLORLIBLUE;
底部:30,COLORGREEN;
- 上一篇公式:均线买卖法(主图 源码 选股 贴图)
- 下一篇公式:卖出空仓(高抛低吸)