倚天财经公式-多空止损止盈
买价:=8.600;
止损系数:=0.950;
止赢系数:=1.100;
多头:sum((2*close+open+high+low)/5*vol,8)/sum(vol,8),linethick0, colorcyan;
空头:llv(多头,8),linethick0, coloryellow;
dkt:=多头>空头;
drawicon(ref(多头,1)=ref(空头,1) and 多头>空头,low*0.980,13);
drawtext(ref(多头,1)=ref(空头,1) and 多头>空头,low*0.970,'*关注'), colorred;
c11:=close>=多头 and 多头>ref(多头,1);
c21:=close<多头;
aa:=c11>=c21;
bb:=c21>c11;
stickline(aa,close,open,3.400,0), coloraa00aa;
stickline(aa,close,open,3,0), colorbb00bb;
stickline(aa,close,open,2.400,0), colorcc00cc;
stickline(aa,close,open,2,0), colordd00dd;
stickline(aa,close,open,1.600,0), coloree00ee;
stickline(aa,close,open,1.200,0), colormagenta;
stickline(aa,close,open,0.600,0), colormagenta;
stickline(aa,high,low,0,0), colormagenta;
stickline(bb,close,open,3.400,0), coloraaaa00;
stickline(bb,close,open,3,0), colorbbbb00;
stickline(bb,close,open,2.400,0), colorcccc00;
stickline(bb,close,open,1.600,0), coloreeee00;
stickline(bb,close,open,1.200,0), coloryellow;
stickline(bb,close,open,0.600,0), coloryellow;
stickline(bb,high,low,0,0), coloryellow;
stickline(islastbar,买价*1.002,买价,100,0), colorcyan;
止损价:买价*止损系数,linethick0, colorcyan;
止赢价:买价*止赢系数,linethick0, colorgreen;
stickline(islastbar,止损价*1.002,止损价,80,0), colorblue;
stickline(islastbar,止赢价*1.002,止赢价,80,0), colormagenta;
drawtext(islastbar,止损价*1.005,'止损价'), colorcyan;
drawtext(islastbar,止赢价*1.005,'止赢价'), colorcyan;
drawtext(islastbar,买价*1.005,'买入价'), coloryellow;
gjsz:=islastbar;
drawnumber(gjsz and 止损价,止损价,止损价,2), colorcyan;
drawnumber(gjsz and 止赢价,止赢价,止赢价,2), coloryellow;
drawnumber(gjsz and 买价,买价,买价,2), colorcyan;
n2:=5;
a1:=ref(high,n2)=hhv(high,2*n2+1);
b1:=filter(a1,n2);
c1:=backset(b1,n2+1);
hd:=filter(c1,n2);
rh:=backset(datacount-barpos+1=2,barslast(hd)+1);
sh:=rh>ref(rh,1);
h1:=ref(high,barslast(sh));
stickline(h1,h1,h1,5,0),linethick2, colorcyan;
drawtext(islastbar,h1*1.005,'近期高点'), coloryellow;
ttp:=islastbar;
drawnumber(ttp and h1,h1,h1,2), coloryellow;
a2:=ref(low,n2)=llv(low,2*n2+1);
b2:=filter(a2,n2);
c2:=backset(b2,n2+1);
ld:=filter(c2,n2);
rl:=backset(datacount-barpos+1=2,barslast(ld)+1);
sl:=rl>ref(rl,1);
l1:=ref(low,barslast(sl));
stickline(l1,l1,l1,5,0),linethick5, coloryellow;
drawtext(islastbar,l1*1.005,'近期低点'), coloryellow;
drawnumber(ttp and l1,l1,l1,2), colorcyan;
ahx:=ma(close,3);
bhx:=ma(close,14);
ehx:=(ahx+bhx)/2;
当前价:=close;
市盈率:=if(finance(33)>0,dynainfo(39),0)*0.350;
每股收益:=if(finance(33)>0.010,finance(33)*0.650,0);
ckmj:=每股收益*市盈率*4;
参考买价:stickline(1,ckmj,ckmj,2,0), colorwhite;
drawicon(ehx<ckmj and cross(当前价,ehx),low*0.980,34);
drawicon(ehx>ckmj and cross(当前价,ehx),low*0.980,23);
drawtext(islastbar,ckmj*1.005,'参考买价'), colorcyan;
ttp123:=islastbar;
drawnumber(ttp123 and ckmj,ckmj,ckmj,2), coloryellow;
lc5:=ref(close,1);
rsi5:=sma(max(close-lc5,0),6,1)/sma(abs(close-lc5),6,1)*100;
r:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
a:=sma(r,3,1);
b:=sma(a,3,1);
ccc:=(b/2+40)*1.100;
da:=sma(ccc,3,1);
短逃:drawicon(cross(da,rsi5),high*1.020,12);
逃顶:drawicon(cross(80,rsi5),high*1.040,14);
drawtext(cross(da,rsi5),high*1.030,'短逃'), colorcyan;
drawtext(cross(80,rsi5),high*1.050,'逃顶'), colorgreen;
sj:=ema((close-llv(low,5))/(hhv(high,5)-llv(low,5))*100,2);
zj:=ema(0.667*ref(sj,1)+0.333*sj,2);
drawtext(cross(sj,zj) and sj<30,low-0.050,'←低吸'),linethick2, color00ff99;
===============喜欢修改k線,上升用空心k線,下跌用实体k綫,用下面源码:
买价:=8.600;
止损系数:=0.950;
止赢系数:=1.100;
多头:sum((2*close+open+high+low)/5*vol,8)/sum(vol,8),linethick0, colorcyan;
空头:llv(多头,8),linethick0, coloryellow;
dkt:=多头>空头;
drawicon(ref(多头,1)=ref(空头,1) and 多头>空头,low*0.980,13);
drawtext(ref(多头,1)=ref(空头,1) and 多头>空头,low*0.970,'*关注'), colorred;
c11:=close>=多头 and 多头>ref(多头,1);
c21:=close<多头;
aa:=c11>=c21;
bb:=c21>c11;
stickline(aa,c,h,0,1),colormagenta;
stickline(aa,l,o,0,1),colormagenta;
stickline(aa,c,o,3.4,1),colormagenta;
stickline(bb,close,open,3.400,0), coloraaaa00;
stickline(bb,close,open,3,0), colorbbbb00;
stickline(bb,close,open,2.400,0), colorcccc00;
stickline(bb,close,open,1.600,0), coloreeee00;
stickline(bb,close,open,1.200,0), coloryellow;
stickline(bb,close,open,0.600,0), coloryellow;
stickline(bb,high,low,0,0), coloryellow;
stickline(islastbar,买价*1.002,买价,100,0), colorcyan;
止损价:买价*止损系数,linethick0, colorcyan;
止赢价:买价*止赢系数,linethick0, colorgreen;
stickline(islastbar,止损价*1.002,止损价,80,0), colorblue;
stickline(islastbar,止赢价*1.002,止赢价,80,0), colormagenta;
drawtext(islastbar,止损价*1.005,'止损价'), colorcyan;
drawtext(islastbar,止赢价*1.005,'止赢价'), colorcyan;
drawtext(islastbar,买价*1.005,'买入价'), coloryellow;
gjsz:=islastbar;
drawnumber(gjsz and 止损价,止损价,止损价,2), colorcyan;
drawnumber(gjsz and 止赢价,止赢价,止赢价,2), coloryellow;
drawnumber(gjsz and 买价,买价,买价,2), colorcyan;
n2:=5;
a1:=ref(high,n2)=hhv(high,2*n2+1);
b1:=filter(a1,n2);
c1:=backset(b1,n2+1);
hd:=filter(c1,n2);
rh:=backset(datacount-barpos+1=2,barslast(hd)+1);
sh:=rh>ref(rh,1);
h1:=ref(high,barslast(sh));
stickline(h1,h1,h1,5,0),linethick2, colorcyan;
drawtext(islastbar,h1*1.005,'近期高点'), coloryellow;
ttp:=islastbar;
drawnumber(ttp and h1,h1,h1,2), coloryellow;
a2:=ref(low,n2)=llv(low,2*n2+1);
b2:=filter(a2,n2);
c2:=backset(b2,n2+1);
ld:=filter(c2,n2);
rl:=backset(datacount-barpos+1=2,barslast(ld)+1);
sl:=rl>ref(rl,1);
l1:=ref(low,barslast(sl));
stickline(l1,l1,l1,5,0),linethick5, coloryellow;
drawtext(islastbar,l1*1.005,'近期低点'), coloryellow;
drawnumber(ttp and l1,l1,l1,2), colorcyan;
ahx:=ma(close,3);
bhx:=ma(close,14);
ehx:=(ahx+bhx)/2;
当前价:=close;
市盈率:=if(finance(33)>0,dynainfo(39),0)*0.350;
每股收益:=if(finance(33)>0.010,finance(33)*0.650,0);
ckmj:=每股收益*市盈率*4;
参考买价:stickline(1,ckmj,ckmj,2,0), colorwhite;
drawicon(ehx<ckmj and cross(当前价,ehx),low*0.980,34);
drawicon(ehx>ckmj and cross(当前价,ehx),low*0.980,23);
drawtext(islastbar,ckmj*1.005,'参考买价'), colorcyan;
ttp123:=islastbar;
drawnumber(ttp123 and ckmj,ckmj,ckmj,2), coloryellow;
lc5:=ref(close,1);
rsi5:=sma(max(close-lc5,0),6,1)/sma(abs(close-lc5),6,1)*100;
r:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
a:=sma(r,3,1);
b:=sma(a,3,1);
ccc:=(b/2+40)*1.100;
da:=sma(ccc,3,1);
短逃:drawicon(cross(da,rsi5),high*1.020,12);
逃顶:drawicon(cross(80,rsi5),high*1.040,14);
drawtext(cross(da,rsi5),high*1.030,'短逃'), colorcyan;
drawtext(cross(80,rsi5),high*1.050,'逃顶'), colorgreen;
sj:=ema((close-llv(low,5))/(hhv(high,5)-llv(low,5))*100,2);
zj:=ema(0.667*ref(sj,1)+0.333*sj,2);
drawtext(cross(sj,zj) and sj<30,low-0.050,'←低吸'),linethick2, color00ff99;
上一指标公式:抓涨停预警指标公式详解 预警公式指标公式
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文倚天财经-多空止损止盈指标公式详解 公式指标公式仅供学习研究。