input:f2(0,0,999,1),f3(0,0,999,1),f4(0,0,999,1),f5(5,0,999,1),f6(10,0,999,1),f7(20,0,999,1),f8(30,0,999,1),f9(0,0,999,1),近高(0,0,999,1),g(7,0,25),g1(5,0,10),n(0,0,10),mb(960,1,2500),调1(25,1,255);
//drawgbk(1, colorrgb(180,180,180),colorrgb(250,250,250),1);
drawtextex(sysparam(3)=barpos,0,10,2,'【代码:'+stklabel+' 名称:'+stkname+'】'),colorffffff,linethick1;
量:=if(close>200,vol/1000000,vol/1),linethick0;
换手率:=vol/capital*100,linethick0,precision2,colorffff00;
五日换手:=sum(换手率,5),precision2,linethick0 ,colorffaadd;
mai:=close*1.017,linethick0;{取得最新动态行情: 最新,dynainfo(7)}
maii:=close*1.03,linethick0;{取得最新动态行情: 最新,}
fmai:=ref(mai,1),linethick0;
fmaii:=ref(maii,1),linethick0;
//当满足条件时随光标显视【交易日、自然日】
aj:=datediff(date,currentdate);
b:=datacount-barpos+0;
振幅:=((high-low)/low)*100,linethick0,color00ffff;
差价:=high-low,linethick0,color00ffff;
stickline(close>=open,close,open,7,0),color0000aa;
stickline(close>=open,close,open,6,0),color0000cc ;
stickline(close>=open,close,open,4,0),color0000dd ;
stickline(close>=open,close,open,2,0),color0000ff;
stickline(close>=open,high,low,0,0),colorred;
stickline(close<=open,close,open,7,0),colorcccc00;
stickline(close<=open,close,open,6,0),colordddd00;
stickline(close<=open,close,open,4,0),coloreeee00;
stickline(close<=open,close,open,2,0),colorffff00;
stickline(close<=open,high,low,0,0),colorffff00;
var3:=(high < ref(low,1));
var4:=(low > ref(high,1));
drawtext(var3,(high ),'缺口'),align0,colorffff00;
drawtext(var4,(low ),'缺口'),align0,color00ffbf;
a:=(3*close+low+open+high)/6;
x:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+
14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)
+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+
ref(a,20))/210;
回调认同:ema(x,g),color208fff;
drawtext(barstatus=2 and 回调认同<>ref(回调认同,1),回调认同,'回调认同:'+numtostr(回调认同,2)),color00aaff;
箱顶:hhv(ma((high),g1),30),color00ffaa,linethick1;
drawtext(barstatus=2 and 箱顶<>ref(箱顶,1),箱顶,'箱顶:'+numtostr(箱顶,2)),color00ff00,align2,pxup25;
drawtext(barstatus=2 and 箱顶=ref(箱顶,1),箱顶,'箱顶:'+numtostr(箱顶,2)),color00ff00,align2,pxup25;
//角度线
z:zig(3,n),colorffffff;
f:=z-ref(z,1);
zh:=peak(3,n,1);
wh:=peakbars(3,n,1);
zl:=trough(3,n,1);
wl:=troughbars(3,n,1);
x:=atan((z/zh-1)/wh*100)*57.3,linethick0;
上行度数:atan((z/zl-1)/wl*100)*57.3,linethick0;
drawnumber(wh=0 or (islastbar and wl<wh),z*1.01,ref(上行度数,1),1)align2,color0aeeff;
drawtext(wh=0 or (islastbar and wl<wh),z*1.01,'上行: ')align2,colorcolor0aeeff;
drawtext(wh=0 or (islastbar and wl<wh),z*1.01,' 度'),color0aeeff;
drawnumber(wl=0 or (islastbar and wl>wh),z*0.99,ref(x,1),1)align2,coloreeff00;
drawtext(wl=0 or (islastbar and wl>wh),z*0.99,'下行: ')align2,coloreeff00;
drawtext(wl=0 or (islastbar and wl>wh),z*0.99,' 度'),coloreeff00;
//周期垂直线
fbars:=sysparam(0);
ff5:=barssince(close)=fbars+4;
vertline(ff5),pointdot,color996666,linethick1;
drawnumber(ff5,sysparam(5),5,0),colorffffff,pxup50;
ff8:=barssince(close)=fbars+7;
vertline(ff8),pointdot,color996666,linethick1;
drawnumber(ff8,sysparam(5),8,0),colorffffff,pxup50;
ff13:=barssince(close)=fbars+12;
vertline(ff13),pointdot,color996666,linethick1;
drawnumber(ff13,sysparam(5),13,0),colorffffff,pxup50;
ff21:=barssince(close)=fbars+20;
vertline(ff21),pointdot,color996666,linethick1;
drawnumber(ff21,sysparam(5),21,0),colorffffff,pxup50;
ff34:=barssince(close)=fbars+32;
vertline(ff34),pointdot,color996666,linethick1;
drawnumber(ff34,sysparam(5),33,0),colorffffff,pxup50;
ff55:=barssince(close)=fbars+54;
vertline(ff55),pointdot,color996666,linethick1;
drawnumber(ff55,sysparam(5),55,0),colorffffff,pxup50;
ff89:=barssince(close)=fbars+88;
vertline(ff89),pointdot,color996666,linethick1;
drawnumber(ff89,sysparam(5),89,0),colorffffff,pxup50;
ff144:=barssince(close)=fbars+143;
vertline(ff144),pointdot,color996666,linethick1;
drawnumber(ff144,sysparam(5),144,0),colorffffff,pxup50;
ff233:=barssince(close)=fbars+232;
vertline(ff233),pointdot,color996666,linethick1;
drawnumber(ff233,sysparam(5),233,0),colorffffff,pxup50;
ff377:=barssince(close)=fbars+376;
vertline(ff377),pointdot,color996666,linethick1;
drawnumber(ff377,sysparam(5),377,0),colorffffff,pxup50;
ff610:=barssince(close)=fbars+610;{
vertline(ff610),pointdot,color996666,linethick1;
drawnumber(ff610,sysparam(5),610,0);
ff987:=barssince(c)=fbars-987;
vertline(ff987),pointdot,color996666,linethick1;
drawnumber(ff987,sysparam(5),987,0);
ff1597:=barssince(c)=fbars-1597;
vertline(ff1597),pointdot,color996666,linethick1;
drawnumber(ff1597,sysparam(5),1597,0);}
//当满足条件时随光标显视文字或数字
zgg:=ref(high,近高);
hhhh:=hhv(zgg,1);
lll:=low;
hhh:=close;
gf1 := hhh*0.95; gf2 := hhh*0.93;
gfa := hhh*0.91; gfb := hhh*0.90;
drawtextex(sysparam(3)=barpos,0,10,80,'【上升回调,通常情况下,市场调整不会超过 二级区间】'),linethick2,colorffffff;
drawtextex(sysparam(3)=barpos,0,10,92,' 一级区间 :('+numtostr(gf1[sysparam(1)],2)+') '+'-----('+numtostr(gf2[sysparam (1)],2)+') '),linethick2,color00ffdd;
drawtextex(sysparam(3)=barpos,0,10,106,' 二级区间 :('+numtostr(gfa[sysparam(1)],2)+') '+'-----('+numtostr(gfb[sysparam (1)],2)+') '),linethick2,color00ffff;
ll2 := lll;
gfb1 := ll2*1.05; gfb2 := ll2*1.07; gfb3 := ll2*1.10; gfb4 := ll2*1.12; gfbd := ll2*1.18; gfbd1 := ll2*1.21;
drawtextex(sysparam(3)=barpos,0,10,20,'【起动点上升 压力区间】'),colorffffff;
drawtextex(sysparam(3)=barpos,0,10,32,' 一级区间:('+numtostr(gfb1[sysparam(1)],2)+') '+'-----('+numtostr(gfb2[sysparam
(1)],2)+') '),linethick2,colorffff00;
drawtextex(sysparam(3)=barpos,0,10,44,' 二级区间:('+numtostr(gfb3[sysparam(1)],2)+') '+'-----('+numtostr(gfb4[sysparam
(1)],2)+') '),linethick2,colorffee00;
drawtextex(sysparam(3)=barpos,0,6,56,' ☆小心市场可能出现短期市势逆转↓'+'\n'
+' 18%--21% :('+numtostr(gfbd[sysparam(1)],2)+') '+'-----('+numtostr(gfbd1[sysparam(1)],2)+') '),color00ff00;
xz:=dynainfo(7);{取得最新动态行情: 最新}
xx:=dynainfo(5);{取得最新动态行情: 最高}
yy:=dynainfo(6);{取得最新动态行情: 最低}
sz:=xz-lll;
zz:=sz/lll*100;
gsz:=xx-lll;
gzz:=gsz/lll*100;
//ggb:=hhhh-yy;
//vv:=ggb/hhhh*100;
gga:=xz-hhhh;
vva:=gga/hhhh*100;
ggb:=yy-hhhh;
vvb:=ggb/hhhh*100;
k:=hhhh-lll;
w:=k/lll*100;
drawtext(islastbar=1,hhhh,'近高/当前最低幅度/当前幅度:('+numtostr(hhhh,2)+')('+numtostr(vvb,2)+'%)('+numtostr(vva,2)+'%)'+''+' ̄ ̄ ̄ ̄ ̄ ̄'),align2,color8080ff,pxdn2;
drawtextex(sysparam(3)=barpos,0,10,118,'★起动点/当前高幅度'+'/当前幅度★:('+numtostr(lll[sysparam(1)],2)+' 元 )('+numtostr
(gzz[sysparam(1)],2)+'%) '+'('+numtostr(zz[sysparam(1)],2)+'%) '),linethick0,colorffffff;
drawtextex(sysparam(3)=barpos,0,190,2,' 【当天幅度:'+numtostr(振幅[sysparam(1)],2)+'%'+'--价差:'+numtostr(差价[sysparam(1)],2)+'元 】'),linethick2,colorffff00;
drawtextex(sysparam(3)=barpos,0,6,146,'▼今/明短线赢利[1.7%--3%:]'+numtostr(fmai[sysparam(1)],2)+''+'--'+numtostr(fmaii[sysparam(1)],2)+'/'+numtostr(mai[sysparam(1)],2)+''+'--'+numtostr(maii[sysparam(1)],2)),linethick2,colorffffff;
drawtextex(sysparam(3)=barpos,0,10,133,'【换手率】:'+numtostr(换手率[sysparam(1)],2)+'% '+'【五日换手】:'+numtostr(五日换手[sysparam(1)],2)+'% '+ '当日成交量:'+numtostr(量[sysparam(1)],0)+'手'),colorffff00;
drawtextex(sysparam(3)=barpos,0,10,170,' 交易日:'+numtostr(b[sysparam(1)],0)+'(天) '+' 自然日:'+numtostr(aj[sysparam(1)],0)
+'(天) '),color00ddff;
kk:=dynainfo( 3);
ggc:=kk*0.10;
y:=kk+ggc;
u:=kk-ggc;
drawtextex(sysparam(3)=barpos,0,4,157,'◆涨停价:'+numtostr(y,2)),color8080ff;
drawtextex(sysparam(3)=barpos,0,99,157,'◆跌停价:'+numtostr(u,2)),colorffff00;
//finance
zx:=dynainfo( 7);//当日最新价
最新市盈率:=zx/finance(33);
ys:=dynainfo(39);//市盈率
最新估值:=调1*finance(33);{调1:固定市盈率}
drawtextex(sysparam(3)=barpos,0,2,186,
' 总股本:'+numtostr(finance(1)/10000,2 )+'亿'+' ★'+'流通股:'+ numtostr(finance(7)/10000,2)+'亿'+' ★'+'最新收益:'+ numtostr(finance(33),3)+''+'\n'+' 上年市盈率:'+numtostr(ys,2 )+'%'+' ★'+'最新市盈率:'+numtostr(最新市盈率,2 )+'%'+'\n'
),coloraeddff;
drawtextex(sysparam(3)=barpos,0,2,210,' 最新估值:'+numtostr(最新估值,2 )+'★'+'['+numtostr(调1,0 )+'倍市盈率估算]'),coloraeddff;
估值:=finance(10)-(finance(15)+finance(16)+finance(14));{总资产(千元)-流动负债-长期负债}
qe:=估值/finance( 1);{每股=当前估值/ 总股本}
drawtextex(sysparam(3)=barpos,0,2,222,' 财务估值: '+numtostr(qe,2)+' [总资产-流动负债-长期负债]'),linethick1,coloraeddff;
{光标角度线}
m:=(sysparam(4)-sysparam(5))/(sysparam(3)-sysparam(2));
drawsl(barpos=sysparam(1),low,18.5*m/50,0,0),colorff00ff,linedashdot;
drawsl(barpos=sysparam(1),low,27.5*m/50,0,0),colorff0000,linedashdot;
drawsl(barpos=sysparam(1),low,38.5*m/50,0,0),colordddddd,linedashdot;
drawsl(barpos=sysparam(1),low,55*m/50,0,0),color0080ff;
drawsl(barpos=sysparam(1),low,78*m/50,0,0),colordddddd,linedashdot;
drawsl(barpos=sysparam(1),low,110*m/50,0,0),,colorff0000,linedashdot;
drawsl(barpos=sysparam(1),low,165*m/50,0,0),,colorff00ff,linedashdot;
drawsl(barpos=sysparam(1),low,220*m/50,0,0),color458a00,linedashdot;
//均线
mc2:ma(close,f2),colorffff00,linethick1,linedot,colorffffff;
mc3:ma(close,f3),colorffff00,linethick1,linedot,colorffffff;
mc4:ma(close,f4),colorffff00,linethick1,linedot,colorffffff;
mc5:ma(close,f5),colorffff00,linethick1,linedot,colorffffff;
mc6:ma(close,f6),colorffff00,linethick1,linedot,color00ffff;
mc7:ma(close,f7),colorffff00,linethick1,linedot,colorff00ff;
mc8:ma(close,f8),colorffff00,linethick1,linedot,color00ff00;
mc9:ma(close,f9),colorffff00,linethick1,linedot,colorffff00;
drawtext(barstatus=2 and mc5>ref(mc5,1),mc5,' ↑'+numtostr(mc5,2)),colorffffff;
drawtext(barstatus=2 and mc5<ref(mc5,1),mc5,' ↓'+numtostr(mc5,2)),colorffffff;
drawtext(barstatus=2 and mc5=ref(mc5,1),mc5,':='+numtostr(mc5,2)),colorffffff;
drawtext(barstatus=2 and mc6>ref(mc6,1),mc6,' ↑'+numtostr(mc6,2)),color00ffff;
drawtext(barstatus=2 and mc6<ref(mc6,1),mc6,' ↓'+numtostr(mc6,2)),color00ffff;
drawtext(barstatus=2 and mc6=ref(mc6,1),mc6,':='+numtostr(mc6,2)),color00ffff;
drawtext(barstatus=2 and mc7>ref(mc7,1),mc7,' ↑'+numtostr(mc7,2)),colorff00ff;
drawtext(barstatus=2 and mc7<ref(mc7,1),mc7,' ↓'+numtostr(mc7,2)),colorff00ff;
drawtext(barstatus=2 and mc7=ref(mc7,1),mc7,':='+numtostr(mc7,2)),colorff00ff;
drawtext(barstatus=2 and mc8>ref(mc8,1),mc8,' ↑'+numtostr(mc8,2)),color00ff00;
drawtext(barstatus=2 and mc8<ref(mc8,1),mc8,' ↓'+numtostr(mc8,2)),color00ff00;
drawtext(barstatus=2 and mc8=ref(mc8,1),mc8,':='+numtostr(mc8,2)),color00ff00;
drawtext(barstatus=2 and mc9>ref(mc9,1),mc9,' ↑'+numtostr(mc9,2)),colorffff00;
drawtext(barstatus=2 and mc9<ref(mc9,1),mc9,' ↓'+numtostr(mc9,2)),colorffff00;
drawtext(barstatus=2 and mc9=ref(mc9,1),mc9,':='+numtostr(mc9,2)),colorffff00;
上一指标公式:持仓比副图公式下载 飞狐源码贴图指标 源码
下一指标公式:主动买卖盘研究公式下载 飞狐买卖研究指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文喜欢江恩就拿去吧热乎的主图++图公式下载 飞狐去吧就拿指标 源码仅供学习研究。