H1:EMA(CLOSE,8);
H2:EMA(H1,20);
多空:EMA(CLOSE,240),COLORRED, LINETHICK2;
VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,5,1);
VAR3:=SMA(VAR2,8,1);
VAR4:=CROSS(VAR2,VAR3) AND VAR3<20;
VAR5:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR4;
VAR6:=IF(CLOSE>1000,VAR4,VAR5);
DRAWICON(CROSS(H1,H2) AND CLOSE<EMA(CLOSE,60),LOW,1);
DRAWICON(VAR6,H,2);
STICKLINE(H1>H2,H1,H2,1,1),COLORRED;
STICKLINE(H1<H2,H1,H2,1,1),COLORGREEN;
SZ:=(EMA(C,18));
STICKLINE(((C >= SZ) AND (C >= O)),H,L,0,1),COLORRED;
STICKLINE(((C >= SZ) AND (C >= O)),O,C,8,0),COLORRED;
STICKLINE(((C >= SZ) AND (C <= O)),H,L,0,0),COLORGREEN;
STICKLINE(((C >= SZ) AND (C <= O)),O,C,8,0),COLORGREEN;
STICKLINE(((C < SZ) AND (C >= O)),H,L,0,1),COLORRED;
STICKLINE(((C < SZ) AND (C >= O)),O,C,8,0),COLORRED;
STICKLINE(((C < SZ) AND (C <= O)),H,L,0,0),COLORGREEN;
STICKLINE(((C < SZ) AND (C <= O)),O,C,8,0),COLORGREEN;
副图源码:
VARA:=LLV(LOW,35);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
QS: VARC,COLORWHITE;
STICKLINE(VARC<10 AND 100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))>97,0,25,3,0),COLORYELLOW;
STICKLINE(VARC>90,100,85,3,0),COLORRED;
VARD:=87.5;
VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;
DRAWTEXT(IF(CROSS(QS,VARD) AND VARE=100,50,0),56,'买');
DRAWTEXT(IF(CROSS(VARD,QS),87,0),85,'空');
DRAWTEXT(IF(CROSS(QS,VARE) AND QS>87,87,0),70,'平仓');
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR8:=LLV(LOW,30);
VARAA:=HHV(HIGH,30);
B:=EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8);
B1:=EMA(B,5);
STICKLINE(B>0 AND B-B1>=0,79,80,3,0),COLORWHITE;
STICKLINE(B>0 AND B-B1<0,79,80,3,0),COLORCYAN;
STICKLINE(B>0 AND B-B1>=0,49,50,3,0),COLORRED;
STICKLINE(B>0 AND B-B1<0,49,50,3,0),COLORRED;
STICKLINE(B>0 AND B-B1>=0,19,20,3,0),COLORWHITE;
STICKLINE(B>0 AND B-B1<0,19,20,3,0),COLORCYAN;
STICKLINE(B-B1>0,B,B1,3,1),COLORRED;
STICKLINE(B-B1<0,B,B1,3,1),COLORWHITE;
V1:=(2*CLOSE+HIGH+LOW)/4; V2:=LLV(LOW,21);
VA:=HHV(HIGH,34);
FB:=EMA((V1-V2)/(VA-V2)*100,13);
FBB:=EMA((0.667*REF(FB,1)+0.333*FB),2);
ZLX:EMA(0.382*REF(FB,2)+0.618*FB,12),COLORYELLOW;
|