K:SMA(RSV,3,1);
D:SMA(K,3,1);
J:3*K-2*D,COLORCYAN,LINETHICK1;
STICKLINE(J>MA(J,3),J,MA(J,3),4,0),COLORYELLOW;
DRAWBAND(K,RGB(200,0,0),D,RGB(0,200,0));
DRAWTEXT(CROSS(K,D) AND K>D,K,'涨'),COLORCYAN;
DRAWTEXT(CROSS(D,K) AND K<D,D,'跌'),COLORYELLOW;
死叉短跌:=IF(K<D,D,DRAWNULL),COLORGREEN,LINETHICK1;
低于50弱势:=IF(K<50,50,DRAWNULL),COLORGREEN,LINETHICK1;
金叉短拿:=IF(K>D,D,DRAWNULL),COLORRED,LINETHICK2;
高于50强势主升:=IF(K>50,50,DRAWNULL),COLORMAGENTA,LINETHICK1;
VAR6:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR7:=SMA(ABS(VAR6-H),13,1)/SMA(MAX(VAR6-H,0),10,1);
日均价:=AMOUNT/(100*VOL);
RR1:=MA(CLOSE,27);
RR2:=(CLOSE-RR1)/RR1*100;
RRA:=MA(RR2,2);
RRB:=BARSLAST(CROSS(-10,RRA)=1);
TYP := (HIGH + LOW + CLOSE)/3;
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
VAR1A:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR2A:=LLV(LOW,20);
VAR3A:=HHV(HIGH,20);
操盘:=3*VAR300-2*VAR400;
PS1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;
STICKLINE(PS1,30,-10,3,0),COLORFF00FF;
STICKLINE(PS1,30,-10,2,0),COLORFF66FF;
STICKLINE(PS1,30,-10,1,0),COLORFF66CC;
STICKLINE(PS1,30,-10,1,0),COLORFF99FF;
STICKLINE(PS1,30,-10,1,0),COLORFFCCFF;
STICKLINE(PS1,30,-10,1,0),COLOR00FFFF;
STICKLINE(PS1,30,-10,0.3,0),COLOR66FF33;
DRAWTEXT(PS1,30,'坑'),COLORYELLOW;
RV:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;
RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);
J1:=IF(CLOSE>QJ,VOL,0);
J2:=IF(CLOSE<QJ,VOL,0);
VAR44:=SMA(RV,3,1);
VAR55:=SMA(VAR44,3,1);
PS2:=EMA(SMA(RG,3,1),2),COLORFFFFFF;
PS3:=SMA(PS2,3,1),COLOR00FFFF;
A4:=MA(CLOSE,20);
A5:=(CLOSE>MA(CLOSE,5));
A6:=(MA(CLOSE,5)>MA(CLOSE,10));
A7:=(CLOSE>MA(CLOSE,10));
A8:=(MA(CLOSE,5)>MA(CLOSE,20));
A9:=(CLOSE>MA
(CLOSE,20));
A10:=REF(A4,1);A11:=(A4 > A10);
VARE5A:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF5A:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR105A:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR115A:=VARF5A<REF(VAR105A,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
V12:=(EMA(V11,3)-REF(EMA(V11,3),1))/REF(EMA(V11,3),1)*100;
V10:=PEAKBARS(3,15,1)<10;
V120:=IF(V10=1,50,0);
头:= IF(V120=50,100,0);
卖:=IF(IF(V120=50,100,0)>REF(IF(V120=50,100,0),1),48,0),COLORGREEN,LINETHICK3;
V90:=TROUGHBARS(3,15,1)<10;
V1112:=IF(V90=1,50,0);
底:= IF(V1112=50,50,0);
买:=IF( 底>REF(底,1),40,0),COLORRED,LINETHICK1;
轴:0,COLOR00FFFF;
D1:=CROSS(ZIG(3,50/5)*1,MA(ZIG(3,50/5)*1,2))*1,COLORRED;
W1:=CROSS(MA(ZIG(3,50/5)*1,2),ZIG(3,50/5)*1)*1,COLORBLUE;
VAR111:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR222:=LLV(LOW,34);
VAR333:=HHV(HIGH,34);
低:10;
LC:= REF(C,1);
F1:=ZIG(3,15);
方:IF((F1> REF(F1,1)),5,100),COLOR00FF00,LINETHICK1;
DRAWTEXT(CROSS(低,方),低+0.1,'$建仓!') ,COLORYELLOW;
DRAWTEXT(CROSS(方,低),方-5,'¥止盈!') ,COLORWHITE;