自己组合的
ma1:ma(close,5);
ma2:ma(close,10);
ma3:ma(close,20);
ma4:ma(close,60);
aaf:=llv(low,34),linethick1,colorffffcc;
bbf:=ma(aaf,4),linethick1,coloryellow;
typ := (high + low + close)/3;
cci1:=(typ-ma(typ,6))/(0.015*avedev(typ,5));
差值1:=abs(ref(cci1,1)-cci1),linethick0;
cci2:=(typ-ma(typ,10))/(0.015*avedev(typ,10));
差值2:=abs(ref(cci2,1)-cci2),linethick0;
cci3:=(typ-ma(typ,20))/(0.015*avedev(typ,20));
差值3:=abs(ref(cci3,1)-cci3),linethick0;
cci4:=(typ-ma(typ,30))/(0.015*avedev(typ,30));
差值4:=abs(ref(cci4,1)-cci4),linethick0;
cci5:=(typ-ma(typ,60))/(0.015*avedev(typ,60));
差值5:=abs(ref(cci5,1)-cci5),linethick0;
cci:=cci1+cci2+cci3+cci4+cci5;
aaa:=(3*c+h+l+o)/6;
var1:=(8*aaa+7*ref(aaa,1)+6*ref(aaa,2)+5*ref(aaa,3)
+4*ref(aaa,4)+3*ref(aaa,5)+2*ref(aaa,6)+ref(aaa,8))/36;
var2:=(hhv(var1,5)+hhv(var1,10)+hhv(var1,20))/3;
var3:=(llv(var1,5)+llv(var1,10)+llv(var1,20))/3;
var4:=(hhv(var2,5)+hhv(var2,10)+hhv(var2,20))/3;
var5:=(llv(var3,5)+llv(var3,10)+llv(var3,20))/3;
var6:=(llv(var1,2)+llv(var1,4)+llv(var1,6))/3;
短线:=var1,colorwhite;
中线:=var6,coloryellow;
下跌:=if(var1=var6,var6, drawnull),colorgreen;
tj1:= cci1>差值4;
立桩量:=filter(tj1,0),nodraw;
tj2:=if(barslast(立桩量)=1 ,1,0);
{stickline(立桩量 !=1,ref(high,barslast(立桩量)),
ref(high,barslast(立桩量)),1,1),colorcyan;}
{stickline(立桩量 !=1,ref(low,barslast(立桩量)),
ref(low,barslast(立桩量)),1,1),colorcyan;}
成立1:=tj2=1;
条件成立1:=filter(成立1,5);
drawtext(条件成立1, ref(high,barslast(立桩量)),'看跌'),colorliblue;
tj11:= cci1<-差值4 ;
立桩量2:=filter(tj11,0),nodraw;
tj22:=if(barslast(立桩量2)=1 and close>ref(high,1),1,0);
突破2:=tj22=1;
{stickline(close and 下跌!= var6,ref(high,barslast(立桩量2)),
ref(high,barslast(立桩量2)),1,1),coloryellow;}
stickline(close and 下跌!= var6,ref(low,barslast(立桩量2)),
ref(low,barslast(立桩量2)),1,1),coloryellow;
tj:=if(barslast(立桩量2)=1 and close>ref(low,1),1,0);
成立2:=tj=1;
条件成立2:=filter(成立2,5);
drawtext(条件成立2,ref(low,barslast(立桩量2)),'看涨'),colorlimagenta;
tj111:=abs(cci1)>cci and abs( 差值1)> abs(差值5);
立桩量3:=filter(tj111,3);
tj3:=if(barslast(立桩量3)=1 and close>ref(low,1),1,if(barslast(立桩量3)=2 and close>ref(low,2),1,if(barslast(立桩量3)=3 and close>ref(low,3),1,0)));
成立:=tj3=1;
条件成立:=filter(成立,5);
drawtext(条件成立 and 下跌!= var6,l*0.97,'☆成立');
lc:=ref(close,1);
rsi:=((sma(max((close - lc),0),3,1) / sma(abs((close - lc)),3,1)) * 100);
ff:=ema(close,3);
ma15:=ema(close,21);
drawtext(cross(ff,ma15),bbf,'底背离'),colora6e500;
drawtext(cross(88,rsi),(high * 1.01),'顶背离'),color1880ff;
{x1:=(c+l+h)/3;
bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;
ema8:=ema(c,8);
drawtext(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),
ema8,'∠45'),colorwhite;}
{通达信单阳不破}
单阳:=c>o*1.03 and vol>ref(vol,1)*1.5;
不破价:=ref(l,barslast(单阳));
drawtext(单阳,l-l*0.02,'阳'),color00ffff;
ls0:=barslast(单阳);
ls11:=if(1,ls0=1,单阳);
ls21:=if(1,llv(l,1)>ref(l,1),1);
单阳不破:=ls11 and ls21;
stickline(单阳不破,不破价-不破价*0.002,不破价,4,0),colorred;
drawtext(单阳不破,不破价-不破价*0.02,'1'),colorgreen;
ls12:=if(2,ls0=2,单阳);
ls22:=if(2,llv(l,2)>ref(l,2),1);
单阳不破2:=ls12 and ls22;
stickline(单阳不破2,不破价-不破价*0.002,不破价,4,0),colorred;
drawtext(单阳不破2,不破价-不破价*0.02,'2'),colorgreen;
ls13:=if(3,ls0=3,单阳);
ls23:=if(3,llv(l,3)>ref(l,3),1);
单阳不破3:=ls13 and ls23;
stickline(单阳不破3,不破价-不破价*0.002,不破价,4,0),colorred;
drawtext(单阳不破3,不破价-不破价*0.02,'3'),colorgreen;
ls14:=if(4,ls0=4,单阳);
ls24:=if(4,llv(l,4)>ref(l,4),1);
单阳不破4:=ls14 and ls24;
stickline(单阳不破4,不破价-不破价*0.002,不破价,4,0),colorred;
drawtext(单阳不破4,不破价-不破价*0.02,'4'),colorgreen;
ls15:=if(5,ls0=5,单阳);
ls25:=if(5,llv(l,5)>ref(l,5),1);
单阳不破5:=ls15 and ls25;
stickline(单阳不破5,不破价-不破价*0.002,不破价,4,0),colorred;
drawtext(单阳不破5,不破价-不破价*0.02,'5'),colorgreen;
ls16:=if(6,ls0=6,单阳);
ls26:=if(6,llv(l,6)>ref(l,6),1);
单阳不破6:=ls16 and ls26;
stickline(单阳不破6,不破价-不破价*0.002,不破价,4,0),colorred;
drawtext(单阳不破6,不破价-不破价*0.02,'6'),colorgreen;
ls17:=if(7,ls0=7,单阳);
ls27:=if(7,llv(l,7)>ref(l,7),1);
单阳不破7:=ls17 and ls27;
stickline(单阳不破7,不破价-不破价*0.002,不破价,4,0),colorred;
drawtext(单阳不破7,不破价-不破价*0.02,'7'),colorgreen;
ls18:=if(8,ls0=8,单阳);
ls28:=if(8,llv(l,8)>ref(l,8),1);
单阳不破8:=ls18 and ls28;
stickline(单阳不破8,不破价-不破价*0.002,不破价,4,0),colorred;
drawtext(单阳不破8,不破价-不破价*0.02,'8'),colorgreen;
ls19:=if(9,ls0=9,单阳);
ls29:=if(9,llv(l,9)>ref(l,9),1);
单阳不破9:=ls19 and ls29;
stickline(单阳不破9,不破价-不破价*0.002,不破价,4,0),colorred;
drawtext(单阳不破9,不破价-不破价*0.02,'9'),colorgreen;
ls110:=if(10,ls0=10,单阳);
ls210:=if(10,llv(l,10)>ref(l,10),1);
单阳不破10:=ls110 and ls210;
stickline(单阳不破10,不破价-不破价*0.002,不破价,4,0),colorred;
drawtext(单阳不破10,不破价-不破价*0.02,'10'),colorgreen;
{买入卖出}
ma7:=ma(c,7);
var71:=atan((ma7/ref(ma7,1)-1)*100)*180/3.1416;
aa01:=atan((ma7/ref(ma7,1)-1)*100)*180/3.1416;
bb01:=ma(aa01,4);
aa:=aa01>=bb01;
bb0:=aa01<bb01;
买入:drawicon(cross(aa,bb0),l-0.1,1);
卖出:drawicon(cross(bb0,aa),h+0.1,2);
cohl:=(c+o+h+l)/4;{算术均价}
成交均价:=amount/vol/100;
test:=between(成交均价,l,h);
cc0:=if(test,成交均价,cohl),colorwhite;{当均价远离算术均价时,用算术均价}
cc:=forcast(cc0,5),colorwhite;
ema34:=ema(cc,34),colorffcc66;
ema21:=ema(cc,21),colorgreen;
ema13:=ema(cc,13),colorff00ff;
ema5:=ema(ema(cc,5),2),coloryellow;
tj0:=c>o and abs(ema13-ema5)<ema5*0.01
and abs(ema13-ema21)<ema21*0.01
and abs(ema34-ema21)<ema21*0.01
and ema5>ref(ema5,1) and ema13>ref(ema13,1)
and ema21>ref(ema21,1) and ema34>ref(ema34,1);
启动点:=filter(tj0,5);
drawtext(启动点,l*0.92,'启动点'),colormagenta;
rsv:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
x:=llv(j,2)=llv(j,8);
var01:=llv(low,10);
var02:=hhv(high,25);
var03:=100*ema((close-var01)/(var02-var01),4);
drawtext(cross(var03,87.5),high*1.02,'收手'),coloryellow;
drawtext(cross(j,ref(j+0.01,1)) and x and j<20,low*0.96,'抢钱'),colorred;
ma5:=ma(close,5),pointdot,color000000,linethick1;
ma21:=ema(close,21);
mid:=ma(close,21),color000000,linethick0;
风险线:=ma(close,13),linethick3,colorgreen;
止损线:=ma(close,27),linethick0,coloree00ee;
drawtext(cross(c,止损线)and 止损线>风险线,(low * 0.92),'主升浪'),colorred,linethick3;
var100:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
var200:=sma(var100,3,1);
aa9:=var100>=var200;
bb6:=var100<var200;
买:drawicon(cross(aa9,bb6),l-0.1,1);
卖:drawicon(cross(bb6,aa9),h,2);
上一指标公式:量副图指标详解 通达信源码
下一指标公式:三平底主图--指标详解 通达信
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文自己组合的主图指标详解 通达信源码通达信仅供学习研究。