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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信量价主升主图指标公式源码


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

DRAWTEXT_FIX(1,0.005,0,0,'所属风格:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.005,0.05,0,'所属概念:'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.06,0.05,0,GNBLOCK),COLORYELLOW;
DIFF:=EMA(C,8)-EMA(C,13);
DEA:=EMA(DIFF,5);
CTA1:=DIFF>DEA;
WU1:=(C-LLV(LOW,8))/(HHV(H,8)-LLV(LOW,8))*100;
K:=SMA(WU1,3,1);
D:=SMA(K,3,1);
CTA2:=K>D;
ZS:=REF(C,1);
NS1:=(SMA(MAX(C-ZS,0),5,1))/(SMA(Abs(C-ZS),5,1))*100;
NS2:=(SMA(MAX(C-ZS,0),13,1))/(SMA(ABS(C-ZS),13,1))*100;
CTA3:=NS1>NS2;
WU:=-(HHV(H,13)-C)/(HHV(H,13)-LLV(LOW,13))*100;
CTB5:MA(C,5)DOTLINE;
CTB10:MA(C,13)LINETHICK2;
主力突破1:=SMA(WU,3,1);
主力突破2:=SMA(主力突破1,3,1);
CTA4:=主力突破1>主力突破2;
bbi:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
CTA5:=C>BBI;
擒牛:=C-REF(C,1);
擒牛J:=100*EMA(EMA(擒牛,5),3)/EMA(EMA(ABS(擒牛),5),3);
擒牛M:=100*EMA(EMA(擒牛,13),8)/EMA(EMA(ABS(擒牛),13),8);
CTA6:=擒牛J>擒牛M;
擒牛S:=(C*2+H+L)/4;
DT:=EMA(擒牛S,13)-EMA(擒牛S,34);
ZT:=EMA(DT,5);空头:=(-2*(DT-ZT))*3.8,COLORGREEN;
多头:=(2*(DT-ZT))*3.8,COLORRED;
CTA7:=多头>空头;MA11:=MA(C,5);
MA22:=REF(MA(C,5),1);
GZB2:=IF(MONTH<12,1,1);
GZB3:=(2*C+H+LOW)/4;
GZB4:=LLV(LOW,34);
GZB5:=HHV(H,34);
主力:=EMA((GZB3-GZB4)/(GZB5-GZB4)*100,13)*GZB2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
CTA9:=主力>散户;
CTA10:=(多头>空头)AND(主力>散户);
CTA11:=(多头>空头)AND(主力>散户)AND(DIFF>DEA)AND(K>D)AND(NS1>NS2)AND(主力突破1>主力突破2)AND(C>BBI)AND(擒牛J>擒牛M);
量价主升:=BARSLASTCOUNT((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11))=1;
DRAWICON((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11),L,1);
STICKLINE((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11),OPEN,C,2,0),COLORYELLOW;
STICKLINE((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11),OPEN,C,1,0),COLORFF00FF;
DRAWICON(量价主升,L,25);DRAWTEXT(量价主升,L*0.96,'★量价主升'),COLORYELLOW;





回复

举报

QQ|

GMT+8, 2024-11-24 01:34

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