用法:
两线合一,上涨
两线分开,逃吧
r主图
{n1 1 100 10 n2 0 30 3}
n:=5;
n1:=10;
n2:=3;
a1:=backset(islastbar,peakbars(1,n,1)+1);
a2:=a1>ref(a1,1);
b1:=backset(islastbar,peakbars(1,n,2)+1);
b2:=b1>ref(b1,1);
c1:=backset(islastbar,peakbars(1,n,3)+1);
c2:=c1>ref(c1,1);
drawline(b2,h,a2,h,1);
drawline(c2,h,b2,h,0);{n:3.1.99,主图叠加};
if(a1,peak(1,n,1),drawnull);
{drawline(c2,h,a2,h,1);}
a11:=backset(islastbar,troughbars(2,n,1)+1);
a21:=a11>ref(a11,1);
b11:=backset(islastbar,troughbars(2,n,2)+1);
b21:=b11>ref(b11,1);
c11:=backset(islastbar,troughbars(2,n,3)+1);
c21:=c11>ref(c11,1);
drawline(b21,l,a21,l,1);
drawline(c21,l,b21,l,0);
{drawline(c21,l,a21,l,1);}
if(a11,trough(2,n,1),drawnull); lc := ref(close,1);
rsi1:=sma(max(close-lc,0),n1,1)/sma(abs(close-lc),n1,1)*100,color9900ff;
drawtext(cross(rsi1,80),(high * 1.1),'卖'),coloryellow;
drawicon(cross(rsi1,80),(high)*(1.02),2);
b36:=ma(close,3) - ma(close,6);
b612:=ma(close,6) - ma(close,12);
w:=((b36)/(close))*(10);
j1:=((b612)/(close))*(10);
drawtext((w < (-0.2)) and (j1 < (-0.2)) and cross(w,j1),(low)*(0.95),'庄'),colorred;
庄家:=(w < (-0.2)) and (j1 < (-0.2)) and cross(w,j1);
stickline(庄家,o,c,4,1),linethick2,colorffffff;
m1:=sum((ema((close + low)/(2),2))/(2.98),3),pointdot,colorffffff;
m2:=ema(m1,21),colorff00ff;
m30:=ma(close,30),linethick1,colorff0000;
var1:=(2)*(ma((llv((close + low)/(2),8))*(1.1),13)) - ema((close + low)/(2),3) - ((close + low)/(2))*(0.1);
var2:=if(((ema((close + low)/(2),3) - var1)*(5) > 0),(pow((ema((close + low)/(2),3) - var1)*(5),2))/(10),(((-1))*(pow((ema((close + low)/(2),3) - var1)*(5),2)))/(10));
var3:=if((var2 > 0),var2 - 0,(-1));
工作线:=ma(close,1);
m3:=ma(close,3);
m13:=ma(close,13);
ema13:=ema(c,13);
ema34:=ema(c,34);
ema55:=ema(c,55);
ema120:=ema(c,120);
ar1:=ema55>ema34 and ema34>ema13;
ar2:=barslast((c-ema13)/ema13*100<-6);
ar3:=ema13>=ref(ema13,2);
ar4:=count(cross(c,ema13),ar2)=1;
ar5:=ar1 and ar2 and ar3 and ar4;
ar6:=ar5 and filter(ar5,10);
v1:=ema(close,5);
v2:=ema(ema(close,90)*1.01,10);
drawtext(cross(v1,v2),l-0.09,'起'),color00ff00;
aa1:=amount/v;
bb1:=l<aa1*0.9;
cc1:=(c-ref(c,1))/ref(c,1)*100>1.2;
dd1:=l<ma(c,5)*0.921;
ee1:=v<ma(v,5)*1.5;
ff1:=bb1 and cc1 and dd1 and ee1;
a1aa:=9;
a2aa:=(ref(close,a1aa+1)<close);
drawtext(filter((a2aa>-0.5),84),(high)*(1.04),'变'),colorffffff;
drawicon(filter((a2aa>-0.5),84),(high)*(1.02),2);
tt2:=dma((((high + low) + (close * 2)) / 4.15),0.9);
tt1:=ref(ema(tt2,3),1);
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
ema1:=ema(c,1);
ma30:=ma(c,30),coloryellow,pointdot,linethick2;
生命:=ema(close,453),colorff00ff,pointdot,linethick2;
lock:=1;
m8:=ema(close,8);
var21:=ema(m13,62);
var22:=(close+high+low)/3;
var23:=ema(var22,10)*lock;
var24:=ref(var23,1)*lock;
drawtext(ar6,l-0.25,'杏'),color00ccff;
stickline(ar6,h,l,0.5,1),color00ccff;
stickline(ar6,o,c,6,1),linethick2,color00ccff;
br1:=count(between((c-ref(c,1))/ref(c,1)*100,0,5) ,5)=5;
br2:=abs((ema13-ema34)+(ema34-ema55))/c<0.2;
br3:=c>ema55 and (ref(c,1)<ref(ema55,1) or ref(c,2)<ref(ema55,2) or ref(c,3)<ref(ema55,3) or ref(c,4)<ref(ema55,4) or ref(c,5)<ref(ema55,5));
br4:=br1 and br2 and br3;
drawtext(br4 and filter(br4,10),h*1.08,'蚁'),color00c5ff;
stickline(br4 and filter(br4,10),h,l,0.5,1),color00c5ff;
stickline(br4 and filter(br4,10),o,c,6,1),linethick2,color00c5ff;
x20:=drawtext(cross(ema34,ema55),l-0.5,'重'),coloryellow;
stickline(cross(ema34,ema55),h,l,0.5,1),color00ccff;
stickline(cross(ema34,ema55),o,c,6,1),linethick2,color00ccff;
drawtext(cross(rsi1,50),l-1.08,'买'),colorred;
drawicon(cross(rsi1,50),l-0.58,1);
drawtext(cross(88,rsi),(high * 1.02),'顶'),color1880ff;
var11:=if(c>=o,h,0);
var12:=if(c<=o,ref(h,1),var11);
var13:=if(c>=o,v,0);
var14:=if(c<=o,ref(v,1),var3);
var15:=count(var12>ref(var12,1) and var14<ref(var14,1),3)>=2 and c>o;
量价背离:=var15*40,stick,colorf5cceb,linethick2;
drawtext(量价背离,high * 1.02,'离'),coloryellow;
vare:=ma(100*(close-llv(close,34))/(hhv(high,34)-llv(low,34)),5)-20;
varf:=100-3*sma((close-llv(low,75))/(hhv(high,75)-llv(low,75))*100,20,1)+2*sma(sma((close-llv(low,75))/(hhv(high,75)-llv(low,75))*100,20,1),15,1);
var60:=100-3*sma((open-llv(low,75))/(hhv(high,75)-llv(low,75))*100,20,1)+2*sma(sma((open-llv(low,75))/(hhv(high,75)-llv(low,75))*100,20,1),15,1);
var61:=varf<ref(var60,1) and vol>ref(vol,1) and close>ref(close,1);
大资金:=(var61 and count(var61,30)=1);
drawtext(大资金,low*0.9,'▲');
drawtext(大资金,low*0.8,'大资金');
gj:=(c+h+l+o)/4;
明日阻力:=l+(gj-l)+(c-l);
明日支撑:=l+(c-gj);
今日阻力:ref(明日阻力 , 1),nodraw;
今日支撑:ref(明日支撑 , 1),nodraw;
stickline(islastbar and c>=今日阻力,今日阻力,今日阻力,10,1),color0000ff;
stickline(islastbar and c<今日阻力,今日阻力,今日阻力,10,1),color00ff00;
stickline(islastbar and c>=今日支撑,今日支撑,今日支撑,10,1),colorff00ff;
stickline(islastbar and c<今日支撑,今日支撑,今日支撑,10,1),colorff8800;
mid1:=(3*close+low+open+high)/6;
ma1:=ma(mid1,8),colorwhite;
ma2:=ma(mid1,13),colorffcccc;
ma3:=ma(mid1,21),colorffcc66;
ma55:=ma(mid1,55),linethick2;
ma144:=ma(mid1,144),linethick2;
ma233:=ma(mid1,233),linethick2;
乖离线:=((c-ref(ma1,1))/20+ma1)*1.20;
回调认同:=ema(expma(mid1,20),13),colorred,crossdot;
信号线:hhv(forcast(c,10),8),colorff00ff;
合力线:forcast(c,10),color00ff00;
rsv11:=(c - llv(low,27))/(hhv(high,3) - llv(low,27)) * 100;
f := sma(rsv11, 3, 1);
k11 := sma(f,3, 1);
d11 := sma(k11,3, 1);
wav:=3*k11-2*d11;
a41:=if(1,c,if(c<ref(o,1) and l<ref(l,1),l,c));
a42:=if(c<ref(l,1),l,a41);
a43:=if(h<ref(o,1),l,a42);
a44:=if(o<=ref(c,1) and c<ref(o,1),l,a43);
a:=if(c<o and o<ref(o,1) and l<ref(l,1),l,a44);
aj1:=atan((a/ref(a,1)-1)*100)*180/3.1416;
ljiao:=atan((vol/ref(vol,1)-1)*100)*180/3.1416;
dslj:=ljiao>0 and abs(ljiao-aj1)<30;
jia5:=wav-ref(wav,4)>50;
dsale:=dslj and (jia5 or wav>90);
dilj:=ljiao<0 and abs(ljiao-aj1)<30;
jia6:=wav-ref(wav,4)<-50;
dbuy:=dilj and (jia6 or wav<10);
plx:=((c-ma(c,10))/ma(c,10)+(c-ma(c,5))/ma(c,5))*100;
ding1:=plx>25;
di1:=plx<-25;
跌幅:=(c-hhv(c,10))/hhv(c,10)*100;
di2:=跌幅<-20;
涨幅:=(c-llv(c,10))/llv(c,10)*100;
ding2:=涨幅>20;
ding:=dsale or ding2;
di:=dbuy or di1 or di2;
qsa:=(ma(c,60)-ref(ma(c,60),10))/ref(ma(c,60),10)*100;
qs:=sma(qsa,10,1);
ds:=qs<-3 or ma(c,60)<ref(ma(c,60),1);
qc:=ds and ding and ding!=ref(ding,1);
drawtext(qc,h*1.05,'◇'),colorred;
drawtext(qc,h*1.15,'做空'),colorred;
vara:=llv(low,36);
varb:=hhv(high,30);
varc:=ema((close-vara)/(varb-vara)*4,4)*25;
趋势:= varc, color33ffff;
顶背: stickline(varc>90,open,close,3,0) , colorred;
阴线买入:=c>o && ma(c,5)<ma(c,10) && ref(c<o,1) && ref(c<o,2)&&ref(c<o,3)&&(ref(c,1)<ref(c,4)*0.88 or ref(c,1)<ref(o,4)*0.88);
stickline(阴线买入,o,c,4,0),colorred;
var71:=4*sma((close-llv(low,5))/(hhv(high,5)-llv(low,5))*100,5,1)-
3*sma(sma((close-llv(low,5))/(hhv(high,5)-llv(low,5))*100,5,1),3.2,1);
var72:=8;
cc3:=cross(var71,var72);
drawtext(cc3,l*0.98,'买!'),color0099ff;
tt:=240/fromopen;
比:=tt;
j12:=(high - ((high - low) / 3));
j23:=(low + ((high - low) / 3));
aaa:=const(hhv(h,90));
bbb:=const(llv(l,100));
drawkline(h,o,l,c);
大盘:=ema(indexc,500)/ema(c,500);
大盘线:=indexc/大盘,linethick1,color0066ff;
大盘线1:=ma((indexc/大盘),5),colorgreen;
t1{早晨之星}:=const(if((大盘线>=ref(大盘线,1) and cross (大盘线,大盘线1)),1,0));
t3{长十字}:=const(if((大盘线<=ref(大盘线,1) and cross (大盘线1,大盘线)),1,0));
ts1:=if(t1=1,0+0.03,0);
ts3:=if(t3=1,ts1+0.03,ts1);
drawtext(t1=1 and currbarscount=58,aaa-(aaa*ts1),'大盘多头攻击,机会出现,买股'),colorff00ff ;
drawtext(t3=1 and currbarscount=58,aaa-(aaa*ts3),'大盘空头攻击,无机会,出局'),color00ffff ;
f1:=100*(c-ref(c,1))/ref(c,1);
今小昨:=if(c<ref(o,1) and f1<0,1,0);
p1:=今小昨;
今小前:=if(c<ref(o,2) and f1<0,1,0);
p2:=今小前;
彩k:=(p1=0 and ref(p1,1)=1 and p2=0 and ref(p2,1)=1);
stickline(p1=0 and ref(p1,1)=1 and p2=0 and ref(p2,1)=1,open,close,3,0),colormagenta;
上一指标公式:主力吸货指标详解 通达信源码
下一指标公式:豆豆高抛低吸指标详解 通达信豆豆
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文R主图有用法说明指标详解 通达信用法仅供学习研究。