主力:=3000*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30),COLORYELLOW,LINETHICK2;
趋势线:=EMA(主力,7),COLORYELLOW;
散户:=(WINNER(120*C/100)-WINNER(100*C/100))*100,COLORGREEN;
走牛:=60,COLORMAGENTA,LINETHICK2;
年线A:=EMA(C,83);
主力A:=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;
散户A:=(压力A+支撑A)/2,COLORGREEN;
趋势线A:=SMA(LLV(C,3)*1.1,22,1),COLORYELLOW,LINETHICK2;
背离线:=SMA(年线A-(主力A-年线A)*189,5,1),COLORGREEN,LINETHICK2;
寻牛诀:IF(CROSS(主力,背离线),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;