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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信五日资金指标公式源码副图


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

{五日资金} {买卖量} 大单买:SUM(IF(C>REF(C,1) AND V>4000,V/5,0),0),COLORRED,LINETHICK1,NODRAW; 大单卖:SUM(IF(C<REF(C,1) AND V>4000,V/5,0),0),COLORGREEN,LINETHICK1,NODRAW; 买单总:=SUM(IF(C>REF(C,1),V/5,0),0); 卖单总:=SUM(IF(C<REF(C,1),V/5,0),0); 小单买:买单总-大单买,COLORLIRED,DOTLINE,NODRAW; 小单卖:卖单总-大单卖,COLORLIGREEN,DOTLINE,NODRAW; 量极值:=CONST(vol); 大单买量:=SUM(IF(C>REF(C,1) AND V>4000,V/1000,0),0),NODRAW; 大单卖量:=SUM(IF(C<REF(C,1) AND V>4000,V/1000,0),0),NODRAW; 买单总量:=SUM(IF(C>REF(C,1),V/1000,0),0),NODRAW; 卖单总量:=SUM(IF(C<REF(C,1),V/1000,0),0),NODRAW; 小单买量:=买单总量-大单买量,NODRAW; 小单卖量:=卖单总量-大单卖量,NODRAW; 大宗进:=大单买量,NODRAW; 大宗出:=大单卖量,NODRAW; 非大宗进:=小单买量,NODRAW; 非大宗出:=小单卖量,NODRAW; 主力净流入:=大单买量-大单卖量,COLORRED,NODRAW; 散户净流入:=小单买量-小单卖量,COLORRED,NODRAW; 净流入:=买单总量-卖单总量,COLORRED,NODRAW; 均价:=SUM(V*C,0)/SUM(V,0),COLORYELLOW; DRAWTEXT_FIX(1,0.2,0.00,0,STRCAT(STRCAT('主力: ',CON2STR(主力净流入,0)),'万')),COLORMAGENTA; DRAWTEXT_FIX(1,0.5,0,0,STRCAT(STRCAT('散 户:',CON2STR(散户净流入,0)),'万')),COLORCYAN; DRAWTEXT_FIX(1,0.9,0,0,STRCAT(STRCAT('净入:',CON2STR(净流入,0)),'万手')),COLORYELLOW; 量:V,VOLSTICK; 资金万:=AMO/10000; 资金1:=资金万>500 AND 资金万<1000; 资金2:=资金万>1000; TXT:=VARCAT(VAR2STR(资金万/1000,1),'亿'); STICKLINE(资金1 AND C>REF(C,1),0,V,0,0),COLORLIRED; STICKLINE(资金1 AND C<REF(C,1),0,V,0,0),COLORGREEN; STICKLINE(资金2 AND C>REF(C,1),0,V,0,0),COLORLIMAGENTA; STICKLINE(资金2 AND C<REF(C,1),0,V,0,0),COLORBLUE; NN:=2400; HD:=HHV(V,NN); LD:=LLV(V,NN); 最高:=CONST(HD),NODRAW; 最低:=CONST(LD),NODRAW; HLMAX:=最高; HLMIN:=最低; HLMN1:=(HLMAX+HLMIN)/2; HLMN2:=HLMAX-HLMIN; HLMN3:=(100-0)/2*1.3; HLMN4:=(100-0)/1*1.3; 中间价轴:=(50-HLMN3)*HLMN2/HLMN4+HLMN1; 轴差:=最高-最低; 拉升量:=IF(C>REF(C,1),VOL,0); 打压量:=IF(C<REF(C,1),VOL,0); 昨拉升最高值:=CONST(FINDHIGH(拉升量,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA; 昨打压最高值:=CONST(FINDHIGH(打压量,FROMOPEN,240,1)),LINETHICK1,COLORCYAN,NODRAW; 今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0)),COLORRED; 今打压最高值:=CONST(REF(HHV(打压量,FROMOPEN),0)),COLORCYAN,NODRAW; 攻击力度:=今拉升最高值/昨拉升最高值,NODRAW; 量能均线:=SUM(V,FROMOPEN)/FROMOPEN; 五日量:=MA(量,5),COLORWHITE; TT:=BARSCOUNT(C); 均价黄:=SUM(C*V,TT)/SUM(V,TT); 量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2); 价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2); 价上岗量破5:=C>均价黄 AND V>MA(V,5); 量起爆:=V>=REF(V,1)*1; 价创新高:=C>=HHV(C,0); 量创新高:=V>=HHV(V,0);

源码未复制完...下载附里文件源码.....








回复

举报

QQ|

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

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