v1:ema(close,5);
v2:ema(ema(close,90)*1.01,10),LINETHICK2;
DRAWICON(cross(v1,v2),v2,1);
DRAWTEXT(cross(v1,v2),v1+0.05,'金鼠送宝'),color00ff00;
{跟进:(cross(v1,v2));}
bbi:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,colorwhite;
VAR1:=IF(DATE<1500830 AND DATE>900101,1,0);
VAR2:=LLV(LOW,10);
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
AB:=CROSS(AK1,AK);
DRAWTEXT((AB = 1),(LOW * 0.99),'快乐金鼠窝'),colorYELLOW;
QY1:=100-3*SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);
QY2:=100-3*SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);
QY3:=QY1<REF(QY2,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
XG:DRAWTEXT(QY3 AND COUNT(QY3,30)=1,L,'下钱雨了'),Color00FFFF;
{下钱雨了:QY3 AND COUNT(QY3,30)=1}
;VAR3:=HHV(HIGH,25);
动能趋势线:=100*EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1;
K1:=(20/10)*VAR1*100;
K2:=(32/10)*VAR1*100;
K3:=(35/10)*VAR1*100;
DRAWTEXT(CROSS(动能趋势线,K1),HIGH*1.02,'风险'),Color00FFFF;
DRAWTEXT(CROSS(动能趋势线,K2),HIGH*1.02,'减仓'),ColorFF0000;
DRAWTEXT(CROSS(动能趋势线,K3),HIGH*1.02,'出局'),Color0000FF;
M:=MA((C+O+H+L)/4,2);
M3:MA(M,3),Color000000;
M5:MA(M3,5),Color000000;
买入:=CROSS(M3,M5);
{买入显示}
DRAWTEXT(买入,LOW*0.98,'▲'),COLOR0000FF;
DRAWTEXT(买入,LOW*0.975,'∣'),COLOR0000FF;
DRAWTEXT(买入,LOW*0.975,'‖'),COLOR0000FF;