RSI1:=(SMA(MAX(CLOSE-LC,0),9,1))/(SMA(ABS(CLOSE-LC),9,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),26,1))/(SMA(ABS(CLOSE-LC),26,1))*100;
DRAWICON(RSI1*SJ RSI2,3,38);
DRAWICON(RSI1 RSI2*SJ,3,39);
RSI金叉:=RSI1 RSI2;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1*SJ LWR2*SJ,4,38);
DRAWICON(LWR1*SJ LWR2*SJ,4,39);
LWR金叉:=LWR1 LWR2;
BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;
DRAWICON(CLOSE*SJ BBI,5,38);
DRAWICON(CLOSE BBI*SJ,5,39);
BBI金叉:=CLOSE
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,9),9)/EMA(EMA(ABS(MTM),9),3);
MMM:=100*EMA(EMA(MTM,26),12)/EMA(EMA(ABS(MTM),26),12);
DRAWICON(MMS*SJ MMM*SJ,6,38);
DRAWICON(MMS*SJ MMM*SJ,6,39);
MMS金叉:=MMS
A:=REF(HHV(H,25),20) REF(HHV(H,70),35);
A1:=REF(COUNT(C/REF(C,1) =1.094,20),1);
A3:= BOLL-M .UB;{www.9m8.cn 九毛八公式指标网}
GXS1:=REF(EXIST(H A3,55),5) AND CROSS(C,A3)AND A1 AND A AND COUNT((C/O-1)*100 -7,30)=0;
GXS:=MACD金叉 AND KDJ金叉 AND RSI金叉 AND LWR金叉 AND BBI金叉 AND MMS金叉,NODRAW;
STICKLINE(GXS AND COUNT(GXS1,1),0,6,2,0),COLORYELLOW;
STICKLINE(GXS AND COUNT(GXS1,1),0,6,1,0),COLORRED;
共振为主:GXS,COLORYELLOW,NODRAW;
信号为辅:GXS AND COUNT(GXS1,1),COLORFF00FF,NODRAW;
买卖点红绿柱副图源码:
SJ:=1;
X1:=EMA(CLOSE,8)*SJ,COLORWHITE;
X3:=EMA(X1,16)*SJ,COLORRED;
B:=BARSLAST(DAY REF(DAY,1))+1;
VAR2:=(CLOSE+HIGH+LOW)/3;
VAR3:=EMA(VAR2,10);
VAR4:=REF(VAR3,1);
STICKLINE(VAR3*SJ VAR4,VAR3,VAR4,2 ,0),COLORRED;
STICKLINE(VAR3 VAR4*SJ,VAR3,VAR4,2,0), COLORGREEN;
W:=BARSLAST(DATE REF(DATE,1));
OO:=REF(OPEN,W);
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IF(HX REF(HX,1) REF(HX,2) REF(HX,4) REF(LX,1) REF(LX,3) REF(LX,5)&&OPEN CLOSE&&(HHV(OPEN,0)-CLOSE) 0,REF(HX,4),0);
L1:=IF(LX REF(LX,1) REF(LX,3) REF(LX,5) REF(HX,1) REF(HX,2) REF(HX,4)&&OPEN CLOSE&&(CLOSE-LLV(OPEN,0)) 0,REF(LX,4),0);
H2:=VALUEWHEN(H1 0,H1);
L2:=VALUEWHEN(L1 0,L1);
K111:=IF(CLOSE H2,-3,IF(CLOSE L2,1,0));
K222:=VALUEWHEN(K111 0,K111);
TMP:=K222;{www.9m8.cn 九毛八公式指标网}
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP*SJ,0) ,HX,'卖空'),COLORGREEN,DRAWABOVE;
DRAWTEXT(CROSS(0,TMP*SJ),LX,'买多'),COLORRED;
DRAWICON(CROSS(TMP*SJ,0) ,HX,39),COLORGREEN,DRAWABOVE;
DRAWICON(CROSS(0,TMP*SJ),LX,38),COLORRED;
SJ:=1;
突破:=REF(EMA(C,14),1),LINETHICK4,COLORYELLOW;
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X =0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),LINETHICK2;
空方:=IF(A1X 0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),LINETHICK2;
STICKLINE(A1X*SJ 0,多方,突破,18,0),COLORRED;{www.9m8.cn 九毛八公式指标网}
STICKLINE(A1X*SJ 0,空方,突破,18,0),COLOR990000;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);