VAR1:=EMA(CLOSE,2);
VAR2:=EMA(SLOPE(CLOSE,30)*5+CLOSE,20);
HHJSJDA:(3*CLOSE+OPEN+LOW+HIGH)/6,LINETHICK0;
HHJSJDB:(19*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,20)+REF(HHJSJDA,19))/210,COLORYELLOW;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
{www.9m8.cn 九毛八公式指标网}
DRAWICON(CROSS(VAR1,VAR2),LOW-0.03,1);
DRAWICON(CROSS(VAR2,VAR1),HIGH+0.03,2);
STICKLINE(VAR1 =VAR2 AND CLOSE OPEN,LOW,HIGH,0,1),COLORRED;
STICKLINE(VAR1 =VAR2 AND CLOSE OPEN,LOW,HIGH,0,1),COLORRED;
STICKLINE(VAR1 =VAR2 AND CLOSE OPEN,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(VAR1 =VAR2 AND CLOSE OPEN,CLOSE,OPEN,2,0),COLORRED;
STICKLINE(VAR1 VAR2 AND CLOSE OPEN,LOW,HIGH,0,1),COLORCYAN;
STICKLINE(VAR1 VAR2 AND CLOSE OPEN,LOW,HIGH,0,1),COLORCYAN;
STICKLINE(VAR1 VAR2 AND CLOSE OPEN,CLOSE,OPEN,2,0),COLORCYAN;
STICKLINE(VAR1 VAR2 AND CLOSE OPEN,CLOSE,OPEN,2,1),COLORCYAN;
G4:DRAWTEXT_FIX(1,0.1,1,0,FGBLOCK),COLORMAGENTA;
G3:DRAWTEXT_FIX(1,0.935,1,0,HYBLOCK),COLORMAGENTA;
G2:DRAWTEXT_FIX(1,0.87,1,0,DYBLOCK),COLORMAGENTA;
G1:DRAWTEXT_FIX(ISLASTBAR,0.05,0.05,0,GNBLOCK),COLORMAGENTA,LINETHICK2;
{慧眼副图}
VAR1:=EMA(CLOSE,2);
VAR2:=EMA(SLOPE(CLOSE,30)*5+CLOSE,20);
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
VAR6:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13);
买入:CROSS(VAR1,VAR2) AND VAR6