drawgbk(1,colorrgb(100,100,100),colorrgb(50,50,50),1);
{涨跌互现}
hh:=sysparam(4); ll:=sysparam(5);//对应画面空间
dc:=indexc,linethick;
ggs:=barscount(c);
var1:=zig(4,15);//个股
gs1:=peakbars(4,15,1);
var2:=flatzig(dc,15);//大盘
ps1:=peakbars(dc,15,1);
xx:=var1<ref(var1,1);
yy:=var2<ref(var2,1);
fillrgn(xx,hh,ll),color08683c,color4400;
fillrgn(not(xx),hh,ll),colore3c3f3;
{涨跌互现}
股峰:peak(4,15,1),linethick;f1:=strtonum(numtostr(ggs-barssince(股峰),0));
股谷:trough(4,15,1),linethick;g1:=strtonum(numtostr(ggs-barssince(股谷),0));
大盘峰:peak(dc,15,1),linethick;df:=strtonum(numtostr(ggs-barssince(大盘峰),0));
大盘谷:trough(dc,15,1),linethick;dg:=strtonum(numtostr(ggs-barssince(大盘谷),0));
个股:var1,color00ddff,linethick2,coloryellow;
大盘:ll+var2*(hh-ll),colorffaf00,linedot;
wf:=ggs<f1;wg:=ggs<g1;wfs:=count(wf,0)>0;wgs:=count(wg,0)>0;
wdf:=ggs<df;wdg:=ggs<dg;wdfs:=count(wdf,0)>0;wdgs:=count(wdg,0)>0;
if wgs[sysparam(1)] and wfs[sysparam(1)] and wf[sysparam(1)]=0 and wg[sysparam(1)]=0 then
drawtext(sysparam(2)=barpos,ll,'个股涨幅(%):'+ numtostr((个股[sysparam(1)]/if(not(xx[sysparam(1)]),股谷[sysparam(1)],if(barscount(c)<f1,个股[1],股峰[sysparam(1)]))-1)*100,2)),color0000ff,pxup30;
else
drawtext(sysparam(2)=barpos,ll,'个股涨幅(%):'+numtostr((个股[sysparam(1)]/个股[1]-1)*100,2)),color0000ff,pxup30;
if wdgs[sysparam(1)] and wdfs[sysparam(1)] and wdf[sysparam(1)]=0 and wdg[sysparam(1)]=0 then
drawtext(sysparam(2)=barpos,ll,'大盘涨幅(%):'+numtostr((dc[sysparam(1)]/if(not(yy[sysparam(1)]),大盘谷[sysparam(1)],大盘峰[sysparam(1)])-1)*100,2)),color3595ff;
else
drawtext(sysparam(2)=barpos,ll,'大盘涨幅(%):'+numtostr((dc[sysparam(1)]/dc[1]-1)*100,2)),color3595ff;
if wgs[sysparam(1)] and wfs[sysparam(1)] and wf[sysparam(1)]=0 and wg[sysparam(1)]=0 then
drawnumber(gs1=0,hh,(股峰/股谷-1)*100,2),color0033ff;
else
drawnumber(gs1=0,hh,(股峰/个股[1]-1)*100,2),color0033ff;
if wdgs[sysparam(1)] and wdfs[sysparam(1)] and wdf[sysparam(1)]=0 and wdg[sysparam(1)]=0 then
drawnumber(ps1=0,hh,(大盘峰/大盘谷-1)*100,2),color3595ff,pxdn25;
else
drawnumber(ps1=0,hh,(dc/dc[1]-1)*100,2),color3595ff,pxdn25;
drawnumber(islastbar and not(xx),hh,(close/股谷-1)*100,2),colorff00ff;
kline(o,h,l,c,0);
{数浪公式}
get:=zig(4,10),coloryellow;
pl5:=zig(3,5);
en1:=zig(3,5)>ref(zig(3,5),1) and ref(zig(3,5),1)<=ref(zig(3,5),2) and ref(zig(3,5),2)<=ref(zig(3,5),3);
ex1:=zig(3,5)<ref(zig(3,5),1) and ref(zig(3,5),1)>=ref(zig(3,5),2) and ref(zig(3,5),2)>=ref(zig(3,5),3);
pl10:=zig(3,10);
en2:=zig(3,10)>ref(zig(3,10),1) and ref(zig(3,10),1)<=ref(zig(3,10),2) and ref(zig(3,10),2)<=ref(zig(3,10),3);
ex2:=zig(3,10)<ref(zig(3,10),1) and ref(zig(3,10),1)>=ref(zig(3,10),2) and ref(zig(3,10),2)>=ref(zig(3,10),3);
pl20:=zig(3,20);
en3:=zig(3,20)>ref(zig(3,20),1) and ref(zig(3,20),1)<=ref(zig(3,20),2) and ref(zig(3,20),2)<=ref(zig(3,20),3);
ex3:=zig(3,20)<ref(zig(3,20),1) and ref(zig(3,20),1)>=ref(zig(3,20),2) and ref(zig(3,20),2)>=ref(zig(3,20),3);
pl40:=zig(3,40);
走强1:=barslast(pl5<ref(pl5,1));
走弱1:=barslast(pl5>ref(pl5,1));
走强2:=barslast(pl10<ref(pl10,1));
走弱2:=barslast(pl10>ref(pl10,1));
走强3:=barslast(pl20<ref(pl20,1));
走弱3:=barslast(pl20>ref(pl20,1));
ztjz5:=if(pl10>ref(pl10,1),count(en1,走强2),0);
ztjd5:=if(pl10>ref(pl10,1),count(ex1,走强2),0);
dtjz5:=if(pl10<ref(pl10,1),count(en1,走弱2),0);
dtjd5:=if(pl10<ref(pl10,1),count(ex1,走弱2),0);
ztjz10:=if(pl20>ref(pl20,1),count(en2,走强3),0);
ztjd10:=if(pl20>ref(pl20,1),count(ex2,走强3),0);
dtjz10:=if(pl20<ref(pl20,1),count(en2,走弱3),0);
dtjd10:=if(pl20<ref(pl20,1),count(ex2,走弱3),0);
drawtext(en1 and dtjz5=1,l*0.98,'(a)'),colorffff00,align0,linethick10;
drawtext(ex1 and dtjd5=2,h*1.02,'(b)'),colorff00ff,align0,linethick10;
drawtext(en2 and ztjz5=1,l*0.98,'(c)'),color0000ff,align0,linethick10;
drawtext(ex1 and pl10>ref(pl10,1) and ztjd5=1,h*1.03,'⑴'),color0000ff,align0,linethick5;
drawtext(en1 and pl10>ref(pl10,1) and ztjz5=2,l*0.97,'⑵'),color0000ff,align0,linethick5;
drawtext(ex1 and pl10>ref(pl10,1) and ztjz5=2,h*1.03,'⑶'),color0000ff,align0,linethick5;
drawtext(en1 and pl10>ref(pl10,1) and ztjz5=3,l*0.97,'⑷'),color0000ff,align0,linethick5;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=1,h*1.03,'⑸'),color0000ff,align0,linethick5;
drawtext(en2 and dtjz10=1,l*0.96,'ⅰ'),colorff00ff,align0,linethick5;
drawtext(ex2 and dtjd10=2,h*1.04,'ⅱ'),colorffff00,align0,linethick5;
drawtext(en3 and ztjz10=1,l*0.96,'ⅲ'),color0000ff,align0,linethick5;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=1,h*1.03,'①'),color00ffff,align0,linethick5;
drawtext(en2 and pl20>ref(pl20,1) and ztjz10=2,l*0.97,'②'),color00ffff,align0,linethick5;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=2 or (ztjd10=0 or ztjd10=2) and ex2,h*1.03,'③'),color00ffff,align0,linethick5;
drawtext(en2 and pl20>ref(pl20,1) and ztjz10=3,l*0.97,'④'),color00ffff,align0,linethick5;
上一指标公式:筹码回归山寨版公式下载 飞狐筹码指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文涨跌互现公式下载 飞狐涨跌指标 源码仅供学习研究。