解盘-十字光标自动解盘系列之八
ydd:='==fangcai==';
drawtext(dispstatus=2=barscount(close),close,ydd),align2,color00ff00;
drawflagtext(close,c,'【金城指标解盘系统提示】'),color0000ff;
ma5:=ma(close,5);
ma10:=ma(close,10);
ma20:=ma(close,20);
ma60:=ma(close,60);
drawflagtext(ma5>ref(ma5,1)*1.01,c,'5日均线:强劲向上');
drawflagtext(ma5>ref(ma5,1),c,'5日均线:向上');
drawflagtext(ma5=ref(ma5,1),c,'5日均线:持平');
drawflagtext(ma5<ref(ma5,1)*0.985,c,'5日均线:快速向下');
drawflagtext(ma5<ref(ma5,1),c,'5日均线:向下');
drawflagtext(ma10>ref(ma10,1),c,'10日均线:向上');
drawflagtext(ma10<ref(ma10,1),c,'10日均线:向下');
drawflagtext(ma10=ref(ma10,1),c,'10日均线:持平');
drawflagtext(ma20>ref(ma20,1),c,'20日均线:向上');
drawflagtext(ma20<ref(ma20,1),c,'20日均线:向下');
drawflagtext(ma20=ref(ma20,1),c,'20日均线:持平');
drawflagtext(ma60>ref(ma60,1),c,'60日均线:向上');
drawflagtext(ma60<ref(ma60,1),c,'60日均线:向下');
drawflagtext(ma60=ref(ma60,1),c,'60日均线:持平');
ld:=ma(v/(h-l),4);
dmp:=abs(c-o);
dmm:=v/(h-l);
drawflagtext(dmm<ld and dmp<ma(dmp,4),c,'资金无入场意愿,萎缩中');
drawflagtext(dmm<ld and dmp>ma(dmp,4),c,'场内资金有运作行为');
drawflagtext(dmm>ld and dmp<ma(dmp,4),c,'多空双方激烈争夺中');
drawflagtext(dmm>ld and dmp>ma(dmp,4),c,'场外资金介入(或出局)意愿强烈');
pdi:=sum(max(max(h-l,abs(h-ref(c,1))),abs(l-ref(c,1))),14);
mdi:=h-ref(h,1);
adx:=ref(l,1)-l;
adxr:=sum(if(mdi>0 and mdi>adx,mdi,0),14);
typ:=sum(if(adx>0 and adx>mdi,adx,0),14);
cci:=adxr*100/pdi;
wr:=typ*100/pdi;
mtm:=ma(abs(wr-cci)/(wr+cci)*100,6);
mtmma:=(mtm+ref(mtm,6))/2;
drawflagtext(cross(cci,wr),c,'pdi线从下向上突破mdi线,显示有新多头进场,为买进信号');
drawflagtext(cross(wr,cci),c,'pdi线从上向下跌破mdi线,显示有新空头进场,为卖出信号');
drawflagtext(mtm>ref(mtm,1),c,'adx值持续高于前一日,行情将维持原趋势'),colorffff00;
drawflagtext(mtm<ref(mtm,1) and mtm<20,c,'adx值递减,降到20以下,且横向行进时,市场气氛为盘整');
drawflagtext(mtm<ref(mtm,1) and ref(mtm,1)<ref(mtm,2) and ref(mtm,2)>ref(mtm,3) and ref(mtm,3)>ref(mtm,4),c,'adx值从上升倾向转为下降时,表明行情即将反转');
psy:=c-ref(c,6);
布林1:=ma(psy,6);
drawflagtext(cross(psy,布林1) and 布林1<-0.8,c,'mtm从下向上突破mtmma,买入信号');
drawflagtext(cross(布林1,psy) and 布林1>0.8,c,'mtm从上向下跌破mtmma,卖出信号');
布林2:=ref(c,1);
布林3:=sma(max(c-布林2,0),6,1)/sma(abs(c-布林2),6,1)*100;
布林4:=sma(max(c-布林2,0),12,1)/sma(abs(c-布林2),12,1)*100;
drawflagtext(布林3>85,c,'6日rsi超买,防止回挡');
drawflagtext(布林3>80,c,'6日rsi向上突破85,超买,考虑卖出');
drawflagtext(布林3<15,c,'6日rsi超卖,随时有可能反弹');
drawflagtext(布林3<15,c,'6日rsi向下跌破15,超卖,考虑买入');
drawflagtext(cross(布林3,15),c,'6日rsi向上突破15,买进信号');
drawflagtext(cross(布林3,85),c,'6日rsi向下跌破85,卖出信号');
布林5:=count(c>ref(c,1),12)/12*100;
布林6:=(ma(c,3)+ma(c,6)+ma(c,12)+ma(c,24))/4;
布林7:=布林6+3*std(布林6,10);
xx:=布林6-3*std(布林6,10);
a001:=(布林7-xx)/布林7<0.03;
a002:=(布林7-xx)/布林7>0.18;
a003:=(ma(c,60)-ma(c,5))/ma(c,60)>0.15;
a004:=(ma(c,5)-ma(c,60))/ma(c,5)>0.15;
drawflagtext(a001,c,'多空布林收敛中,有变盘的可能,上下自己分析');
drawflagtext(a003 and a002 and c>o,c,'布林上下乖离太大,有反弹的可能');
drawflagtext(a004 and a002 and c<o,c,'布林上下乖离太大,有回落的可能');
drawflagtext(h>=hhv(h,20),c,'创20天新高');
{rsi 6 12 24}
lc := ref(close,1);
rsi1:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
rsi2:=sma(max(close-lc,0),12,1)/sma(abs(close-lc),12,1)*100;
rsi3:=sma(max(close-lc,0),24,1)/sma(abs(close-lc),24,1)*100;
rsii:=sma(max(close-lc,0),3,1)/sma(abs(close-lc),3,1)*100;
r:=filter(close>llv(low,30)*1.01 and close<llv(low,30)*1.1
and count(cross(rsi1,rsi2),30)>=2,10)
and count(ref(close,barslast(ref(cross(rsi1,rsi2),1))+1)>close
and ref(rsi1,barslast(ref(cross(rsi1,rsi2),1))+1)<rsi1
and cross(rsi1,rsi2),5)>=1 ;
a3:=barslast(ref(cross(rsi1,rsi2),1));
b3:=ref(close,a3+1)>close and ref(rsi1,a3+1)<rsi1 and cross(rsi1,rsi2);
c3:=barslast(ref(cross(rsi2,rsi1),1));
f4:=ref(close,c3+1)<close and ref(rsi1,c3+1)>rsi1 and cross(rsi2,rsi1);
drawflagtext(r,c,'rsi二次金叉');
drawflagtext(b3,c,'rsi底背离');
drawflagtext(f4 ,c,'rsi顶背离');
drawflagtext(rsi1<15 and(barslast(rsi1<15)>=1) ,c,
'短线指标(rsi 相对强弱指标)超卖--属买入信号');
drawflagtext(rsi1>85 and(barslast(rsi1>85)>=1),c,
'短线指标(rsi 相对强弱指标)超买--属卖出信号');
drawflagtext((((llv(low,20)=low)and(not(llv(rsi1,20)=rsi1)))or(count(close<ref(close,1),30)>18
and(count(rsi1>ref(rsi1,1),30)>18)))and(rsi1<20),c,
'短线指标(rsi 相对强弱指标)底背离--股价在低位时属买入信号');
drawflagtext((((hhv(high,20)=high)and(not(hhv(rsi1,20)=rsi1)))or(count(close>ref(close,1),30)>18
and(count(rsi1<ref(rsi1,1),30)>18)))and(rsi1>80) ,c,
'短线指标(rsi 相对强弱指标)顶背离--股价在高位时属卖出信号');
drawflagtext(cross(rsi1,rsi2)and(rsi1<50),c,
'短线指标(rsi 相对强弱指标)金叉--属买入信号');
drawflagtext(cross(rsi2,rsi1)and(rsi1>50),c,
'短线指标(rsi 相对强弱指标)死叉--属卖出信号');
drawflagtext(rsi1<5,c,
'短线指标(rsi 相对强弱指标)极低位--强烈买入信号');
drawflagtext(rsi1>93 ,c,
'短线指标(rsi 相对强弱指标)极高位--强烈卖出信号');
{psy 心理线 12}
psy:=count(close>ref(close,1),12)/12*100;
{mtm 动力指标 6}
mtm := close-ref(close,6);
mtmma := ma(mtm,6);
{sar 抛物转向(stop and reverse) 10 2 20}
sa:=sar(10,2,20);
{dmi 趋向指标(标准) 14 6}
tr := sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14);
hd := high-ref(high,1);
ld := ref(low,1)-low;
dmp:= sum(if(hd>0 and hd>ld,hd,0),14);
dmm:= sum(if(ld>0 and ld>hd,ld,0),14);
pdi:= dmp*100/tr;
mdi:= dmm*100/tr;
adx:= ma(abs(mdi-pdi)/(mdi+pdi)*100,6);
adxr:=(adx+ref(adx,6))/2;
drawflagtext(cross(mtm,mtmma) ,c,'(mtm动力指标)从下向上突破mtmma,买入信号');
drawflagtext(cross(mtmma,mtm),c,
'(mtm动力指标)从上向下跌破mtmma,卖出信号');
drawflagtext((hhv(high,20)=high)and(not(hhv(mtm,20)=mtm))and(count(close>ref(close,1),30)>18
and(count(close>ref(close,1),3)=3)) ,c,
'(mtm 动力指标)顶背离--属卖出信号');
drawflagtext((llv(low,20)=low)and(not(llv(mtm,20)=mtm))and(count(close<ref(close,1),30)>18
and(count(close<ref(close,1),3)=3)),c,
'(mtm 动力指标)底背离--属买入信号。');
drawflagtext(psy<10 ,c,
'(psy 心理线指标)低位超卖区--属买入信号');
drawflagtext(between(psy,psy>10,psy<25),c,
'(psy 心理线指标)超卖--属买入信号');
drawflagtext(psy>75,c,
'(psy 心理线指标)超买--属卖出信号');
drawflagtext(cross(pdi,mdi),c,
'(dmi 趋向指标)金叉,显示有新多头进场--属买入信号');
drawflagtext(cross(mdi,pdi) ,c,
'(dmi 趋向指标)死叉,显示有新空头进场--属卖出信号');
drawflagtext(cross(close,sa)and(abs(close-sa)/close>=0.01) ,c,
'(sar 抛物转向指标)向上突破--属买入信号,与dmi指标同时使用更好');
drawflagtext(cross(sa,close)and(abs(close-sa)/close>=0.01) ,c,
'(sar 抛物转向指标)向下突破--属卖出信号,与dmi指标同时使用更好');
{bbiboll 多空布林线 10 3}
bbi:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
upr:=bbi+3*std(bbi,10);
dwn:=bbi-3*std(bbi,10);
{roc 变动速率 12 6}
roc:=(close-ref(close,12))/ref(close,12)*100;
rocma:=ma(roc,6);
{obv 能量潮}
obv:=sum(if(close>ref(close,1),vol,if(close<ref(close,1),-vol,0)),0);
{cci 顺势指标 14}
typ := (high + low + close)/3;
cci:=(typ-ma(typ,14))/(0.015*avedev(typ,14));
drawflagtext((count(close<ref(close,1),30)>18 and (count(close<ref(close,1),3)=3))
and((count(obv>ref(obv,1),30)>18) and (count(obv>ref(obv,1),3)=3))
and(count(vol>ref(vol,1),30)>3 and (vol/capital<=(10/100))) ,c,
'短线指标(obv 能量潮)显示买盘较强--属买入信号');
drawflagtext((count(close>ref(close,1),30)>18 and (count(close>ref(close,1),3)=3))
and ((count(obv>ref(obv,1),30)>18)and(count(obv>ref(obv,1),3)=3))
and(count(vol>ref(vol,1),30)>3 and(vol/capital<=(10/100))) ,c,
'短线指标(obv 能量潮)显示买盘逐渐加强--属买入信号');
drawflagtext((count(close>ref(close,1),30)>18 and(count(close>ref(close,1),3)=3))
and((count(obv<ref(obv,1),30)>18)or(count(obv<ref(obv,1),3)=3)),c,
'短线指标(obv 能量潮)显示买盘无力--属卖出信号');
drawflagtext(cross(obv,0)and(count((ref(obv,1)<0),3)=3) ,c,
'短线指标(obv 能量潮)由负转正--属买入信号');
drawflagtext(cross(0,obv)and(count((ref(obv,1)>0),3)=3) ,c,
'短线指标(obv 能量潮)由正转负--属卖出信号');
drawflagtext((hhv(high,20)=high)and(not(hhv(obv,20)=obv)) ,c,
'短线指标(obv 能量潮)顶背离--属卖出信号。');
drawflagtext((llv(low,20)=low)and(not(llv(obv,20)=obv)) ,c,
'短线指标(obv 能量潮)底背离--属买入信号');
drawflagtext((abs(obv-ref(obv,1))/abs(ma(obv,5))>0.07)and(obv>ref(obv,1)) ,c,
'短线指标(能量潮)异常。若股价在高位属卖出信号,若能量线在低位长时间横向整理后出现属买入信号');
drawflagtext(cci<-100 and ref(cci,1)<cci ,c,
'(cci 顺势指标)属买入信号');
drawflagtext(cci>100 and ref(cci,1)>cci,c,
'(cci 顺势指标)属卖出信号');
drawflagtext(cross(close,upr)and(barslast(((count((upr-dwn)<ref
((upr-dwn),1),10)>=5)and(ref((upr-dwn),5)/
(upr-dwn)>=4))or((count((upr-dwn)<ref
((upr-dwn),1),10)>=5)and(((upr-dwn)/dwn<0.03))))<=3),c,
'(bbiboll 多空布林线-支撑压力指标)向上突破,考虑介入');
drawflagtext(cross(dwn,close)and(barslast(((count((upr-dwn)<ref
((upr-dwn),1),10)>=5)and(ref((upr-dwn),5)/
(upr-dwn)>=4))or((count((upr-dwn)<ref
((upr-dwn),1),10)>=5)and(((upr-dwn)/dwn<0.03))))<=3) ,c,
'(bbiboll 多空布林线-支撑压力指标)向下突破,迅速离场');
drawflagtext(cross(roc,0),c,
'(roc 变动速率指标)向上突破--属买入信号');
drawflagtext(cross(0,roc) ,c,
'(roc 变动速率指标)向下突破--属卖出信号');
drawflagtext((llv(low,20)=low)and(not(count(roc<ref(roc,1),30)>18
and(count(roc<ref(roc,1),3)=3))) ,c,
'(roc 变动速率指标)显示下跌动力减弱--属买入信号');
drawflagtext((hhv(high,20)=high)and(not(count(roc>ref(roc,1),30)>18
and(count(roc>ref(roc,1),3)=3))) ,c,
'(roc 变动速率指标)显示上涨动力减弱--属卖出信号');
drawflagtext((count(close>ref(close,1),30)>18 and(count(close>ref(close,1),3)=3))
and(count(roc>ref(roc,1),30)>18 and(count(roc>ref(roc,1),3)=3)),c,
'(roc 变动速率指标)显示短期反弹有望--属买入信号');
drawflagtext((count(close<ref(close,1),30)>18 and(count(close<ref(close,1),3)=3))
and(count(roc<ref(roc,1),30)>18 and(count(roc<ref(roc,1),3)=3)),c,
'(roc 变动速率指标)显示短期警惕回落--属卖出信号');
{arbr 人气意愿指标 26}
ar := sum(high-open,26)/sum(open-low,26)*100;
br := sum(max(0,high-ref(close,1)),26)/
sum(max(0,ref(close,1)-low),26)*100;
{w&r 威廉指标(william's %r) 14}
wr:=-100*(hhv(high,14)-close)/(hhv(high,14)-llv(low,14));
{sar 抛物转向(stop and reverse) 10 2 20}
sa:=sar(10,2,20);
drawflagtext(ar<50,c,
'(arbr 人气指标)超卖--属买入信号');
drawflagtext(ar>200,c,
'(arbr 人气指标)超买--属卖出信号');
drawflagtext(((hhv(ar,10)-ar)/hhv(ar,10))>=0.5 ,c,
'(arbr 人气指标)异常--若股价从高价下跌,属买入信号');
drawflagtext(((ar-llv(ar,10))/llv(ar,10))>=0.5 ,c,
'(arbr 人气指标)异常--若股价从低价上升,属卖出信号');
drawflagtext(br<50 ,c,
'(arbr 意愿指标)显示股价随时反弹--考虑买入');
drawflagtext(br>300,c,
'(arbr 意愿指标)显示股价随时下挫--考虑卖出');
drawflagtext(cross(ar,br)and(ar<50 or br<50) ,c,
'(arbr 人气意愿指标)金叉--属买入信号');
drawflagtext(cross(br,ar)and(ar>180 or br>300) ,c,
'(arbr 人气意愿指标)死叉--属卖出信号');
drawflagtext(wr<-80 ,c,
'(w&r 威廉指标)超卖--即将见底,应伺机买进');
drawflagtext(wr>-20,c,
'(w&r 威廉指标)超买--即将见顶,应及时卖出');
{盖印}
drawrectabs(0,0,30,35,rgb(250,60,80)),color000099;
drawrectabs(0,30,30,45,rgb(250,250,80)),color009999;
drawtextabs(2,5,'金城'),colorffffff,linethick1;
drawtextabs(2,18,'特别'),colorffffff,linethick1;
drawtextabs(2,30,'优化'),color0000ff,linethick1;
上一指标公式:股市明灯-简单操盘750‰胜公式下载 大智慧明灯
下一指标公式:掌股专家和滚雪球可用-凌波微步公式下载 大智慧指标可用
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文解盘-十字光标自动解盘系列之八公式下载 大智慧指标仅供学习研究。