YM1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
YM2:=C-REF(C,1);
YM3:=100*EMA(EMA(YM2,6),6)/EMA(EMA(Abs(YM2),6),6);
YM4:=LLV(YM3,2)=LLV(YM3,7) AND COUNT(YM3<0,2) AND crOSS(YM3,MA(YM3,2));
YM5:=REF(HHV(H,150),3);
YM6:=REF(LLV(L,150),3);
YM7:=YM5-(YM5-YM6)*0.191;
YM8:=YM5-(YM5-YM6)*0.382;
YM9:=YM5-(YM5-YM6)*0.5;
GS:=YM5-(YM5-YM6)*0.618;
GYM:=YM5-(YM5-YM6)*0.809;
牛线:(20*YM1+19*REF(YM1,1)+18*REF(YM1,2)+17*REF(YM1,3)+16*REF(YM1,4)+15*REF(YM1,5)+14*REF(YM1,6)+13*REF(YM1,7)+12*REF(YM1,8)+11*REF(YM1,9)+10*REF(YM1,10)+9*REF(YM1,11)+8*REF(YM1,12)+7*REF(YM1,13)+6*REF(YM1,14)+5*REF(YM1,15)+4*REF(YM1,16)+3*REF(YM1,17)+2*REF(YM1,18)+REF(YM1,20))/210,COLORRED;
马线:MA(牛线,6),COLORGREEN;
MAA5:MA(C,5),COLORFF00FF,LINETHICK2;
DRAWTEXT(FILTER(YM4=1,5),LOW-0.05,'↖买进'),COLORYELLOW;
STICKLINE(YM4,OPEN,CLOSE,2,0),COLORYELLOW;
顶:REFDATE(YM5,DATE),COLORRED;
一809:REFDATE(YM7,DATE),COLORYELLOW;
二618:REFDATE(YM8,DATE),COLORMAGENTA;
三500:REFDATE(YM9,DATE),COLORWHITE;
四382:REFDATE(GS,DATE),COLORGREEN;
五191:REFDATE(GYM,DATE),COLORYELLOW;
低:REFDATE(YM6,DATE),COLORRED;