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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[飞狐] 极品等价K线主副图均可


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

极品等价K线主副图均可

源码

INPUT:N(5,1,100);
fc:=c;fo:=o;cc:0*c,PRECISION4,LINETHICK0;oo:0*c,PRECISION4,LINETHICK0;t1:=0*c;t2:=0*c;
for i=1 to datacount do begin
if i=1 and fc>fo then
cc:=fc;
oo:=fc;
if i=1 and fc<fo then
cc:=fc;
oo:=fc;
if i>1 then
cc:=cc[i-1];
oo:=oo[i-1];
if i>1 and fc>cc*(1+n/1000) then begin
cc:=cc[i-1]*(1+n/1000);
oo:=cc[i-1];
end;
if i>1 and fc<oo/(1+n/1000) then begin
oo:=oo[i-1]/(1+n/1000);
cc:=oo[i-1];
end;
if oo=oo[i-1] then
t1:=t1[i-1]+1;
if cc=cc[i-1] then
t2:=t2[i-1]+1;
end;
o1:=ref(oo,t1+1);
c1:=ref(cc,t2+1);
格子点数:abs(cc-oo),PRECISION4,linethick0;
STICKLINE(c1=oo,ref(cc,1),ref(oo,1),1,1)COLORRED;
STICKLINE(c1=oo,cc,oo,8,1)COLORRED;
STICKLINE(o1=cc,ref(cc,1),ref(oo,1),1,1)COLORCYAN;
STICKLINE(o1=cc,cc,oo,8,1)COLORCYAN;






回复

举报

GMT+8, 2025-2-22 18:01

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