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,COLORRED;
马线:MA(牛线,5),COLORGREEN;
MA5:MA(C,5),COLORWHITE;
STICKLINE(C>=牛线 AND C>=O,C,O,3,1),COLORRED;
STICKLINE(C>=牛线 AND C<=O,C,O,3,0),COLORCYAN;
STICKLINE(C>=牛线 AND H>=MAX(C,O),H,MAX(C,O),1,0),COLORRED;
STICKLINE(C>=牛线 AND L<=MIN(C,O),L,MIN(C,O),1,0),COLORRED;
STICKLINE(C<牛线 AND C>O,C,O,3,1),COLORRED;
STICKLINE(C<牛线 AND C
STICKLINE(C<牛线 AND H>=MAX(C,O),H,MAX(C,O),1,0),COLORCYAN;
STICKLINE(C<牛线 AND L<=MIN(C,O),L,MIN(C,O),1,0),COLORCYAN;
STICKLINE((C-REF(C,1))/REF(C,1)>0.095,C,O,3,0),COLORMAGENTA;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,30)*5+C,20);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(CROSS(买线,卖线),L*0.99,1);
DRAWICON(CROSS(卖线,买线),H*1.01,2);
DRAWTEXT(BU,L*0.996,'进'),LINETHICK2,COLORRED;
DRAWTEXT(SEL,H*1.008,'清'),LINETHICK2,COLORGREEN;
风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。
|