GMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
G1:=IF(-GMS>95,0,20);
UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);
KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));
KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);
趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);
AA:=-100*(趋势线-CLOSE)/趋势线;
AC:=(EMA(AA,5) );
SSL:=EMA(CLOSE,3);
GMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
GM:=MA(GMV,1);
STICKLINE(((SSL>GM)),SSL,GM,0.01,0),COLORRED;
SA:=(GM*0.985);
MA5:=(MA(CLOSE,5));
MA13:=(MA(CLOSE,13));
MA21:=(MA(CLOSE,21));
捞金手:IF(((SSL>GM)),GM,SA),LINETHICK2,COLORFF00FF;
能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));
上开:=O;
上收:=C;
上高:=H;
上低:=L;
JJ:=(上开+上高+上低)/3;
A:=EMA(JJ,4);
黄金线:A,COLORYELLOW,LINETHICK1;
B:=REF(A,1);
STICKLINE(((SSL<GM)),捞金手,黄金线,0.01,0),COLORFFFF00;
GUA1:=EMA(上收,8);
GUA2:=EMA(上收,20);
DRAWTEXT(CROSS(GUA1,GUA2)AND(C>=O)AND 黄金线>REF(黄金线,1),GUA1*0.97,'★买入'),COLOR00FF00;
AAA1:=MA(上收,3);
箱顶1:=MA(REF(HHV(上收,6),1),3);
箱底1:=MA(REF(LLV(上收,3),1),3);
GUT1:=MA(上收,20)>=REF(MA(上收,20),1);
GUT2:=CROSS(AAA1,箱底1) AND 箱顶1/箱底1>100/100 AND GUT1;
GUT3:=CROSS(箱顶1,AAA1) AND 箱顶1/箱底1>100/100;
AAA:=MA(上收,2);
箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;
箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;
GUT4:=CROSS(AAA,箱底) AND 箱顶/箱底>110/100;
GUT5:=CROSS(箱顶,AAA) AND 箱顶/箱底>110/100;
GUP1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
GUP2:=SMA(GUP1,3,1);
GUP3:=SMA(GUP2,3,1);
GUP4:=SMA(GUP3,3,1);
DRAWTEXT(CROSS(GUP3,GUP4)AND(C>=O)AND GUP3<40 AND UOO>0,LOW*0.96,'★进场'),COLORF00FF0;
STICKLINE(C>=O,C,O,2.5,0),COLORRED;
STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
STICKLINE(C<=O,C,O,2.5,0),COLORGREEN;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),LOW*0.95,'★引爆'),COLOR00FFFF;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,2,0),COLOR00FFFF;