VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,13,8);
看涨:=SMA(VAR3,13,8),COLORRED;
看跌:=SMA(VAR1,21,8),COLORFFFF00;
买入:crOSS(看涨,看跌);
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,13,8);
看涨:=SMA(VAR3,13,8),COLORRED;
看跌:=SMA(VAR1,21,8),COLORFFFF00;
买入:crOSS(看涨,看跌);