VAR1:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
慢阿星: SMA(VAR1,10,1);
VAR2:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100;
快阿星1: SMA(VAR2,3,1);
快阿星2: SMA(快阿星1,3,1);
买进: IF(慢阿星<5 AND VOL>1.5*MA(VOL,5) AND CROSS(快阿星2,慢阿星),50,0);
卖出: IF(慢阿星>80 AND CROSS(慢阿星,快阿星2),60,0);
VAR3:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR4:=REF(VAR3,1);
VAR5:=SMA(MAX(VAR3-VAR4,0),10,1)/SMA(ABS(VAR3-VAR4),10,1)*100;
段底: IF(COUNT(VAR5<20,5)>=1 AND COUNT(VAR3=LLV(VAR3,5),10)>=1 AND((C-REF(C,1))/(REF(C,1))>0.05) AND CLOSE>REF(OPEN,1) AND VOL>1.5*MA(VOL,5),60,0);
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=LLV(LOW,34);
VAR8:=HHV(HIGH,34);
VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);
VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);
持仓: IF(VAR9>VARA,2,-1);
空仓: IF(VAR9<VARA,2,-1);
VARB:=SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
买: IF(REF(VARB,1)<20 AND (CLOSE/REF(CLOSE,1)-1)*100>9 AND CLOSE=HIGH,85,0);
VARC:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VARD:=REF(VARC,1);
VARE:=SMA(MAX(VARC-VARD,0),10,1)/SMA(ABS(VARC-VARD),10,1)*100;
底部:=IF(COUNT(VARE<=12,2),30,0);
买1: IF(CROSS(VARE,底部) AND VOL>1.5*MA(VOL,5),60,0);