ZHY123 RSI和均线买卖
{ZHY123}
五:MA(CLOSE,5);
十:MA(CLOSE,10);
二十:MA(CLOSE,20);
六十:MA(CLOSE,60);
STICKLINE(C>=O,C,O,3,0),COLOR0000AA;
STICKLINE(C>=O,C,O,2,0),COLOR0000BB ;
STICKLINE(C>=O,C,O,0.8,0),COLOR0000CC ;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000EE;
STICKLINE(C>=O,H,L,0,0),COLOR0000FF;
STICKLINE(C<=O,C,O,3,0),COLOR7B7B00;
STICKLINE(C<=O,C,O,2,0),COLOR909000;
STICKLINE(C<=O,C,O,0.8,0),COLORA8A800;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
买线:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
卖线:=SMA(MAX(CLOSE-REF(CLOSE,1),0),24,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),24,1)*100;
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,LOW,'B'),COLORYELLOW,LINETHICK1;
DRAWTEXT(SEL,HIGH,'S'),COLORFFFF00,LINETHICK1;
{ZHY122 五日线买卖}
五:MA(CLOSE,5);
年线:MA(CLOSE,250);
STICKLINE(C>=O,C,O,3,0),COLOR0000AA;
STICKLINE(C>=O,C,O,2,0),COLOR0000BB ;
STICKLINE(C>=O,C,O,0.8,0),COLOR0000CC ;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000EE;
STICKLINE(C>=O,H,L,0,0),COLOR0000FF;
STICKLINE(C<=O,C,O,3,0),COLOR7B7B00;
STICKLINE(C<=O,C,O,2,0),COLOR909000;
STICKLINE(C<=O,C,O,0.8,0),COLORA8A800;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
买线:=CLOSE;
卖线:=MA(CLOSE,5);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,LOW,'B'),COLORYELLOW,LINETHICK1;
DRAWTEXT(SEL,HIGH,'S'),COLORFFFF00,LINETHICK1;