主力真吸货源码下载:
跟踪主力抄底,底部启动时,积极买入。进行了测试阶段底部信号,但可能不是长期最低点。无未来函数,放心使用!
pastdays:=10;
minv:=0.5;
short:=9;
long:=17;
highrisk:= 95;
keepdays:=3;
r01:=0.75;
r02:=1.35;
zeros:0,nodraw;
ones:1,nodraw;
botpos := -35;
maxv:=150;
//var1:=ref(low,1);
//var2:=sma(abs(low-var1),3,1)/sma(max(low-var1,0),3,1)*100;
//var3:=ema(if(close*1.2,var2*10,var2/10),3);
//var4:=llv(low,38);
//var5:=hhv(var3,38);
//var6:=if(llv(low,90),1,0);
//var7:=ema(if(low<=var4,(var3+var5*2)/2,0),3)/618*var6;
var08:=((c-llv(l,21))/(hhv(h,21)-llv(l,21)))*100;
var9:=sma(var08,13,8);
底线:0,color00ffff;
//主力吸货:if(var7<maxv,var7,maxv),color0000ff;
//
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);
var1:=if(year>=2038 and month>=1,0,1);
var2:=ref(low,1)*var1;
var3:=sma(abs(low-var2),3,1)/sma(max(low-var2,0),3,1)*100*var1;
var4:=ema(if(close*1.3,var3*10,var3/10),3)*var1;
var5:=llv(low,30)*var1;
var6:=hhv(var4,30)*var1;
var7:=if(ma(close,58),1,0)*var1;
var8:=ema(if(low<=var5,(var4+var6*2)/2,0),3)/618*var7*var1;
主力吸货:if(var8>100,100,var8)*var1,nodraw;
//stickline(主力吸货>-150,0,主力吸货,6,0),colorred;
stickline(var7,0,if(var7<maxv,var7,maxv),8,0),colorff88ff;
stickline(var7,0,if(var7<maxv,var7,maxv),7,0),colorff66ff;
stickline(var7,0,if(var7<maxv,var7,maxv),6,0),colorff44ff;
stickline(var7,0,if(var7<maxv,var7,maxv),5,0),colorff22ff;
stickline(var7,0,if(var7<maxv,var7,maxv),4,0),colorffaaff;
stickline(var7,0,if(var7<maxv,var7,maxv),3,0),colorffbbff;
stickline(var7,0,if(var7<maxv,var7,maxv),2,0),colorffccff;
stickline(var7,0,if(var7<maxv,var7,maxv),1,0),colorffddff;
drawtext((var7>0) and (ref(var7,1)=0),botpos,'底'),colorcyan;
多方:if( ceiling(sma(var9,13,8))>maxv,maxv,ceiling(sma(var9,13,8)) ),linethick2,colorred;
空方:ma(3*sma((c-llv(l,27))/(hhv(h,27)-llv(l,27))*100,5,1)-2*
sma(sma((c-llv(l,27))/(hhv(h,27)-llv(l,27))*100,5,1),3,1),5),linethick2,colorgreen;
多方势增:多方>ref(多方,1),nodraw;
空方势增:空方>ref(空方,1),nodraw;
金叉:=cross(多方,空方),nodraw;
死叉:=cross(空方,多方),nodraw;
主力最佳买点:=金叉;
//// kdj
n:=9;m1:=3;m2:=3;
rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;
k:=sma(rsv,m1,1),coloryellow,linethick1;
d:=sma(k,m2,1),colorcyan,linethick1;
j:=3*k-2*d,colormagenta,linethick1;
kdj势增:=j>ref(j,1),nodraw;
u1:=barslast(ref(cross(k,d),1));
u2:=ref(c,u1+1)>c and ref(k,u1+1)<k and cross(k,d)and d<50;
底背离:=if(u2>0,1,0);
rr:=max(c,o);
q1:=hhv(rr,5);
q2:=d<ref(d,1) and ref(d,1)>ref(d,2);
a2:=barslast(ref(q2,1));
k顶背离:=(ref(q1,a2+1)<q1 and k<ref(k,a2+1) and q2 ),nodraw;
drawtext(k顶背离,max(空方,多方)*1.02,' 顶背'),colorgreen;
kdj金叉:=cross(j,k),nodraw;
kdj死叉:=cross(k,j),nodraw;
kdj买点=kdj金叉,nodraw;// and c>=通;
kdj卖点=kdj死叉;
kdj势增:=j>ref(j,1),nodraw;
kdj买点期:= count(kdj买点,pastdays)>0,nodraw;
/////macd/////////
diff:=ema(c,short)-ema(c,long),nodraw;//colorwhite;
dea:=ema(diff,8),nodraw;//colorffaa00;
macd:=2*(diff-dea), colorstick;
diff过0轴:=cross(diff,0),nodraw;
a1:=barslast(ref(cross(diff,dea),1));
m底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
a2:=barslast(ref(cross(dea,diff),1));
m顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
macd金叉:=cross(diff,dea),nodraw;// and diff<0.3;
macd金叉期:=count(macd金叉,pastdays),nodraw;
macd死叉:=cross(dea,diff),nodraw;
macd买点:=macd金叉 or diff过0轴,nodraw;
macd买点期=count(macd买点,pastdays),nodraw;
km共振买点:=( ((macd买点 and kdj买点期) or (macd买点期 and kdj买点) ) and (kdj势增) and (m顶背离<1) and (k顶背离<1)),nodraw;//and (j<highrisk)
km共振买点期:=count(km共振买点,pastdays)>0,nodraw;
买点信号数:macd买点 + kdj买点期 + 金叉 + 主力最佳买点,nodraw;
买点=买点信号数>0,nodraw;
卖点信号数:= macd死叉 + kdj死叉 +死叉,nodraw;
最佳共振买点:买点信号数>1,nodraw;
最佳共振买点期:count(最佳共振买点,pastdays),nodraw;
卖点多信号:=卖点信号数>1,nodraw;
抄底点:=(主力吸货>minv) and (买点>0),nodraw;
抄底期:=count(抄底点,pastdays),nodraw;
主力吸货期:=count(主力吸货>minv,pastdays),nodraw;
通:=ma(c,17);
子:=ma(c,26);
通子金叉:cross(通,子),nodraw;
通金叉:cross(c,通),nodraw;
子金叉:=cross(c,子),nodraw;
通增:通>=ref(通,1),nodraw;
子增:=子>=ref(子,1),nodraw;
//最佳抄底点:(通金叉) and ((1>0) and (主力吸货期>0) ) or ((主力吸货>minv) and (买点>0) and ( (1>0) or (1>0))) or ( (抄底期>0) and ( (1>0) or (1>0)) ) and (j<highrisk) ,nodraw;
最佳抄底点:通金叉>0 and 主力吸货期>0 and 买点>0 ,nodraw;
最佳强抄底点:最佳抄底点 and 通增>0 and 子增,nodraw;
最佳抄底期:count(最佳抄底点,pastdays),nodraw;
stickline(抄底点,0,min(空方,多方),4,0),colorwhite;
//drawicon(最佳抄底点,min(空方,多方)*0.85,'buy');
inc: = 1;
while ( inc<=买点信号数)
{
drawicon(最佳抄底点,-3-0.2*inc,'buy');
inc:=inc+1;
}
drawtext((最佳抄底点>0) and (ref(最佳抄底点,1)<1) and (ref(最佳抄底点,2)<1),botpos-3,'抄底'),coloryellow;
drawtext(通子金叉>0,min(空方,多方)*0.85,'金'),colorcyan;
drawtext(通子金叉>0,max(空方,多方)*1.3,'★'),colorcyan;
drawtext(最佳强抄底点,max(空方,多方)*2,'★'),coloryellow;
drawtext(最佳强抄底点,max(空方,多方)*2.5,'强'),colorred;
stickline(最佳抄底点,0,min(空方,多方),8,0),color004444;
stickline(最佳抄底点,0,min(空方,多方),7,0),color006666;
stickline(最佳抄底点,0,min(空方,多方),6,0),color008888;
stickline(最佳抄底点,0,min(空方,多方),5,0),color009999;
stickline(最佳抄底点,0,min(空方,多方),4,0),color00aaaa;
stickline(最佳抄底点,0,min(空方,多方),3,0),color00bbbb;
stickline(最佳抄底点,0,min(空方,多方),2,0),color00cccc;
stickline(最佳抄底点,0,min(空方,多方),1,0),color00dddd;
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文主力真吸货下载仅供学习研究。