MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
马线:=MA(牛线,5);
买卖线:=MA(牛线,2);
DRAWTEXT(CROSS(牛线,买卖线),L*0.99,'B买入'),COLORRED,LINETHICK3;
DRAWTEXT(CROSS(买卖线,牛线),H*1.008,'S卖出'),COLORGREEN,LINETHICK3;
STICKLINE(牛线>=买卖线,LOW,HIGH,0,0),COLORRED;
STICKLINE(牛线>=买卖线,CLOSE,OPEN,2.5,0),COLOR0000AA;
STICKLINE(牛线>=买卖线,CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE(牛线>=买卖线,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(牛线>=买卖线,CLOSE,OPEN,1,0),COLOR0000EE;
STICKLINE(牛线<买卖线,CLOSE,OPEN,2.5,0),COLORAAAA00;
STICKLINE(牛线<买卖线,CLOSE,OPEN,2,0),COLORBBBB00;
STICKLINE(牛线<买卖线,CLOSE,OPEN,1.5,0),COLORCCCC00;
STICKLINE(牛线<买卖线,CLOSE,OPEN,1,0),COLOREEEE00;
STICKLINE(牛线<买卖线,LOW,HIGH,0,0),COLORFFFF00;
STICKLINE(CROSS(牛线,买卖线) OR CROSS(买卖线,牛线),OPEN,CLOSE,3,0),COLOR00FFFF;
主力成本线:牛线,COLORYELLOW;
资金生命线:马线,COLORMAGENTA;
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),,COLORMAGENTA;
STICKLINE(涨停,H,L,0,0),,COLORMAGENTA;
ZF:=(C-REF(C,1))/REF(C,1)*100;
每天一个点:=C>O AND ZF<0 AND O<REF(L,1);
STICKLINE(每天一个点,O,C,2,0),COLORYELLOW;