超跌轨:=MA(C,14)*0.9;
赢在龙头:=(L+H+C*4)/6;
趋势轨:=EMA(赢在龙头,12),COLORRED,LINETHICK0;
赢在:=(趋势轨-REF(趋势轨,1))/REF(趋势轨,1)*100;
G:=BArslAST(crOSS(赢在,0))+1;
止损线A:=REF(L,G);
止损线B:=REF(止损线A,BARSLAST(止损线A>REF(止损线A,1) OR 止损线A<REF(止损线A,1))+1);
上趋势:=MA(LOW,20)*1.2;
次上趋势:=MA(LOW,20)*1.1;
次下趋势:=MA(HIGH,20)*0.9;
下趋势:=MA(HIGH,20)*0.8;
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C<次上趋势,2,IF(C<下趋势,0,1)));
超短:=CROSS(超跌轨*1.01,LOW) AND HIGH>=REF(LOW,1);
超短狙击:超短 AND 趋势强度=3 OR (超短 AND COUNT(超短,BARSLAST(趋势强度=3))=1 AND C>MIN(止损线A,止损线B));