VAR1:=35;
VAR2:=45;
VAR3:=REF(CLOSE,1);
VAR4:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(Abs(CLOSE-VAR3),7,1)*100;
VAR5:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(ABS(CLOSE-VAR3),7,1)*100;
牛股:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(ABS(CLOSE-VAR3),7,1)*100,COLORRED;
VAR6:=SMA(牛股,7,1);
VAR7:=MA((CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*50,17)+9;
VAR8:=MA((CLOSE-LLV(LOW,53))/(HHV(HIGH,53)-LLV(LOW,53))*50,17)+9;
VAR10:=MA(VAR7,7)*1.372;
VAR11:=VAR10*1.0887;
VAR12:=1.5*(VAR8+VAR6)-(VAR11+VAR10)+12;
骑牛找马:IF(crOSS(VAR5,VAR6) OR CROSS(VAR5,VAR12) AND VAR12<VAR1 AND VAR4<VAR2,45,28),COLORYELLOW;