通达信ZHY123 RSI和均线买卖源码副图

[复制链接]
查看43 | 回复0 | 2022-7-24 05:02:08 | 显示全部楼层 |阅读模式

{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;

1829500257.jpg

1829500257.jpg

1829566869.png

1829566869.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则