{公式名称:zdf}
input:逃减n(6,2,30),龙盘开关(1,1,2),短买涨幅(2,1,11),低吸(2000,500,10000);
yy:=year;
mm:=month;
ddd:=day;
到期年:=2009;
到期月:=6;
到期日:=1;
已到期1:=if(yy>到期年,1,0);
已到期2:=if(yy=到期年 and mm=到期月 and ddd>到期日,1,0);
已到期3:=if(yy=到期年 and mm>到期月,1,0);
已过期:=if(已到期1 or 已到期2 or 已到期3,1,0);
drawtext(已过期,close,'指标已过期,请购买正式版本 qq:332146122');
已注册:=if("foxzdf@myreg"(5)=100,1,0);
注册验证:=已注册 and not(已过期);
drawicon(cross(zig(3,10),ref(zig(3,10),1)),low*0.998,8);
drawicon(cross(ref(zig(3,10),1),zig(3,10)),high*1.01,9);
ro:=ref(open,1);
rc:=ref(close,1);
stickline(open>=max(rc,ro)*(1-0.003) and close<min(ro,rc) and close<open and rc>ro and hhv(close,5)=rc,open,close,7,0),colorff00;
stickline(ro>=max(ref(close,2),ref(open,2))*(1-0.003) and close<min(ref(close,2),ref(open,2)) and ref(close,2)>=ref(open,2) and ro>rc and close<open and hhv(ref(close,2),5)=rc,open,close,7,0),colorff00;
stickline(open<=min(rc,ro)*(1+0.003) and close>=max(ro,rc) and close>open and (llv(close,5)=close or llv(close,5)=rc),open,close,7,0),colorff;
mdif:=ema(close,12)-ema(close,26);
mdea:=ema(mdif,9);
mmacd:=(mdif-mdea)*2;
柱子变长:=if(mmacd>ref(mmacd,1)+0.01,1,0);
柱子变长2:=if(mmacd>ref(mmacd,1),1,0);
macd背离:=if(mdea>ref(mdea,1) and ref(mdea,1)>ref(mdea,2) and ref(mdea,2)>ref(mdea,3) and ref(mdea,3)>ref(mdea,4),1,0);
最小柱子:=if(llv(mmacd,5)=mmacd,2,0);
追涨:=if(柱子变长2 and (macd背离 or ref(macd背离,1)) and ref(最小柱子,1),1,0);
drawtext(not(已过期) and 已注册 and 追涨,low*0.96,'追'),colorff;
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;
rsv:=(close-llv(low,20))/(hhv(high,20)-llv(low,20))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
极品短线:=注册验证 and close>open and (d-k<3 and k>ref(k,1) or k>d) and rsi1>ref(rsi1,1) and ref(rsi1,2)>ref(rsi1,1) and ref(rsi1,3)<ref(rsi1,2) and ref(rsi1,4)>ref(rsi1,3) and ref(rsi1,1)>ref(rsi1,3) and ref(rsi1,2)<ref(rsi2,2) and rsi1>ref(rsi1,2);
stickline(极品短线,close,open,7,0),colorff00ff;
stickline(极品短线,high,low,1,0),colorff00ff;
select:=注册验证 and (d-k<3 and k>ref(k,1) or k>d) and lc*(1+短买涨幅/100)<close and close>open and rsi2>rsi1 and rsi3>rsi2 and cross(5,abs(rsi1-rsi2));
stickline(select,ref(close,1)*(1+短买涨幅/100),open,7,0),colorffff;
stickline(select,ref(close,1)*(1+短买涨幅/100),low,1,0),colorffff;
ma3:"foxzdf@mymaclose"(3),colorffffff;
ma8:"foxzdf@mymaclose"(8),colorffff;
ma13:"foxzdf@mymaclose"(13),colorff00ff;
ema15:=ema(close,15);
ma34:"foxzdf@mymaclose"(34),colorff00;
partline(ma3<ref(ma3,1),ma3),colorff0000;
partline(ma8<ref(ma8,1),ma8),color9999;
partline(ma13<ref(ma13,1),ma13),color6600cc;
partline(ma34<ref(ma34,1),ma34),color9900;
ma5:="foxzdf@mymaclose"(5);
ma10:="foxzdf@mymaclose"(10);
ma20:="foxzdf@mymaclose"(20);
ma60:="foxzdf@mymaclose"(60);
ma120:="foxzdf@mymaclose"(120);
wx:=ma(close,0);
龙盘ⅰ:ma(close,250)*(if(龙盘开关<2,wx,1)),crossdot,linethick1,colorffffff;
龙盘ⅱ:ma(close,120)*(if(龙盘开关<2,wx,1)),circledot,linethick1,colorff00ff;
一阳穿四线:=cross(close,ma3) and cross(close,ma8) and cross(close,ma13) and cross(close,ma34) or open<ma3 and open<ma8 and open<ma13 and open<ma34 and close>ma3 and close>ma8 and close>ma13 and close>ma34;
一阳穿三线:=cross(close,ma3) and cross(close,ma8) and cross(close,ma13) or open<ma3 and open<ma8 and open<ma13 and close>ma3 and close>ma8 and close>ma13;
一阳穿二线:=cross(close,ma3) and cross(close,ma8) or open<ma3 and open<ma8 and close>ma3 and close>ma8;
三十四线多头:=not(ma34>ma3 and ma34>ma8 and ma34>ma13) and ma34>ref(ma34,1);
drawtext(一阳穿三线 and 三十四线多头 and 柱子变长,low*0.996,'超短5%'),colorffff;
drawtext(cross(close,ma5) and cross(close,ma10) and cross(close,ma20) and cross(close,ma60) and cross(close,ma120),low*0.96,'大黑马'),colorff00ff;
drawtext(一阳穿四线,low*0.965,'小黑马'),color8811ff;
ty:=close;
a1:=ref(ty,10)=hhv(ty,2*10+1);
b1:=filter(a1,10);
c1:=backset(b1,10+1);
hd:=filter(c1,10);
a2:=ref(ty,10)=llv(ty,2*10+1);
b2:=filter(a2,10);
c2:=backset(b2,10+1);
ld:=filter(c2,10);
a:=ref(high,barslast(hd));
b:=ref(low,barslast(ld));
t1:=barslast(hd);
t2:=barslast(hd)>barslast(ld) and not(ld);
波谷:if(t2,b,b),pointdot,color80ff00;
stickline(t2,b,b,5,0),color80ff00;
波峰:if(t1,a,a),pointdot,colorff00ff;
stickline(t1,a,a,9,0),colorff00ff;
aa:=llv(low,34);
bb:=hhv(high,30);
dd:=ema((close-aa)/(bb-aa)*4,4)*25;
绝谷:=(dd-llv(dd,21))/(hhv(dd,21)-llv(dd,21))*4*25;
drawicon(cross(绝谷,90) and dd<40 and 注册验证,low*0.95,1);
mb:="foxzdf@myb"(6);
rb:=ref(mb,1);
顶背离:=if(close>ref(close,1) and mb<rb,-(mb-rb)*0.3*1000,0);
新顶背离:=if((close+open)/2>(ref(open,1)+ref(close,1))/2 and mb<rb and rb>0,-(mb-rb)*0.3*1000,0);
drawtext((顶背离>700 or 新顶背离>1500) and 已注册,high*1.03,'逃'),colorff00;
drawtext((新顶背离>300 and 新顶背离<1501 or 顶背离>300 and 顶背离<701) and 已注册,high*1.01,'减'),colorff9933;
底背离:=if(close*1.001<ref(close,1) and mb>rb,(rb-mb)*1000,0);
drawtext(底背离<-低吸 and 已注册,low*0.98,'吸'),color6600cc;
drawtext(cross(mdif,-0.02) and 已注册 and any(cross(绝谷,90) and dd<40,30) and 新顶背离=0 and 顶背离=0,low*0.97,'拉'),colorff00ff;
p:=14;
m:=6;
ttr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),p);
hd:=high-ref(high,1);
ld:=ref(low,1)-low;
dmp:=sum(if(hd>0 and hd>ld,hd,0),p);
dmm:=sum(if(ld>0 and ld>hd,ld,0),p);
pdi:=dmp*100/ttr;
mdi:=dmm*100/ttr;
adx:=ma((abs(mdi-pdi))/(mdi+pdi)*100,m);
adxr:=(adx+ref(adx,m))/2;
rpdi:=ref(pdi,1);
d底背离:=if(close<ref(close,1) and pdi>rpdi,-(pdi-rpdi)*100,0);
select加:=abs(d底背离)>150 and ma8>ref(ma8,1) and 顶背离<100 and 新顶背离<100;
drawtext(select加 and 已注册,low*0.97,'补'),colorff00ff;
zf:=(close/ref(close,1)-1)*100;
量买:=if(vol>ref(vol,1)*1.5 and zf>0.01 and zf<1.5 or vol>ref(vol,1)*2 and zf>0.01 and zf<2.5 or vol>ref(vol,1)*3 and zf>0.01 and zf<4.5,1,0);
drawtext(量买 and open/close<1.01 and 顶背离<400 and 新顶背离<200 and 已注册,low*0.995,'买'),colorffff;
半台阶压力:=波谷*1.0809;
drawtext(barpos=sysparam(2),high,'半台阶压力★'+numtostr(半台阶压力[sysparam(1)],2)),align5,colorffff00;
第一台阶压力:=波谷*1.1618;
drawtext(barpos=sysparam(2),high,' 第一台阶压力★'+numtostr(第一台阶压力[sysparam(1)],2)),align5,colorff00;
一个半台阶压力:=波谷*1.0809*1.1618;
drawtext(barpos=sysparam(2),high,' 一个半台阶压力★'+numtostr(一个半台阶压力[sysparam(1)],2)),align5,colorffff00;
半台阶支撑:=波峰/1.0809;
drawtext(barpos=sysparam(2),high,'半台阶支撑★'+numtostr(半台阶支撑[sysparam(1)],2)),align4,colorffffff;
第一台阶支撑:=波峰/1.1618;
drawtext(barpos=sysparam(2),high,' 第一台阶支撑★'+numtostr(第一台阶支撑[sysparam(1)],2)),align4,colorffff;
一个半台阶支撑:=波峰/1.0809/1.1618;
drawtext(barpos=sysparam(2),high,' 一个半台阶支撑★'+numtostr(一个半台阶支撑[sysparam(1)],2)),align4,colorffffff;
【不能显示,因为缺少foxzdf动态链接库,猜不出 mb:="foxzdf@myb"(6); 的含义】
上一指标公式:持仓比例公式 飞狐持仓指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文ZDF公式 飞狐ZDF指标 源码仅供学习研究。