K2:=EMA(C,5),COLORFFFF00;
K3:=EMA(C,10),COLORFFFF00;
K5:=EMA(C,30),COLORFFFF00;KK5:=EMA(INDEXC,30),COLORFFFF00;
K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6),COLORRED;
STICKLINE(CROSS(K8,0),0,15,3,0),COLORRED;
K1:=IF(K8>REF(K8,5) AND K3
K21:=IF(K8>REF(K8,7) AND K3
K31:=IF(K8>REF(K8,9) AND K3
K4:=IF(K8>REF(K8,11) AND K3
底部:STICKLINE((K1 OR K21 OR K31 OR K4) AND K8<0 AND K8>REF(K8,1),10,0,3,0) ,COLORYELLOW;
VAR3:=REF(HIGH,1)*1.1;
VAR4:=HIGH*1.1;
VAR5:=(VAR4*VOL+VAR3*(CAPITAL-VOL))/CAPITAL;
VAR6:=REF(LOW,1)*0.9;
VAR7:=LOW*0.9;
VAR8:=(VAR7*VOL+VAR6*(CAPITAL-VOL))/CAPITAL;
VAR9:=EMA(VAR8,30);
VARA:=EMA(VAR5,30);
VARB:=VARA-2;
VARC:=IF(CLOSE<=VAR9,VARB,VARA);
VARD:=MA(CLOSE,80)-MA(CLOSE,10)/17;
VARE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
卖出线:SMA(SMA(VARE,3,1),3,1),COLORFF6633 ;
买入线:3*SMA(VARE,3,1)-2*卖出线 ,COLORRED ;
顶:STICKLINE(CROSS(90,买入线),108,98,6,0),COLORGREEN ;
STICKLINE(CROSS(90,买入线),100,98,10,0),COLORGREEN ;
黄金点:STICKLINE(SMA(VARE,3,1)>卖出线,SMA(VARE,3,1),卖出线,3,0),COLORYELLOW;
DRAWICON(CROSS(90,买入线),90,4);
IF(C>0,买入线,DRAWNULL),COLORRED;
IF(C>0,卖出线,DRAWNULL),COLORFF6633;
IF(C>0,0,DRAWNULL),COLORGREEN;
IF(C>0,100,DRAWNULL),COLORMAGENTA;