{共用均线}
ma5:ma(close,5),colorwhite;if(ma5<ref(ma5,1),ma5,drawnull),colorligray;
ma10:ma(close,10),coloryellow;if(ma10<ref(ma10,1),ma10,drawnull),color99ffcc;
{ma20:ma(close,20),color3366ff;if(ma20<ref(ma20,1),ma20,drawnull);}
ma30:ma(close,30),colormagenta;if(ma30<ref(ma30,1),ma30,drawnull),colorcc99ff;
ma60:ma(close,60),colorgreen;if(ma60<ref(ma60,1),ma60,drawnull),color99ff00;
ma180:ma(close,180),colorff9933;if(ma180<ref(ma180,1),ma180,drawnull),colorffff33;
{1.离进场线}
jrh:=hhv(c,2);
jrl:=llv(c,2);
ma3:=ma(c,3);
ytsl:=(3*c+l+o+h)/6;
z1d:=c>=ref(c,1);z1x:=c<=ref(c,1);
z2d:=c>=ref(c,2);z2x:=c<=ref(c,2);
x1d2:=z1x and z2d;d1x2:=z1d and z2x;
r1:=z1d and z2d;
r2:=ref(r1,1) and x1d2;
r3:=ref(r2,1) and d1x2;
r4:=ref(r3,1) and x1d2;
r5:=ref(r4,1) and d1x2;
r6:=ref(r5,1) and x1d2;
r7:=ref(r6,1) and d1x2;
r8:=ref(r7,1) and x1d2;
r9:=ref(r8,1) and d1x2;
ra:=ref(r9,1) and x1d2;
rb:=ref(ra,1) and d1x2;
rc:=ref(rb,1) and x1d2;
rd:=z1x and z2x;
re:=ref(rd,1) and d1x2;
rf:=ref(re,1) and x1d2;
r10:=ref(rf,1) and d1x2;
r11:=ref(r10,1) and x1d2;
r12:=ref(r11,1) and d1x2;
r13:=ref(r12,1) and x1d2;
r14:=ref(r13,1) and d1x2;
r15:=ref(r14,1) and x1d2;
r16:=ref(r15,1) and d1x2;
r17:=ref(r16,1) and x1d2;
r18:=ref(r17,1) and d1x2;
r19:=((ref(rd or re or rf or r10 or r11 or r12 or r13 or r14 or r15 or r16 or r17 or r18,1)) and r1);
r1a:=((ref(r1 or r2 or r3 or r4 or r5 or r6 or r7 or r8 or r9 or ra or rb or rc,1)) and rd);
红色持股:=r1 or r2 or r3 or r4 or r5 or r6 or r7 or r8 or r9 or ra or rb or rc,color0000ff,nodraw;
离场:=if(红色持股,jrl,drawnull);
明离场价:=离场,colorff99ff,nodraw;
今离场价:ref(离场,1)colorgreen,nodraw;
青色观望:=rd or re or rf or r10 or r11 or r12 or r13 or r14 or r15 or r16 or r17 or r18,colorffff00,nodraw;
进:=if(青色观望,jrh,drawnull);
明进场价:=进,color33aacc,nodraw;
今进场价:ref(明进场价,1),colorred,nodraw;
短买:r19,colorlired,nodraw;
stickline(islastbar and (红色持股 or ref(红色持股,1)=1),今离场价,今离场价,30,1),color0000ff;
stickline(islastbar and (青色观望 or ref(青色观望,1)=1),今进场价,今进场价,30,1),color00ff00;
{2.解盘}
qlife:=(ema(close,60)+ema(close,90))/2,pointdot,colorgreen,linethick4;
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);
t1{早晨之星}:=const(if((ref(close,2)/ref(open,2) < 0.95 and ref(open,1)
< ref(close,2) and abs(ref(open,1)-ref(close,1))/ref(close,1)<0.03 and
close/open>1.05 and close>ref(close,2)),1,0));
t2{黄昏之星}:=const(if((ref(close,2)/ref(open,2) > 1.03 and ref(open,1)
> ref(close,2) and abs(ref(open,1)-ref(close,1))/ref(close,1)<0.02
and close/open<0.97 and close<ref(close,2)),1,0));
t3{长十字}:=const(if((close=open and high/low >1.03),1,0));
t4{垂死十字}:=const(if((close=open and close=low and close!=high),1,0));
t5{早晨十字星}:=const(if((ref(close,2)/ref(open,2) < 0.95 and ref(open,1)
< ref(close,2) and ref(open,1)=ref(close,1) and
close/open>1.05 and close>ref(close,2)),1,0));
t6{黄昏十字星}:=const(if((ref(close,2)/ref(open,2) > 1.05 and ref(open,1)
> ref(close,2) and ref(open,1)=ref(close,1) and
close/open<0.95 and close<ref(close,2)),1,0));
t7{射击之星}:=const(if((min(open,close)=low and high-low >
3*(max(open,close)-low) and close > ma(close,5)),1,0));
t8{倒转锤头}:=const(if((min(open,close)=low and high-low >
3*(max(open,close)-low) and close < ma(close,5)),1,0));
t9{锤头}:=const(if((high = max(open,close) and high-low >
3*(high-min(open,close)) and close < ma(close,5)),1,0));
t10{吊颈}:=const(if((high = max(open,close) and high-low >
3*(high-min(open,close)) and close>ma(close,5)),1,0));
t11{穿头破脚}:=const(if(((ref(close,1)/ref(open,1)>1.03 and close/open<0.96
and close<ref(open,1)
and open>ref(close,1))or (ref(close,1)/ref(open,1)<0.97 and close/open>1.04
and close>ref(open,1) and open<ref(close,1))),1,0));
t12{乌云盖顶}:=const(if((ref(close,1)/ref(open,1)>1.03 and close/open<0.97
and open>ref(close,1) and close<ref(close,1)),1,0));
t13{曙光初现}:=const(if((ref(close,1)/ref(open,1)<0.97 and close/open>1.03
and open<ref(close,1) and close>ref(close,1)),1,0));
t14{身怀六甲}:=const(if((abs(ref(close,1)-ref(open,1))/ref(close,1) > 0.04
and abs(close-open)/close<0.005 and
max(close,open) < max(ref(close,1),ref(open,1)) and min(close,open)
> min(ref(close,1),ref(open,1))),1,0));
t15{十字胎}:=const(if((abs(ref(close,1)-ref(open,1))/ref(close,1) > 0.04
and close=open and
close < max(ref(close,1),ref(open,1)) and close > min(ref(close,1)
,ref(open,1))),1,0));
t16{平顶}:=const(if((abs(high-ref(high,1))/high<0.001),1,0));
t17{平底}:=const(if(((abs(low-ref(low,1))/low<0.001 and abs(ref(low,1)
-ref(low,2))/ref(low,1)<=0.001)),1,0));
t18{大阳烛}:=const(if((close/open>1.05 and high/low < close/open+0.018),1,0));
t19{三个白武士}:=const(if((ref(close,2)>ref(open,2) and ref(close,1)
>ref(open,1) and close>open
and ref(close,1)>ref(close,2) and close>ref(close,1)),1,0));
t20{双飞乌鸦}:=const(if((ref(close,1)<ref(open,1) and close<open
and close/open<0.98),1,0));
t21{孕育线}:=const(if((ref(close,2)>ref(open,2) and (ref(close,2)
-ref(open,2))/ref(open,2)>=2/100 and ref(open,1)>=ref(close,1)
and (ref(open,1)-ref(close,1))/ref(close,1)<=2/100 and ref(open,1)
<=ref(close,2) and ref(close,1)>=ref(open,2) and c>=open
and (close-open)/open>=2/100 and close>=ref(open,1) and open<=ref(close,1)
and (max(close,ref(c,2))-min(close,ref(close,2)))/min(close,ref(close,2))
<=1/100),1,0));
t22{多方炮}:=const(if((ref(close,2)>ref(open,2) and ref(close,1)<ref(open,1)
and close>open),1,0));
t23{出水芙蓉}:=const(if(((open<ema(c,20) or open<ema(c,40) or open<
ema(c,60)) and (c>max(ema(c,20),max(ema(c,40),ema(c,60))))and (v/ma(v,30)
>1.2 and c/ref(c,1)>1.049)),1,0));
t24{上升三部曲}:=const(if((ref(close,4)/ref(open,4)>1.03 and ref(close,3)
<ref(open,3) and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1)
and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)
<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2)
and ref(high,4)>ref(high,1) and close/open>1.03 and close>ref(close,4)),1,0));
t25{下跌三部曲}:=const(if(( ref(close,4)/ref(open,4)<0.97 and ref(close,3)
>ref(open,3) and ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1)
and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)
<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open<0.97 and
close<ref(close,4)),1,0));
t26{跳空缺口}:=const(if(high<ref(low,1) or low>ref(high,1),1,0));
t27{三只乌鸦}:=const(if((ref(close,2)<ref(open,2) and ref(close,1)
<ref(open,1) and close<open and ref(close,1)<ref(close,2)
and close<ref(close,1)),1,0));
t28{光脚阴线}:=const(if((low=close and high!=low),1,0));
t29{光头阳线}:=const(if((high=close and high!=low),1,0));
t30{分离}:=const(if((open=ref(open,1) and (close-open)*(ref(close,1)
-ref(open,1))<0),1,0));
t31{长下影}:=const(if(((min(close,open)-low)/(high-low)>0.667),1,0));
t32{长上影}:=const(if(((high-max(close,open))/(high-low)>0.667),1,0));
t33{十字星}:=const(if((close=open and high!=low),1,0));
t34{大阴烛}:=const(if((open/close > 1.05 and high/low < open/close+0.018),1,0));
t35{好友反攻}:=const(if(((ref(close,1)<ref(open,1) and close>open
and abs(close-ref(close,1))/close<0.002) or (ref(close,1)>ref(open,1)
and close<open and abs(close-ref(close,1))
/close<0.002)),1,0));
t36{倾盆大雨}:=const(if((ref(c,1)/ref(o,1)>=1.03 and o<ref(c,1) and o
>ref(o,1) and c<ref(o,1)),1,0));
t37{m9}:=const(v*比>ref(v,1) and ma(v,5)>ref(ma(v,5),1));
t38{m10}:=const(v*比<ref(v,1) and ma(v,5)>ref(ma(v,5),1));
t39{m11}:=const(v*比>ref(v,1)and ma(v,5)<ref(ma(v,5),1));
t40{m12}:=const(v*比<ref(v,1)and ma(v,5)<ref(ma(v,5),1));
t41{m13}:=const((((if((close = open),1,0) + if((close >= j12),1,0)) + if((close <= j23),1,0)) > 1));
t42{m14}:=const((((amount / vol) / 100) > ref(high,1)));
t43{m15}:=const((((amount / vol) / 100) < ref(low,1)));
ts1:=if(t1=1,0.05,0);
ts2:=if(t2=1,ts1+0.05,ts1);
ts3:=if(t3=1,ts2+0.05,ts2);
ts4:=if(t4=1,ts3+0.05,ts3);
ts5:=if(t5=1,ts4+0.05,ts4);
ts6:=if(t6=1,ts5+0.05,ts5);
ts7:=if(t7=1,ts6+0.05,ts6);
ts8:=if(t8=1,ts7+0.05,ts7);
ts9:=if(t9=1,ts8+0.05,ts8);
ts10:=if(t10=1,ts9+0.05,ts9);
ts11:=if(t11=1,ts10+0.05,ts10);
ts12:=if(t12=1,ts11+0.05,ts11);
ts13:=if(t13=1,ts12+0.05,ts12);
ts14:=if(t14=1,ts13+0.05,ts13);
ts15:=if(t15=1,ts14+0.05,ts14);
ts16:=if(t16=1,ts15+0.05,ts15);
ts17:=if(t17=1,ts16+0.05,ts16);
ts18:=if(t18=1,ts17+0.05,ts17);
ts19:=if(t19=1,ts18+0.05,ts18);
ts20:=if(t20=1,ts19+0.05,ts19);
ts21:=if(t21=1,ts20+0.05,ts20);
ts22:=if(t22=1,ts21+0.05,ts21);
ts23:=if(t23=1,ts22+0.05,ts22);
ts24:=if(t24=1,ts23+0.05,ts23);
ts25:=if(t25=1,ts24+0.05,ts24);
ts26:=if(t26=1,ts25+0.05,ts25);
ts27:=if(t27=1,ts26+0.05,ts26);
ts28:=if(t28=1,ts27+0.05,ts27);
ts29:=if(t29=1,ts28+0.05,ts28);
ts30:=if(t30=1,ts29+0.05,ts29);
ts31:=if(t31=1,ts30+0.05,ts30);
ts32:=if(t32=1,ts31+0.05,ts31);
ts33:=if(t33=1,ts32+0.05,ts32);
ts34:=if(t34=1,ts33+0.05,ts33);
ts35:=if(t35=1,ts34+0.05,ts34);
ts36:=if(t36=1,ts35+0.05,ts35);
ts37:=if(t37=1,ts36+0.05,ts36);
ts38:=if(t38=1,ts37+0.05,ts37);
ts39:=if(t39=1,ts38+0.05,ts38);
ts40:=if(t40=1,ts39+0.05,ts39);
ts41:=if(t41=1,ts40+0.05,ts40);
ts42:=if(t42=1,ts41+0.05,ts41);
ts43:=if(t43=1,ts42+0.05,ts42);
drawtext_fix(t1=1 ,0.01,ts1,0,'早晨之星,见底回升'),colorlired;
drawtext_fix(t2=1 ,0.01,ts2,0,'黄昏之星,见顶回落'),colorgreen;
drawtext_fix(t3=1 ,0.01,ts3,0,'长十字,重要的警告信号,原趋势停顿或反转'),coloryellow;
drawtext_fix(t4=1 ,0.01,ts4,0,'垂死十字,下跌信号'),colorgreen ;
drawtext_fix(t5=1 ,0.01,ts5,0,'早晨十字星,上涨信号,见底回升'),colorred;
drawtext_fix(t6=1 ,0.01,ts6,0,'黄昏十字星,趋势停顿或反转,下跌,或见顶回落'),colorgreen ;
drawtext_fix(t7=1 ,0.01,ts7,0,'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低'),colorgreen;
drawtext_fix(t8=1 ,0.01,ts8,0,'倒转锤头构成一个看涨信号,可能见底回升'),colorred;
drawtext_fix(t9=1 ,0.01,ts9,0,'锤头,可能见底回升,如有量配合,信号强烈'),colorred;
drawtext_fix(t10=1 ,0.01,ts10,0,'吊颈,上升行情中见顶回落,顶部出现为见顶信号'),colorgreen;
drawtext_fix(t11=1 ,0.01,ts11,0,'穿头破脚,顶部出现,见顶回落信号'),colorgreen;
drawtext_fix(t12=1 ,0.01,ts12,0,'乌云盖顶,见顶回落信号'),colorgreen ;
drawtext_fix(t13=1 ,0.01,ts13,0,'曙光初现,将演化为v型反转或横盘。后市见底回升'),colorred;
drawtext_fix(t14=1 ,0.01,ts14,0,'身怀六甲,底部时见底回升,顶部时见顶回落信号'),coloryellow;
drawtext_fix(t15=1 ,0.01,ts15,0,'十字胎,或反转'),color00ffff;
drawtext_fix(t16=1 ,0.01,ts16,0,'平顶,行情见顶,股价将反转。但下跌力度较小'),coloryellow;
drawtext_fix(t17=1 ,0.01,ts17,0,'平底,行情探低见底,股价行将反转上升,但力度较小'),colorlired;
drawtext_fix(t18=1 ,0.01,ts18,0,'大阳烛,上升中,剧烈地向上攀升。下行中,剧烈地向上反弹'),coloryellow ;
drawtext_fix(t19=1 ,0.01,ts19,0,'三个白武士,每日收盘价上移,表示可能见底回升'),colorred;
drawtext_fix(t20=1 ,0.01,ts20,0,'双飞乌鸦,行情开始疲软将见顶回落'),colorgreen ;
drawtext_fix(t21=1 ,0.01,ts21,0,'孕育线,注意股价位置'),coloryellow ;
drawtext_fix(t22=1 ,0.01,ts22,0,'多方炮,底部可能上涨,中间上涨中继,顶部见顶信号'),colorlired;
drawtext_fix(t23=1 ,0.01,ts23,0,'出水芙蓉,阳线穿过20、40、60日均线,上攻势头初现'),colorred ;
drawtext_fix(t24=1 ,0.01,ts24,0,'上升三部曲,上涨信号'),colorred ;
drawtext_fix(t25=1 ,0.01,ts25,0,'下跌三部曲,下跌信号'),colorgreen;
drawtext_fix(t26=1 ,0.01,ts26,0,'跳空缺口,突破盘整,向上涨、向下跌开始'),coloryellow ;
drawtext_fix(t27=1 ,0.01,ts27,0,'三只乌鸦站枝头,可能见顶回落'),coloryellow ;
drawtext_fix(t31=1 ,0.01,ts31,0,'长下影,有可能止跌回升,升势末期,须小心'),coloryellow;
drawtext_fix(t32=1 ,0.01,ts32,0,'长上影,表明行情上档压力沉重,升势受阻'),coloryellow ;
drawtext_fix(t35=1 ,0.01,ts35,0,'好友反攻,跌势已尽,要展开一段反弹行情'),colorlired;
drawtext_fix(t36=1 ,0.01,ts36,0,'倾盆大雨,见顶信号'),colorgreen;
drawtext_fix(t37=1 ,0.01,ts37,0,'今日成交量大于昨日,且有继续增大趋势'),coloryellow ;
drawtext_fix(t38=1 ,0.01,ts38,0,'今日成交量小于昨日,但有放大迹象'),colorffff00 ;
drawtext_fix(t39=1 ,0.01,ts39,0,'今日成交量大于昨日, 但有缩小迹象'),colorlired ;
drawtext_fix(t40=1 ,0.01,ts40,0,'今日成交量小于昨日,且有缩小迹象'),color99ffff ;
drawtext_fix(t41=1 ,0.01,ts41,0,'极端行情,在未来的几日内有85%的机会变更方向'),colorwhite ;
drawtext_fix(t42=1 ,0.01,ts42,0,'上涨趋势'),colorred ;
drawtext_fix(t43=1 ,0.01,ts43,0,'下跌趋势'),colorgreen;
{3.k线买卖提示}
升:=ema(c,2),color000000;
降:=ema(slope(c,12)*20+c,30),color000000;{降:=ema(slope(c,21)*20+c,42),color000000;}
买:=cross(升,降);
卖:=cross(降,升);
drawtext(买,l*0.95,'↖b'),colorlired;
drawtext(卖,h*1.05,'↙s'),colorligreen;
{4.有未来买卖提示}
buy1:=zig(3,10);
sell1:=ma(buy1,2);
drawicon(cross(buy1,sell1),l-0.3,7);
drawicon(cross(sell1,buy1),h+0.2,8);
stickline(buy1>sell1 and o>=c,c,o,-1,0),colorred;
stickline(buy1>sell1 and o>=c,l,h,0,0),colorred;
stickline(buy1<sell1 and o<=c,o,c,-1,1),colorcyan;
stickline(buy1<sell1 and o<=c,o,l,0,1),colorcyan;
stickline(buy1<sell1 and o<=c,c,h,0,1),colorcyan;
平均:=(l+h)/2;
kb:=zig(平均,10);
ks:=ma(kb,2);
drawicon(cross(kb,ks),l-0.7,1);
drawicon(cross(ks,kb),h+0.6,2);
{5.财务板块}
drawtext_fix(1,0.65,0.018,0,'市盈率:'),coloryellow;
drawnumber_fix(1,0.7,0.018,0,const(dynainfo(39))),coloryellow;
drawtext_fix(1,0.76,0.02,0,'市净率:'),color0080ff;
drawnumber_fix(1,0.81,0.02,0,const(c/finance(34))),color0080ff;
drawtext_fix(1,0.86,0.018,0,'每股收益(元):'),colorff00ff;
drawnumber_fix(1,0.95,0.018,0,const(finance(33))),colorff00ff;
z1:=strcat(hyblock,' ');
z2:=strcat(z1,dyblock);
z3:=strcat(z2,' ');
drawtext_fix(islastbar,0.98,1,1,strcat(z3,gnblock)),coloryellow;
上一指标公式:短线加速会员专用 通达信专用指标
下一指标公式:波段底部组合选股 通达信公式波段
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文五合一主图 通达信五合一仅供学习研究。