VAR1:=EMA(CLOSE,8)-EMA(CLOSE,13);
VAR2:=EMA(VAR1,5);
VAR3:=VAR1>VAR2;
VAR4:=IF(VAR3,1,0);
VAR5:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
VAR6:=SMA(VAR5,3,1);
VAR7:=SMA(VAR6,3,1);
DRAWICON(VAR6>VAR7,2,25);
DRAWICON(VAR6<VAR7,2,27);
VAR8:=VAR6>VAR7;
VAR9:=IF(VAR8,2,0);
VAR10:=REF(CLOSE,1);
VAR11:=SMA(MAX(CLOSE-VAR10,0),5,1)/SMA(ABS(CLOSE-VAR10),5,1)*100;
VAR12:=SMA(MAX(CLOSE-VAR10,0),13,1)/SMA(ABS(CLOSE-VAR10),13,1)*100;
DRAWICON(VAR11>VAR12,3,25);
DRAWICON(VAR11<VAR12,3,27);
VAR13:=VAR11>VAR12;
VAR14:=IF(VAR13,3,0);
VAR15:=(-(HHV(HIGH,13)-CLOSE))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR16:=SMA(VAR15,3,1);
VAR17:=SMA(VAR16,3,1);
DRAWICON(VAR16>VAR17,4,25);
DRAWICON(VAR16<VAR17,4,27);
VAR18:=VAR16>VAR17;
VAR19:=IF(VAR18,4,0);
VAR20:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DRAWICON(CLOSE>VAR20,5,25);
DRAWICON(CLOSE<VAR20,5,27);
VAR21:=CLOSE>VAR20;
VAR22:=IF(VAR21,5,0);
VAR23:=CLOSE-REF(CLOSE,1);
VAR24:=100*EMA(EMA(VAR23,5),3)/EMA(EMA(ABS(VAR23),5),3);
VAR25:=100*EMA(EMA(VAR23,13),8)/EMA(EMA(ABS(VAR23),13),8);
DRAWICON(VAR24>VAR25,6,25);
DRAWICON(VAR24<VAR25,6,27);
VAR26:=VAR24>VAR25;
VAR27:=IF(VAR26,6,0);
涨买入:IF(VAR3 AND VAR8 AND VAR13 AND VAR18 AND VAR21 AND VAR26 AND REF(VAR3 AND VAR8 AND VAR13 AND VAR18 AND VAR21 AND VAR26,1)=0,7,0),COLORYELLOW,LINETHICK2;
上涨:IF(VAR3 AND VAR8 AND VAR13 AND VAR18 AND VAR21 AND VAR26,7,0),COLORYELLOW,LINETHICK2;
钻石闪耀:BARSLASTCOUNT(VAR3 AND VAR8 AND VAR13 AND VAR18 AND VAR21 AND VAR26),LINETHICK0;
曙光:BARSLASTCOUNT(VAR4+VAR9+VAR14+VAR19+VAR22+VAR27>0 AND VAR4+VAR9+VAR14+VAR19+VAR22+VAR27<21),LINETHICK0;
黑暗:BARSLASTCOUNT(VAR4+VAR9+VAR14+VAR19+VAR22+VAR27=0),LINETHICK0;