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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信顺势主图,源码分享指标公式


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 7 天前
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5);
MA21:MA(CLOSE,21);
MA34:MA(CLOSE,34),COLORMAGENTA;
MA60:MA(CLOSE,55);
AABC1:=(MA(CLOSE,1)+MA(CLOSE,1)+MA(CLOSE,1)+MA(CLOSE,1))/4;
AABC2:=MA(CLOSE,1);
AABC3:=SMA(SMA(SMA(AABC2,2,1),2,1),2,1);
AABC4:=MA(AABC3,2);
DRAWICON(FILTER(CROSS(AABC1,AABC4),1) AND CLOSE/REF(CLOSE,1)>1.05,LOW,1);
STICKLINE(FILTER(CROSS(AABC1,AABC4),1) AND CLOSE/REF(CLOSE,1),C,O,2,0),COLORMAGENTA;
高阳:IF(CURRBARSCOUNT<=CONST(REF(BARSLAST(FILTER(TOPRANGE(V)>=20 AND C>=O AND C>=REF(C,1),1)),1)+1)+1,CONST(REF(REF(C,BARSLAST(FILTER(TOPRANGE(V)>=20 AND C>=O AND C>=REF(C,1),1))),REF(BARSLAST(TOPRANGE(V)>=20 AND C>=O AND C>=REF(C,1)),1)+1)),DRAWNULL),COLORYELLOW,LINETHICK1;
高阴:IF(CURRBARSCOUNT<=CONST(REF(BARSLAST(TOPRANGE(V)>=20 AND C< O AND L<=REF(H,1)),1)+1)+1,CONST(REF(REF(O,BARSLAST(FILTER(TOPRANGE(V)>=20 AND C< O AND L<=REF(H,1),3))),REF(BARSLAST(TOPRANGE(V)>=20 AND C< O AND L<=REF(H,1)),1)+1)),DRAWNULL),COLORLIGREEN ,LINETHICK1;
DRAWTEXT(CURRBARSCOUNT=10,高阳,STRCAT('',CON2STR(高阳,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=10,高阴,STRCAT('',CON2STR(高阴,2))),COLORLIGREEN;
D:=72;
ABC3:=100-3*SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1);
ABC4:=100-3*SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1);
LX:=ABC3,COLORWHITE,LINETHICK2;
ABC24:=EMA(AMOUNT/VOL/100,5);
ABC25:=EMA(AMOUNT/VOL/100,13);
ABC26:=ABC24-ABC25;
CX:=IF(1000*ABC26/ABC24>0,1000*ABC26/ABC24,0),COLORFF44FF,LINETHICK0;
KK:=CROSS(CX,LX);
ABC1:=(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20))*100;
ABC2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,13)-LLV(LOW,13))*100;
做多:=SMA(ABC2,8,1)-2;
做空:=SMA(ABC1,6,1)-7,NODRAW;
STICKLINE(CROSS(做多,LX),C,O,2,0),COLORYELLOW;
资金:=STICKLINE(CROSS(做多,LX),C,O,2,0),COLORYELLOW;
DRAWICON(资金,L*1.01,9);
ZT:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
ZT1:=BARSLAST(ZT);
涨停距今:=ZT1,NODRAW,COLORWHITE;
DRAWTEXT(ZT1=1,H*1.02,'1'),COLORYELLOW;
DRAWTEXT(ZT1=2,H*1.02,'2'),COLORYELLOW;
DRAWTEXT(ZT1=3,H*1.02,'3'),COLORYELLOW;
DRAWTEXT(ZT1=6,H*1.02,'6'),COLORYELLOW;
DRAWTEXT(ZT1=9,H*1.02,'9'),COLORYELLOW;
DRAWTEXT(ZT1=13,H*1.02,'13'),COLORYELLOW;
DRAWICON(CROSS(CX,LX),C*0.85,11);
STICKLINE(CROSS(CX,LX),C,O,2,0),COLORLIRED ;










回复

举报

QQ|

GMT+8, 2024-11-27 17:45

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