VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=REF(LLV(CLOSE,480),1);
VAR6:=REF(HHV(CLOSE,480),1);
VAR7:=100*(CLOSE-VAR5)/(VAR6-VAR5);
VAR8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;
VAR9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;
VARA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;
VARB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;
VARC1:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);
VARC:=VARC1/4;
VARD:=IF(VARC>23.6,VARC,0);
VARE:=VARC< 1;
VARF:=VARD;
VAR10:=VAR4< VAR7 AND VAR4< 0;
VAR11:=1;
VAR12:=(HIGH+LOW+CLOSE*2)/4*VAR11;
VAR13:=EMA(VAR12,21);
VAR14:=STD(VAR12,21);
VAR15:=((VAR12-VAR13)/VAR14*100+200)/4*VAR11;
VAR161:=EMA(VAR15,89);
VAR16:=(VAR161-25)*1.56*VAR11;
VAR171:=EMA(VAR16,5);
VAR17:=VAR171*1.22*VAR11;
VAR181:=EMA(VAR17,3);
VAR18:=VAR181*VAR11;
VAR19:=3*VAR17-2*VAR18*VAR11;
VAR1A:=IF(crOSS(VAR19,VAR17)AND CROSS(VAR19,VAR18)AND CROSS(VAR17,VAR18),1,0);
VAR1B:=IF(CROSS(VAR17,VAR19)AND CROSS(VAR18,VAR19)AND CROSS(VAR18,VAR17),1,0);
VAR1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;
VAR1D1:=EMA(CLOSE,2);
VAR1D2:=EMA(CLOSE,89);
VAR1D:=VAR1D1-VAR1D2;
VAR1E:=EMA(VAR1D,30);
VAR1F:=(VAR1D-VAR1E)*20;
VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2);
VAR21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR22:=EMA(VAR21*0.97,3);
VAR23:=(HIGH+LOW+CLOSE)/3;
VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14));
VAR25:=IF(VAR1F>0.015,VAR20,0)/45;
主升线:=VAR25;
VAR261:=EMA(CLOSE,2);
VAR262:=EMA(CLOSE,150);
VAR26:=VAR261-VAR262;
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR2B:=EMA(VAR2A*0.97,3);
VAR2C:=(HIGH+LOW+CLOSE)/3;
VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));
黑马线:=IF(VAR28>0.1,VAR29,0)*5,LINETHICK2;
量价线:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100,LINETHICK2;
常数线:=0;
偏移:=(H,10);
观察:=MA(H,10);
DRAWICON(LONGCROSS(偏移,观察,1),L*0.9975,1);
DRAWICON(LONGCROSS(观察,偏移,1),H*1.0025,2);
MA5:MA(CLOSE,5) COLORMAGENTA;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
XG:=MACD>0;
DRAWICON(CROSS(量价线,黑马线)AND XG,L,26);
STICKLINE(CROSS(量价线,黑马线)AND XG,O,C,2.2,0),COLORRED;
量价排列:=主升线>黑马线 AND 量价线;
黑马:=BARSLASTCOUNT(量价排列)=1;
STICKLINE(黑马,O,C,2.2,0),COLORYELLOW;
DRAWICON(黑马,L*0.98,9);