用未来看过去指标 (源码)
N:=11;M:=9;
VAR1:=EMA((O+H+L+C)/4,3);
VAR2:=EMA((REF(O,1)+REF(VAR1,1))/2,3);
VAR3:=MAX(H,VAR2);
VAR4:=EMA(MAX(VAR3,VAR1),3);
VAR5:=MIN(L,VAR2);
VAR6:=EMA(MIN(VAR5,VAR1),3);
O1:=IF(VAR2<VAR1,VAR2,VAR1);
C1:=IF(VAR2<VAR1,VAR1,VAR2);
STICKLINE(VAR2>=VAR1,VAR4,VAR6,0,0),COLORFF0000;
STICKLINE(VAR2>=VAR1,C1,O1,2,0),COLORFF0000;
STICKLINE(VAR2<VAR1,VAR4,VAR6,0,0),COLORRED;
STICKLINE(VAR2<VAR1,C1,O1,2,0),COLORRED;
FL:MA(C,N)+ABS(MA(C,N)-REF(MA(C,N),1)),COLORF4E202;
FS:MA(C,N)+MA(C,N)-REF(MA(C,N),1),COLORF4E202,LINETHICK2;
CG:IF(MA(C,N)<FS,FS,MA(C,N)),COLORF4E202,LINETHICK2;
年线:=EMA(C,250);
A1:CG-(EMA(C,M)-CG),COLORFF8080;
QQ:年线-(EMA(C,M)-年线),COLORFF80FF,LINETHICK2;
持股:IF(CG=FS,CG,DRAWNULL),COLOR00FFFF,LINETHICK2;
{未来}
A:=XMA(C,14);
B:=MEMA(C,4);
D:=A-B;
E:=EMA(C,6)+D*2;
未来:EMA(SLOPE(E,6)*6+E,3),COLORLIGREEN;
换手:V*100/CAPITAL,NODRAW,COLORRED;
- 上一篇公式:可移动换手率度量尺指标 (源码)
- 下一篇公式:均线粘合选股指标 (源码)