
蛮不错的主图公式,各位可以看看
input:zf(5,0,50);
drawgbklast(c>0,strip(rgb(0,0,190),rgb(0,40,0),0));
{k线}
stickline(close>open or close=open and close>ref(close,1),low,high,0.1,0),colorred;
stickline(close>open or close=open and close>ref(close,1),open,close,0,0),colorred;
stickline(close<open or close=open and close<=ref(close,1),low,high,0.1,0),colorcyan;
stickline(close<open or close=open and close<=ref(close,1),open,close,0,0),colorcyan;
stickline(open>=close ,close ,open,8,0 ),color006600;
stickline(open>=close ,close ,open,7,0 ),color008800;
stickline(open>=close ,close ,open,6,0 ),color00aa00;
stickline(open>=close ,close ,open,5,0 ),color00bb00;
stickline(open>=close ,close ,open,4,0 ),color00cc00;
stickline(open>=close ,close ,open,3,0 ),color00dd00;
stickline(open>=close ,close ,open,2,0 ),color00ee00;
stickline(open>=close ,close ,open,1,0 ),color00ff00;
stickline(open>=close ,close ,open,0,0 ),color00ff00;
stickline(close>open,close,open,8,0) ,color000066;
stickline(close>open,close,open,7,0) ,color000088;
stickline(close>open,close,open,6,0) ,color0000aa;
stickline(close>open,close,open,5,0) ,color0000bb;
stickline(close>open,close,open,4,0) ,color0000cc;
stickline(close>open,close,open,3,0) ,color0000dd;
stickline(close>open,close,open,2,0) ,color0000ee;
stickline(close>open,close,open,1,0) ,color0000ff;
stickline(close>open,close,open,0,0) ,color0000ff;
{通道}
cc:=wma(c,3); hh:=hhv(h,3); ll:=llv(l,3);
zc:=(2*cc+hh+ll)/4;
wm3:wma(zc,3),colorff9900;
partline(wm3 ,(wm3>ref(wm3,1))-1,rgb(0,150,255),1,rgb(255,150,0) ),linethick2,layer0;
mid : wma(zc,18),color00ffff,dotline;
upper: mid + 2*std(zc,18),color0077ff;
lower: mid - 2*std(zc,18),colorff9900;
fillrgn(upper,mid,upper>mid,rgb(60,0,60)),layer7;
fillrgn(lower,mid,lower<mid,rgb(20,20,20)),layer7;
{zig买卖}
级买1:=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);
级卖1:=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);
级买2:=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);
级卖2:=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);
级买3:=zig(3,30)>ref(zig(3,30),1) and ref(zig(3,30),1)<=ref(zig(3,30),2) and ref(zig(3,30),2)<=ref(zig(3,30),3);
级卖3:=zig(3,30)<ref(zig(3,30),1) and ref(zig(3,30),1)>=ref(zig(3,30),2) and ref(zig(3,30),2)>=ref(zig(3,30),3);
级买4:=zig(3,55)>ref(zig(3,55),1) and ref(zig(3,55),1)<=ref(zig(3,55),2) and ref(zig(3,55),2)<=ref(zig(3,55),3);
级卖4:=zig(3,55)<ref(zig(3,55),1) and ref(zig(3,55),1)>=ref(zig(3,55),2) and ref(zig(3,55),2)>=ref(zig(3,55),3);
级买5:=zig(3,79)>ref(zig(3,79),1) and ref(zig(3,79),1)<=ref(zig(3,79),2) and ref(zig(3,79),2)<=ref(zig(3,79),3);
级卖5:=zig(3,79)<ref(zig(3,79),1) and ref(zig(3,79),1)>=ref(zig(3,79),2) and ref(zig(3,79),2)>=ref(zig(3,79),3);
买:=(级买1+级买2+级买3+级买4+级买5);
卖:=(级卖1+级卖2+级卖3+级卖4+级卖5);
drawtext(买>=2,l-0.12,''+numtostrn(买,0)+'级买'),color00ffff,linethick3,align1,layer0;
drawtext(买>=2,l-0.03,'★'),color0000ff,linethick3,align1,layer0;
drawtext(卖>=2,h+0.2,''+numtostrn(卖,0)+'级卖'),color00ffff,linethick3,align1,layer0;
drawtext(卖>=2,h+0.12,'★'),color00ff00,linethick3,align1,layer0;
{股价趋势:}
z10:zig(3,zf),color00ff00,linethick2,layer3;
partline(z10,z10>ref(z10,1),rgb(255,50,0) ),linethick2,layer3;
持有:last(z10>ref(z10,1)),precis0 ,linethick0;
空仓:last(z10<ref(z10,1)),precis0,linethick0;
x:=barslast(dispstatus=1)+1;
jd:=hhvall(hhv(h,x))*1.06;
drawtext(barstatus=2 and 持有>0,jd,'★升势【第'+numtostrn(持有,0)+'天】'),align2,color00ffff,linethick4,layer0;
drawtext(barstatus=2 and 空仓>0,jd,'★跌势【第'+numtostrn(空仓,0)+'天】'),align2,colorff00ff,linethick4,layer0;
low1:=trough(3,zf ,1);
high1:=peak(3,zf,1);
stickline(barstatus=2 and 持有>0,low1,low1,150,1),color00ff00,linethick2,layer4;
stickline(barstatus=2 and 持有>0,low1*1.03,low1*(1+zf/100),25,0),color0099dd,linethick1,layer6;
stickline(barstatus=2 and 持有>0,low1,low1*1.03,25,0),colorff9900,linethick1,layer5;
stickline(barstatus=2 and 空仓>0,high1,high1*(1-zf/100),25,0),colorff9900,linethick1,layer5;
stickline(barstatus=2 and 空仓>0,high1*(1-zf/100),high1*(1-zf/100),25,0),color00ffff,linethick1,layer5;
stickline(barstatus=2 and 空仓>0,high1,high1,150,1),color0099ff,linethick2,layer4;
drawtext(barstatus=2 and 空仓>0,high1,' 【'+numtostrn(high1,2)+'元】'),align1,color00ffff,linethick1,layer0;
drawtext(barstatus=2 and 持有>0,low1,' 【'+numtostrn(low1,2)+'元】'),align1,color00ffff,linethick1,layer0;
drawtextabs(3,10,ifs((持有>0),'【zig(3,'+zf+')】低点转折上涨小于【'+zf+'%='+numtostrn(low1*(1+zf/100),2)+'元】时如果【c='+c+'元】低于【转折价='+low1+'元】趋势将向下飘逸','')),linethick2,color00ffff;
drawtextabs(3,10,ifs((空仓>0),'【zig(3,'+zf+')】高点转折下跌小于【'+zf+'%='+numtostrn(high1*(1-zf/100),2)+'元】时如果【c='+c+'元】高于【转折价='+high1+'元】趋势将向上飘逸','')),linethick2,color9999ff;
{rsi.kdj}
var6:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(var6,3,1);
d:=sma(k,3,1);
j:=(3*k-2*d);
lc:=ref(c,1);
rsi:((sma(max((c - lc),0),3,1) / sma(abs((c - lc)),3,1)) * 100),linethick0;
drawtext(dispstatus=2,jd*0.98,'【rsi:'+numtostrn(rsi,0)+'】'),color00ffff,linethick2,align2;
drawtext(dispstatus=2,jd*0.965,'【j:'+numtostrn(j,1)+'】'),color00ff00,linethick2,align2;
{高抛低吸}
sj:=wma(((2*c+h+l)/4-llv(l,5))/(hhv(h,5)-llv(l,5))*100,2);
zj:=wma(0.618*ref(sj,1)+0.382*sj,2);
drawtext(cross(sj,zj) and sj<30,l,'←吸'),color00ffff,layer3;
drawtext(cross(zj,sj) and sj>70,h,'←抛'),color00ffff,layer3;上一指标公式:主力散户线指标公式详解 同花顺散户
下一指标公式:趋势买卖指标公式详解 同花顺趋势
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文蛮不错的主图指标公式详解 同花顺公式仅供学习研究。