diff := ema(ema(close,12) - ema(close,26),5);
dea := ema(diff,9);
a1:diff;
a2:dea;
macdok:=cross(diff,dea) ;
macd卖点:=cross(dea,diff) ;
中间值:=(hhv(h,60)+llv(l,60) )/2;
zhangfu:=(h-ref(c,1))/ref(c,1)*100;
ma3:=ma(c,3);
ma5:=ma(c,5);
ma10:=ma(c,10);
ma20:=ma(c,20);
ma25:=ma(c,25);
ma60:=ma(c,60);
ma90:=ma(c,90);
ma120:=ma(c,120);
a3:= (ma25-ma60)/ma60*100;
a4:= (ma25-ma90)/ma90*100;
a5:= (ma25-ma120)/ma120*100;
a6:=if(c>=o,c,o);
a7:=(h-a6)/a6*100;
a8:=(h-ref(c,10))/ref(c,10)*100;
a9:=(h-ref(c,11))/ref(c,11)*100;
a10:=(h-ref(c,12))/ref(c,12)*100;
a11:=(h-ref(c,13))/ref(c,13)*100;
a12:=(h-ref(c,14))/ref(c,14)*100;
a13:=(h-ref(c,15))/ref(c,15)*100;
a14:=(h-ref(c,16))/ref(c,16)*100;
a15:=(h-ref(c,17))/ref(c,17)*100;
a16:=(h-ref(c,18))/ref(c,18)*100;
a17:=(h-ref(c,19))/ref(c,19)*100;
a18:=(h-ref(c,20))/ref(c,20)*100;
a19:=(h-ref(c,21))/ref(c,21)*100;
a20:=100;
a21:=a8<a20 and
a9<a20 and
a10<a20 and
a11<a20 and
a12<a20 and
a13<a20 and
a14<a20 and
a15<a20 and
a16<a20 and
a17<a20 and
a18<a20 and
a19<a20;
b1:=30;
b2:=(l-ref(h,6))/ref(h,6)*100;
b3:=(l-ref(h,7))/ref(h,7)*100;
b4:=(l-ref(h,8))/ref(h,8)*100;
b5:=(l-ref(h,9))/ref(h,9)*100;
b6:=(l-ref(h,10))/ref(h,10)*100;
b7:=(l-ref(h,11))/ref(h,11)*100;
b8:=(l-ref(h,12))/ref(h,12)*100;
b9:=(l-ref(h,13))/ref(h,13)*100;
b10:=(l-ref(h,14))/ref(h,14)*100;
b11:=(l-ref(h,15))/ref(h,15)*100;
b12:=(l-ref(h,16))/ref(h,16)*100;
b13:=(l-ref(h,17))/ref(h,17)*100;
b14:=(l-ref(h,18))/ref(h,18)*100;
b15:=(l-ref(h,19))/ref(h,19)*100;
b16:=(l-ref(h,20))/ref(h,20)*100;
b17:=(l-ref(h,21))/ref(h,21)*100;
b18:=
b2<b1 and
b3<b1 and
b4<b1 and
b5<b1 and
b6<b1 and
b7<b1 and
b8<b1 and
b9<b1 and
b10<b1 and
b11<b1 and
b12<b1 and
b13<b1 and
b14<b1 and
b15<b1 and
b16<b1 and
b17<b1
;
mid5 := ma(close,5);
ub5:=mid5+2*std(close,5),colorred;
mid10 := ma(close,10);
ub10:=mid10+2*std(close,10),colorred;
c1:=(h-ref(c,1))/ref(c,1)*100;
c4:=count(c1>4.5,80 )>=5 and count(c1>3,60 )>=10;
d1:=macdok and count(ma60>ref(ma60,1),60)>=20 and a3<10 and c4 and count(a21,60)>=60 and count(b18,20)>=20 and zhangfu>3.5 and l<ma25 and h >ma25;
d2:= count(ma90>ref(ma90,1),90)>=30 and a4<10 and c4 and count(a21,90)>=90 and count(b18,20)>=20 and zhangfu>3.5 and l<ma25 and h >ma25;
d3:= count(ma120>ref(ma120,1),120)>=30 and a5<10 and c4 and count(a21,120)>=120 and count(b18,20)>=20 and zhangfu>3.5 and l<ma25 and h >ma25;
横盘突破 := d1 or d2 or d3 and c>o;
买入:=横盘突破 ;
ff:= (h - ref(c,barslast(买入)) ) / ref(c,barslast(买入) ) *100;
e3:= ff >15 and barslast(买入)<30 and cross(dea,diff);
e2:= ff >15 and barslast(买入)<30 and ub5 <ref(ub5,1) and ref(ub5,1) >=ref(ub5,2) and ref(ub5,2) >=ref(ub5,3) and ub10 >=ref(ub10,1) and ref(ub10,1) >=ref(ub10,2);
减仓:=e3 or e2;
卖出:= ff<-20 and barslast(买入)<30 and cross(dea,diff);
止损:= ff<-10 and barslast(买入) <20 and count(买入,21)>=1;
离场:= ff>-10 and ff <15 and barslast(买入)==20 and count(买入,20)==1;
drawtext(买入 and count(买入,30)==1,diff+0.3,'建仓'),colorred;
drawicon( 买入 and count(买入,30)==1 ,diff,1);
drawtext( 减仓 ,diff-0.3,'减仓'),colorgreen;
drawicon( 减仓 ,diff,2);
drawtext( 卖出 ,diff+0.3,'卖出'),colorgreen;
gg:=count(买入,30)>0 and cross(dea,diff);
上一指标公式:主导动能指标公式详解 同花顺动能
下一指标公式:顶底指标公式详解 同花顺指标
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文横盘突了破指标公式详解 同花顺横盘仅供学习研究。