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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信快慢线附图源码贴图


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

以下是通达信快慢线附图源码贴图

附图快慢线指标一并奉献!

STICKLINE(1,100,100,20,0),COLORGREEN;

STICKLINE(1,90,90,1,0),COLORGREEN;

STICKLINE(1,10,10,1,0),COLORYELLOW;

STICKLINE(1,0,0,20,0),COLORYELLOW;

VAR6:=(2*CLOSE+HIGH+LOW)/4;

VAR7:=LLV(LOW,13);

VAR8:=HHV(HIGH,13);

VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);

VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);

RSV:= (CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;

FASTK:=SMA(RSV,5,1);

K:=SMA(FASTK,5,1);

D:=SMA(K,3,1);

AA1:=K-REF(K,1);

STICKLINE(VAR9>VARA,VARA,VARA+(1/5)*(VAR9-VARA),4,0),COLOR00FFFF;

STICKLINE(VAR9>VARA,VARA+(1/5)*(VAR9-VARA),VARA+(2/5)*(VAR9-VARA),4,0),COLOR00CCFF;

STICKLINE(VAR9>VARA,VARA+(2/5)*(VAR9-VARA),VARA+(3/5)*(VAR9-VARA),4,0),COLOR0099FF;

STICKLINE(VAR9>VARA,VARA+(3/5)*(VAR9-VARA),VARA+(4/5)*(VAR9-VARA),4,0),COLOR0066FF;

STICKLINE(VAR9>VARA,VARA+(4/5)*(VAR9-VARA),VARA+(5/5)*(VAR9-VARA),4,0),COLOR0033FF;

STICKLINE(VAR9<=VARA,VARA,VARA-(1/5)*(VAR9-VARA),4,0),COLOR00FF33;

STICKLINE(VAR9<=VARA,VARA-(1/5)*(VAR9-VARA),VARA-(2/5)*(VAR9-VARA),4,0),COLOR33FF33;

STICKLINE(VAR9<=VARA,VARA-(2/5)*(VAR9-VARA),VARA-(3/5)*(VAR9-VARA),4,0),COLOR66FF33;

STICKLINE(VAR9<=VARA,VARA-(3/5)*(VAR9-VARA),VARA-(4/5)*(VAR9-VARA),4,0),COLOR99FF33;

STICKLINE(VAR9<=VARA,VARA-(4/5)*(VAR9-VARA),VARA-(5/5)*(VAR9-VARA),4,0),COLORCCFF33;

STICKLINE(AA1>0,REF(K,1),REF(K,1)+(1/5)*(K-REF(K,1)),6,0),COLOR0000FF;

STICKLINE(AA1>0,REF(K,1)+(1/5)*(K-REF(K,1)),REF(K,1)+(2/5)*(K-REF(K,1)),6,0),COLOR3300FF;

STICKLINE(AA1>0,REF(K,1)+(2/5)*(K-REF(K,1)),REF(K,1)+(3/5)*(K-REF(K,1)),6,0),COLOR6600FF;

STICKLINE(AA1>0,REF(K,1)+(3/5)*(K-REF(K,1)),REF(K,1)+(4/5)*(K-REF(K,1)),6,0),COLOR9900FF;

STICKLINE(AA1>0,REF(K,1)+(4/5)*(K-REF(K,1)),REF(K,1)+(5/5)*(K-REF(K,1)),6,0),COLORCC00FF;

STICKLINE(AA1<=0,REF(K,1),K,6,0),COLORFFFF00;

快速涨:IFF(VAR9>VARA,(VAR9+VARA)/2,DRAWNULL),NODRAW,COLOR00FFFF;

快速跌:IFF(VAR9<=VARA,(VAR9+VARA)/2,DRAWNULL),NODRAW,COLOR00FF33;

慢速涨:IFF(AA1>0,K,DRAWNULL),NODRAW,COLORCC00FF;

慢速跌:IFF(AA1<=0,K,DRAWNULL),NODRAW,COLORFFFF00;









回复

举报

QQ|

GMT+8, 2024-11-18 15:31

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