股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

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


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-8 23:40:07

以下是通达信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;







回复

举报

QQ|

GMT+8, 2024-11-17 00:37

快速回复 返回顶部 返回列表