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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信原创主力持仓和散户持仓的彩条附图


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

以下是通达信原创主力持仓和散户持仓的彩条附图

JJ:=(HIGH+LOW+CLOSE)/3,NODRAW;
QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW),NODRAW;
TD1:=QJ0*(MIN(OPEN,CLOSE)-LOW),NODRAW;
DD1:=QJ0*(JJ-MIN(CLOSE,OPEN)),NODRAW;
DD2:=QJ0*(HIGH-MAX(OPEN,CLOSE)),NODRAW;
TD2:=QJ0*(MAX(CLOSE,OPEN)-JJ),NODRAW;
TD:=TD1-TD2,NODRAW;
DA:=DD1-DD2,NODRAW;
XD1:=1-(TD1+DD1),NODRAW;
XD2:=1-(TD2+DD2),NODRAW;
TZ:=V/SUM(V,60)*100,NODRAW;
DT:=((XD1-XD2)/1000000)/TZ,NODRAW;
散户持仓:SUM(DT,220),COLOR888888,LINETHICK1,NODRAW;
DX:=((TD1+DD1)-(TD2+DD2))/1000000,NODRAW;
主力持仓:SUM(DX,600),COLORWHITE,LINETHICK1,NODRAW;
DRAWRECTREL(400,0,635,320,RGB(0,100,0));
DRAWRECTREL(470,0,550,320,RGB(0,200,50));
DRAWRECTREL(470,0,470+CONST(主力持仓*150/400),320,RGB(150,10,0));
DRAWTEXT_FIX(1,0.42,0.020,0,STRCAT(STRCAT('主力持仓: ',CON2STR(主力持仓,2)),'')),COLORYELLOW;
DRAWRECTREL(400,460,635,750,RGB(0,50,160));
DRAWRECTREL(470,460,550,750,RGB(0,200,50));
DRAWRECTREL(470,460,470+CONST(散户持仓*140/400),750,RGB(150,10,0));
DRAWTEXT_FIX(1,0.42,0.43,0,STRCAT(STRCAT('散户持仓: ',CON2STR(散户持仓,2)),'')),COLORYELLOW;





回复

举报

QQ|

GMT+8, 2024-11-16 20:42

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