敢死队拉拉股票副图-精品通达信指标公式源码分享
A:=(C*3+H+L+O)/6;
XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2.382;
DIFF:=EMA(XJ,12)-EMA(XJ,26);DEA:=EMA(DIFF,9);
MACA:=-2*(DIFF-DEA);MACB:=3*DIFF-2*DEA;
D1:=DIFF>=MACA;D2:=MACB>=MACA;BB:=(D1+D2)/2;
BB1:=BARSLAST(REF(BB,1)<1 AND BB=1);
BB2:=BARSLAST(REF(BB,1)>0 AND BB=0);
BB3:=(BB1<BB2 OR BB=1) AND NOT(BB=0);
BB4:=(BB1>BB2 OR BB=0) AND NOT(BB=1);
LC:=REF(C,4);
RMI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*100;
RMA:=SMA(RMI,3,1);RMB:=SMA(RMA,3,1);
RMC:=MAX(RMB,50)-30;RMD:=70-MIN(RMB,50);
REFLINE:50,70;
STICKLINE(NOT(BB4),20,RMC,1,1),COLOR400080;
STICKLINE(RMC>35 AND NOT(BB4),35,RMC,1,1),COLOR5A00B5;
STICKLINE(RMC>50 AND NOT(BB4),50,RMC,1,1),COLOR0000FF;
STICKLINE(DIFF>=0,3,5,1,1),COLORFF00FF;
STICKLINE(DIFF>=0,-3,-5,1,1),COLORFF00FF;
STICKLINE(NOT(BB4),0,5,1,1),COLOR4440FF;
STICKLINE(BB4,0,-5,1,1),COLORFFFF33;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!