{【短线操作主图】大部分原码来自东郭的[睁眼瞎买]在此,多谢东郭先生提供原码}
【上市时间】:ref(year,barscount(close)-1),linethick0,colorff;
月:ref(month,barscount(close)-1),linethick0,colorff00ff;
日:ref(day,barscount(close)-1),linethick0,colorffff;
input:da(6,1,100),fy(5,5,40),ct(1,1,60),p(0,0,60),n(3,0,60);
drawgbk(close<hhv(high,0),colorrgb(60,15,35),colorrgb(50,50,90),1);
stickline(close>open or close=open and close>ref(close,1),low,high,0.5,0),linethick5,color10000;
stickline(close<open or close=open and close<=ref(close,1),low,high,0.5,0),linethick5,color10000;
x:=(barslast((sysparam(2)=barpos))+1);
ns:=if((hhv(abs(((hhv(close,da)/llv(close,da))-1)),da)>(10/100)),3,da);
n1:=if((datatype=2),(ns*48),if((datatype=3),(ns*16),if((datatype=4),(ns*8),if((datatype=5),(ns*4),ns))));
mm:=if((((stktype=0) or (p=0)) or (vol=0)),ma(close,n1),((sum(amount,n1)/sum(vol,n1))/100));
m1:=ref(mm,1);
买入:=if(cross(close,m1),m1,0);
卖出:=if(cross(m1,close),m1,0);
ye:=barpos;
费用:=(fy/1000);
dw:=barslast((卖出>0));
ex10:=hhv((买入>0),(dw+1));
bj:=if((ex10>ref(ex10,1)),买入,0);
sj:=if((ex10<ref(ex10,1)),卖出,0);
bnn:=barslast((bj>0));
cc:=ref(bj,bnn);
盈利:=((sj*(1-费用))-(cc*(1+费用)));
yl:=sum(if((sj>0),盈利,0),0);
每股盈利:=yl,linethick0,precision2,colorffffff;
cn:=sum(if(((sj>0) and (ref(cc,1)>0)),1,0),0);
cg:=sum(if(((sj>0) and (盈利>0)),1,0),0);
成功率:=((100*cg)/cn),linethick0,precision1,color88ff;
h1:=hhv(if((ct=2),成功率,yl),x);
l1:=llv(if((ct=2),成功率,yl),x);
ah:=h1[datacount];
al:=l1[datacount];
ahl:=(ah-al);
polyline((ct=2),成功率),color88ff;
买入均价:=(sum(bj,0)/cn),linethick0,precision1,colorff;
年收益:=((100*((240*yl)/ye))/买入),linethick0,precision1,colorff;
持股时间:=(sum(if(((sj>0) and (cc>0)),(ref(bnn,1)+1),0),0)/ye),linethick0,precision2,colorff00ff;
交易:=cn,linethick0,precision0,coloraaaaaa;
(次)成功:=cg,linethick0,precision0,coloraaaaaa;
年交均次:=((240*cn)/ye);
mon:=sum(if((month<>ref(month,1)),1,0),0);
上市年:=(mon/12);
drawnumber((bj>0),(low*0.95),bj,2),align0,colorff;
drawicon(((bj>0) and (ct=1)),(low*0.97),4);
drawnumber((((sj>0) and (ct=1)) and (((盈利/(cc*(1+费用)))*100)>=0)),(high*1.1),((盈利/(cc*(1+费用)))*100),1),align0,colorff;
drawnumber((((sj>0) and (ct=1)) and (((盈利/(cc*(1+费用)))*100)<0)),(high*1.1),((盈利/(cc*(1+费用)))*100),1),align0,colorffff;
drawicon(((sj>0) and (ct=1)),(high*1.04),5);
drawnumber(((sj>0) and (ct=1)),(high*1.07),sj,2),align0,colorff00;
n波动:=(sum(if((((sj>0) and (cc>0)) and ((ref(bnn,1)+1)<=n)),(ref(bnn,1)+1),0),0)/ye),linethick0,precision2,colorff00ff;
买价:=if((bj>0),bj,0),linethick0,precision2,colorff;
卖价:=if((sj>0),sj,0),linethick0,precision2,colorff00;
drawtextex(close,1,0,0,(((((((((((((((((('年盈利:'+numtostr(yl,2))+'元 成功率:')+numtostr(成功率,1))+'% 年收益:')+numtostr(年收益,1))+'%')+' 持股时间比:')+numtostr(持股时间,1))+'\n')+'交易:')+numtostr(交易,0))+'次 成功:')+numtostr(cg,0))+'次 年均:')+numtostr(年交均次,1))+'次 总共:')+numtostr(ye,0))+'k线')),colorffff;
临界:=(((close/m1)-1)*100);
增减:=(临界-(100*((ref(close,1)/ref(m1,1))-1)));
drawtextex(close,1,500,0,(((((((('当前 信号持续:'+numtostr(bnn,0))+'(k线)')+' 最高盈利:')+numtostr(hhv((((high/cc)-1)*100),(bnn+1)),1))+'% 买卖临界点:')+numtostr(临界,1))+'% 增减:')+numtostr(if(((bnn>0) and (datatype=6)),增减,if((bnn=0),0,-100)),1))),colorffff;
drawtext(((sysparam(3)=barpos) and (ct<3)),high,'.'),color1;
drawtext(((sysparam(3)=barpos) and (ct<3)),low,'.'),color1;
参考介入价:mm,linethick0,precision2,colorffffff;
fua:=hhv(high,15);
fub:=llv(low,15);
stickline(close>=mm,high,low,1,0),color0000ff;
stickline(close<mm,low,high,1,0),color00ff00;
stickline(close>open or close=open and close>ref(close,1),open,close,9,0),linethick5,color10000;
stickline(close<open or close=open and close<=ref(close,1),open,close,9,0),linethick5,color10000;
stickline(close>=mm,close,open,8,0),color;
stickline(close>=mm,close,open,7,0),color;
stickline(close>=mm,close,open,5.8,0),color;
stickline(close>=mm,close,open,4.4,0),color0000bb;
stickline(close>=mm,close,open,2.8,0),color0000dd;
stickline(close>=mm,close,open,1,0),color0000ff;
stickline(close<mm,close,open,8,0),color005500;
stickline(close<mm,close,open,7,0),color007700;
stickline(close<mm,close,open,5.8,0),color009900;
stickline(close<mm,close,open,4.4,0),color00bb00;
stickline(close<mm,close,open,2.8,0),color00dd00;
stickline(close<mm,close,open,1,0),color00ff00;
stickline(((bj > 0) and (ct = 1)),open,(open+close)/2,8,0),color0033ff;
stickline(((bj > 0) and (ct = 1)),open,(open+close)/2,7,0),color0066ff;
stickline(((bj > 0) and (ct = 1)),open,(open+close)/2,5.8,0),color0099ff;
stickline(((bj > 0) and (ct = 1)),open,(open+close)/2,4.4,0),color00bbff;
stickline(((bj > 0) and (ct = 1)),open,(open+close)/2,2.8,0),color00ddff;
stickline(((bj > 0) and (ct = 1)),open,(open+close)/2,1,0),color00ffff;
stickline(((sj>0) and (ct=1)),close,(close+open)/2,8,0),colorff4400;
stickline(((sj>0) and (ct=1)),close,(close+open)/2,7,0),colorff7700;
stickline(((sj>0) and (ct=1)),close,(close+open)/2,5.8,0),colorff9911;
stickline(((sj>0) and (ct=1)),close,(close+open)/2,4.4,0),colorffbb22;
stickline(((sj>0) and (ct=1)),close,(close+open)/2,2.8,0),colorffdd33;
stickline(((sj>0) and (ct=1)),close,(close+open)/2,1,0),colorffff33;
stickline(((sj>0) and (ct=1)),open,(close+open)/2,8,0),color550000;
stickline(((sj>0) and (ct=1)),open,(close+open)/2,7,0),color770000;
stickline(((sj>0) and (ct=1)),open,(close+open)/2,5.8,0),color990000;
stickline(((sj>0) and (ct=1)),open,(close+open)/2,4.4,0),colorbb0000;
stickline(((sj>0) and (ct=1)),open,(close+open)/2,2.8,0),colordd0000;
stickline(((sj>0) and (ct=1)),open,(close+open)/2,1,0),colorff0000;
lock:=if((currentdate<1341231),1,0)align3,colorff00ff;
空:=ema(close,5);
均衡:ema(空,0),colorffffff;
双线持币:hhv(ma(high,(3*lock)),2),linethick2,colorff00;
单线持股:llv(ma(high,(3*lock)),1),linethick2,colorff;
a0:=(low+high+close*2)/4;
aa:=ema(a0,14)coloryellow,linethick1;
bb:=ema(a0,25)coloryellow,linethick2;
a1x:=(aa-ref(aa,1))/ref(aa,1)*100;
a2x:=(bb-ref(bb,1))/ref(bb,1)*100;
g:=barslast(cross(a1x,0));
必卖止损:ref(a0,g),colorcyan,linethick1;
drawtext(barpos=sysparam(2),sysparam(4),stkname+' '+stklabel+'\n所属板块:'+blkname)linethick3 ,colorwhite;
压力线: ma(high,30)*1.15,crossdot,linethick1,colorgreen;
支撑线: ma(low,30)*0.85,circledot,linethick1,colormagenta;
a2:=(close-ref(close,1))/ref(close,1)*100<1.02;
a3:=high>ma(close,5)*1.12;
aa:= a2 and a3;
drawtext(aa,high*1.05,'←-减[清]仓'),colorff0000;
stickline(aa,high,low,4.2,0),colorff0000;
lc:=ref(close,1);
rsi:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
drawtext(cross(84,rsi) , high,'←-----逃'),colormagenta;
var3aa:=if((close>ref(close,1)),88,0);
var4aa:=if(((close)/(ref(close,1))>1.05) and ((high)/(close)<1.01) and (var3aa>0),91,0);
drawtext(filter((var4aa>90),45),(low)*(0.93),'←---大胆搏 '),coloryellow;
hh:=sysparam(4);ll:=sysparam(5);
x:=ll-(hh-ll+mindiff)/5;
y:=hhv(vol,sysparam(3)-sysparam(2)+1);
yvb:=y[sysparam(3)]/(ll-x+mindiff);
z:=vol/yvb+x;
stickline(close>ref(close,1),x,z,9,0) ,coloraa;
stickline(close>ref(close,1),x,z,8,0) ,color11bb;
stickline(close>ref(close,1),x,z,7,0) ,color22cc;
stickline(close>ref(close,1),x,z,6,0) ,color33dd;
stickline(close>ref(close,1),x,z,5,0) ,color44ee;
stickline(close>ref(close,1),x,z,4,0) ,color55ff;
stickline(close>ref(close,1),x,z,2.2,0) ,color66ff;
stickline(close>ref(close,1),x,z,1.5,0) ,color77ff;
stickline(close<=ref(close,1),x,z,9,0),coloraa00;
stickline(close<=ref(close,1),x,z,8,0),colorbb11;
stickline(close<=ref(close,1),x,z,7,0),colorcc22;
stickline(close<=ref(close,1),x,z,6,0),colordd33;
stickline(close<=ref(close,1),x,z,5,0),coloree44;
stickline(close<=ref(close,1),x,z,4,0),colorff55;
stickline(close<=ref(close,1),x,z,2.5,0),colorff66;
stickline(close<=ref(close,1),x,z,1.5,0),colorff77;
上一指标公式:财神到了公式 飞狐财神指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文短线操作主图公式 飞狐作主指标 源码仅供学习研究。