{分时主图}
var1:=1;
a1:=(ema(c,5)+ema(c,15))/2;
b1:=(ema(c,30)+ema(c,60))/2;
c1:=sum(c*v,(barssince(v>0)+1))/sum(v,(barssince(v>0)+1))+((barssince(v>0)+1)*0);
d1:=(c1+dynainfo(5))/2;
e1:=(c1+dynainfo(6))/2;
振幅:=dynainfo(13)*100;
线幅1:=abs((d1-b1)/b1)*100;
上涨幅:=abs((d1-ref(d1,1))/ref(d1,1))*100;
线幅2:=abs((c1-b1)/b1)*100;
均涨幅:=abs((c1-ref(c1,1))/ref(c1,1))*100;
线幅3:=abs((e1-b1)/b1)*100;
下涨幅:=abs((e1-ref(e1,1))/ref(e1,1))*100;
慢线幅:=abs((b1-ref(b1,1))/ref(b1,1))*100;
上差:=abs(c1-d1);
下差:=abs(c1-e1);
偏下:=count(下差*3<上差,15)=15;
偏上:=count(上差*3<下差,15)=15;
下横:=(count(线幅2<0.15,10)=10 and count(均涨幅<0.01,10)=10 and count(慢线幅<0.01,5)=5) or (count(线幅3<0.15,10)=10 and count(下涨幅<0.01,10)=10 and count(慢线幅<0.01,5)=5);{公式在线提供:www.goodgongshi.com}
上横:=(count(线幅1<0.15,10)=10 and count(上涨幅<0.01,10)=10 and count(慢线幅<0.01,5)=5) or (count(线幅2<0.15,10)=10 and count(均涨幅<0.01,10)=10 and count(慢线幅<0.01,5)=5);
上突:=偏下 and 下横;
下破:=偏上 and 上横;
标准1:=count(b1<e1,15)=15 and count(b1<ref(b1,1),15)=15;
标准2:=count(b1<e1,20)=20 and count(b1<ref(b1,1),15)=20;
标准3:=count(b1<e1,25)=25 and count(b1<ref(b1,1),20)=25;
低位:=if(振幅>=5,标准3,if(振幅<5 and 振幅>=3,标准2,标准1));
均价:c1,coloryellow,linethick2;
上轨:=d1,colorred,pointdot;
下轨:=e1,colorgreen,pointdot;
回调认同:=ema(expma(c,20),13),color004b00;
aaa:=max(dynainfo(3),dynainfo(5));
bbb:=min(dynainfo(3),dynainfo(6));
ccc:=aaa-bbb;
中轨:=(aaa+bbb)/2,color999900;
阻力:bbb+ccc*7/8*var1,colorblue,linethick3;
支撑:bbb+ccc*1/8*var1,colorblue,linethick3;
中位:(阻力+支撑)/2*var1,colorcyan,linethick3;
上顶:=bbb+ccc*2/3,color999900;
下底:=bbb+ccc/3,color999900;
价:c*var1,linethick3,colorffffff;
stickline(价>阻力,价,阻力,3,0),coloryellow,linethick2;
stickline(价<支撑,价,支撑,3,0),coloryellow,linethick2;
drawnumber(currbarscount=1,阻力,阻力),colorwhite;
drawnumber(currbarscount=1,支撑,支撑),colorwhite;
drawnumber(currbarscount=1,中位,中位),coloryellow;
h1:=max(dynainfo(3),dynainfo(5));
l1:=min(dynainfo(3),dynainfo(6));
p1:=h1-l1;{}
支撑1:=l1+p1*0.5/8;
现价1:=close;
抄:cross(支撑1,现价1)nodraw;
stickline(抄=1,现价1,中位,4,0)colorwhite;
stickline(time=103000,阻力,支撑,4,0),colorbrown;
stickline(time=140000,阻力,支撑,4,0),colorbrown;
stickline(time=130000,阻力,支撑,4,0),colorbrown;
{分时善守}
var1a1:=1;
现价:=c*var1a1,nodraw;
aaa:=max(dynainfo(3),dynainfo(5))*var1a1;
bbb:=min(dynainfo(3),dynainfo(6))*var1a1;
ccc:=aaa-bbb;
中轨:=(aaa+bbb)/2,color999900;
高:bbb+ccc*7/8*var1a1,nodraw;
低:bbb+ccc*1/8*var1a1,nodraw;
{}
notextdif:(ema(close,33)-ema(close,93))*var1a1,colorwhite,linethick3;
notextdea:ema(notextdif,14)*var1a1,colorwhite,linethick3;
drawband(notextdif,rgb(250,0,0),notextdea,rgb(21,138,255));
macd:=(notextdif-notextdea)*2*var1a1,colorstick;
stickline((macd>=0),0,macd,3,1),color0000ff;
stickline(((macd>=0) and (macd < ref(macd,1))),0,macd,3,0),colorcyan;
stickline((macd<0),0,macd,3,0),colorffff00;
stickline(((macd<0) and (macd > ref(macd,1))),0,macd,3,1),colorred;
振幅:100*(dynainfo(5)-dynainfo(6))/dynainfo(6)*var1a1,nodraw;
涨速:=c/ref(c,4)*100-100,nodraw;
换手:=vol/capital*100,nodraw;
notextah:hhv(notextdif,55/2)colorgreen,linethick2;
notextal:llv(notextdif,55/2)colorred,linethick2;
var0:=(ma(((100 * (close - llv(close,34))) / (hhv(high,34) - llv(low,34))),5) - 20);
var1:=(2 * abs(var0));
var2:=(100 - ((100 - (3 * sma((((close - llv(low,55)) / (hhv(high,55) - llv(low,55))) * 100),20,1))) + (2 * sma(sma((((close - llv(low,55)) / (hhv(high,55) - llv(low,55))) * 100),20,1),15,1))));
var3:=(100 - ((100 - (3 * sma((((open - llv(low,55)) / (hhv(high,55) - llv(low,55))) * 100),20,1))) + (2 * sma(sma((((open - llv(low,55)) / (hhv(high,55) - llv(low,55))) * 100),20,1),15,1))));
var4:=(((high + low) + close) / 3);
var5:=((var4 - ma(var4,10)) / (0.015 * avedev(var4,10)));
var6:=((var4 - ma(var4,30)) / (0.015 * avedev(var4,30)));
var7:=if(((((var5 >= 150) and (var5 < 200)) and (var6 >= 150)) and (var6 < 200)),10,0);
var8:=if(((((var5 <= (0 - 150)) and (var5 > (0 - 200))) and (var6 <= (0 - 150))) and (var6 > (0 - 200))),(0 - 10),var7);
var9:=(((close - ma(close,13)) / ma(close,13)) * 100);
vara:=(100 - abs(var9));
varb:=((3 * sma((((indexc - llv(indexl,55)) / (hhv(indexh,55) - llv(indexl,55))) * 100),20,1)) - (2 * sma(sma((((indexc - llv(indexl,55)) / (hhv(indexh,55) - llv(indexl,55))) * 100),20,1),15,1)));
varc:=((3 * sma((((indexo - llv(indexl,55)) / (hhv(indexh,55) - llv(indexl,55))) * 100),20,1)) - (2 * sma(sma((((indexo - llv(indexl,55)) / (hhv(indexh,55) - llv(indexl,55))) * 100),20,1),15,1)));
vard:=(ref(low,1) * 0.9);
vare:=(low * 0.9);{}
varf:=(((vare * vol) + (vard * (capital - vol))) / capital);
var10:=ema(varf,30);
var11:=(var10 - close);
var12:=ref(close,1);
var13:=((sma(max((close - var12),0),7,1) / sma(abs((close - var12)),7,1)) * 100);
var14:=((sma(max((close - var12),0),13,1) / sma(abs((close - var12)),13,1)) * 100);
var15:=barscount(close);
var16:=((sma(max((close - ref(close,1)),0),6,1) / sma(abs((close - ref(close,1))),6,1)) * 100);
var17:=(((((0 - 100) * (hhv(high,60) - close)) / (hhv(high,60) - llv(low,60))) + 50) * 2);
var18:=(((close - llv(low,15)) / (hhv(high,15) - llv(low,15))) * 100);
var19:=((sma(var18,4,1) - 50) * 2);
var1a:=sma(var19,3,1);
var1b:=(((indexc - llv(indexl,14)) / (hhv(indexh,14) - llv(indexl,14))) * 100);
var1c:=sma(var1b,4,1);
var1d:=sma(var1c,3,1);
var1e:=(((hhv(high,30) - close) / close) * 100);
var1f:=if((((((((((var16 <= 25) and (var17 < (0 - 95))) and (var1e > 20)) and (var1a < (0 - 30))) and (var1d < 30)) and (var11 >= (0 - 0.25))) and (var13 < 22)) and (var14 < 28)) and (var15 > 50)),80,0);
var20:=if((vara < 90),vara,100);
顶线:=if((var0> 0),var0,0);
多方:=(0 - if((var0 < 0),var1,0));
反弹:=var1f;
空方:=(if((((var6 >= 200) and (var5 >= 150)) or cross(65,顶线)),15,if(((var6 <= (0 - 200)) and (var5 <= (0 - 150))),(0 - 15),var8)) + 65);
压力线:=((close > ma(close,20)) and (ma(close,20) >= ref(ma(close,20),1)));
t1:=((close < ma(close,20)) and (ma(close,20) < ref(ma(close,20),1)));
t2:=(((顶线 > 60) and (空方 > 65)) and (var20 = 100));
t3:=(((顶线 > 48) and (空方 > 65)) and (var20 < 100));
t4:=((多方 < (0 - 38)) and (空方 < 65));
t5:=((反弹 > 50) and (var20 < 90));
t6:=(((var2 > ref(var3,1)) and (vol > ref(vol,1))) and (close > ref(close,1)));
t7:=((((((var2 <= ref(var3,1)) and (close < ref(close,1))) and (空方 = 65)) and (反弹 = 0)) and (多方 >= ref(多方,1))) and (varb < ref(varc,1)));
t8:=(amount / (100 * vol));
varaaa:=ma(t8,13);
cyc13:=ma(t8,34);
cyc34:=dma(close,(vol / capital));
cycmax:=(((close - varaaa) / varaaa) * 100);
cys13:=(((close - cyc13) / cyc13) * 100);
cys34:=(((close - cyc34) / cyc34) * 100);
超跌:=if((cycmax <= (0 - 20)),42,0);
cysmax:=ref(close,1);
va1:=((sma(max((close - cysmax),0),7,1) / sma(abs((close - cysmax)),7,1)) * 100)*var1a1;
va2:=((sma(max((close - cysmax),0),13,1) / sma(abs((close - cysmax)),13,1)) * 100)*var1a1;
va3:=barscount(close)*var1a1;
va4:=(((va1 < 20) and (va2 < 25)) and (va3 > 50)) and notextdea<0;
买进:(va4 *notextah),nodraw,linethick4,color10ffff;
{drawicon(买进>0 or 买进<0,0,9);}
涨幅%:=dynainfo(14)*100,nodraw;
shou:=if(date<=1150520,1,0);
shi:=between((dclose*shou)/(sum(amount,barscount((dclose*shou)))/sum(vol*100,barscount((dclose*shou)))),1.05,0.95);
tou:=if(shi=0,ma((dclose*shou),barscount((dclose*shou))),(sum(amount,barscount((dclose*shou)))/sum(vol*100,barscount((dclose*shou)))));
动力线:=expma((dclose/tou),13),colorffff00,linethick1;
趋势线:=expma((dclose/tou),88),color0080ff,linethick2;
notext1:=1.003,colorligreen,linethick2;
notext2:=1.03,colorlired,linethick2;
drawtext(cross(expma((dclose/tou),20),1.04),0.01,'●涨停'),coloryellow;
notext3:if(动力线>1.003,动力线,drawnull),colormagenta,nodraw;
notext4:if(动力线>1.03,动力线,drawnull),colorred,nodraw;
注意涨停:cross(动力线,1.03),nodraw;
drawicon(cross(动力线,1.03),0,13);
【买点】:(高+低)/2,nodraw;
上一指标公式:极限顶底 通达信极限
下一指标公式:机构筹码 通达信筹码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文分时善守 分时主图 通达信仅供学习研究。