VAR48:=((CLOSE-(LLV(LOW,9)))/((HHV(HIGH,9))-(LLV(LOW,9))))*100;
VAR49:=SMA(VAR48,3,1);
VAR50:=SMA(VAR49,3,1);
VAR51:=MA(CLOSE,90);
VAR52:=((CLOSE-VAR51)/VAR51)*100;
VAR53:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR54:=SMA(VAR53,3,1);
VAR55:=SMA(VAR54,3,1);
VAR56:=(crOSS(VAR54,VAR55))*60;
VAR57:=MA(CLOSE,27);
VAR58:=((CLOSE-VAR57)/VAR57)*100;
VAR59:=(MA(VAR58,3));
VAR60:=BARSLAST(((CROSS(-10,VAR59))=1));
VAR61:=BARSLAST(((CROSS(VAR59,10))=1));
VAR62:=((VAR59< -10)&&(VAR60>3));
VAR63:=((VAR59>10)&&(VAR61>3));
安全:=(((IF(VAR62,VAR59,0))< 0)*-10),COLORGREEN;
龙抬头:=((((((VAR56&&安全)&&((VAR49-VAR50)>1.5))&&(OPEN!=HIGH))&&(VAR52< -10))||(安全&&(CROSS(VAR49,VAR50))))*20)*1;
趋势线2:=MA((CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,2);
钻石底:(趋势线2< -20)*1;
趋势顶部:=27;
趋势底部:=55;
多方力度:=(3*SMA((CLOSE-LLV(LOW,趋势顶部))/(HHV(HIGH,趋势顶部)-LLV(LOW,趋势顶部))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,趋势顶部))/(HHV(HIGH,27)-LLV(LOW,趋势顶部))*100,5,1),3,1)),COLOR00FFFF,LINETHICK2;
空方力度:=100*(HHV(HIGH,趋势底部)-CLOSE)/(HHV(HIGH,趋势底部)-LLV(LOW,趋势底部)),COLOR00EC00,LINETHICK1;
趋势线:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,15)+MA(CLOSE,20))/4;
生命线:=EMA(CLOSE,55);
量比:=V/REF(MA(V,1),1);
金银袋:(C>生命线&&L< 生命线&&C>趋势线&&crOSS(多方力度,空方力度)&&C/REF(C,1)>1.02&&量比>1.1&&C>O&&H/MAX(O,C)< 1.05)*1;

