VAR2:=EMA(VAR1,7),COLORYELLOW;
VAR3:=(WINNER(120*C/100)-WINNER(100*C/100))*100,COLORGREEN;
VAR4:=60,COLORMAGENTA,LINETHICK2;
年线A:=EMA(C,83);
VAR1A:=EMA(C,3)/1.01,LINETHICK2;
压力A:=MA(LLV(C,3)*1.1,8);
支撑A:=MA(HHV(C,8)*0.9,8);
多空线:=(压力A+支撑A)/2;
VAR3A:=(压力A+支撑A)/2,COLORGREEN;
VAR2A:=SMA(LLV(C,3)*1.1,22,1),COLORYELLOW,LINETHICK2;
背离线:=SMA(年线A-(VAR1A-年线A)*189,5,1),COLORGREEN,LINETHICK2;
寻牛诀:IF(crOSS(VAR1,背离线),1,0),COLORMAGENTA,LINETHICK2,NODRAW;
STICKLINE(寻牛诀,2,0,0,0),COLOR0088EE;
STICKLINE(寻牛诀,2,0,3,0),COLOR0055AA;
STICKLINE(寻牛诀,2,0,2.8,0),COLOR0066BB;
STICKLINE(寻牛诀,2,0,2.5,0),COLOR0077CC;
STICKLINE(寻牛诀,2,0,2.2,0),COLOR0088DD;
STICKLINE(寻牛诀,2,0,1.7,0),COLOR0099EE;
STICKLINE(寻牛诀,2,0,1.2,0),COLOR00AAFF;
STICKLINE(寻牛诀,2,0,0.7,0),COLOR00CCFF;
STICKLINE(寻牛诀,2,0,0.2,0),COLOR00FFFF;
DRAWTEXT(寻牛诀,1.6,' 寻牛诀'),COLORMAGENTA;