指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:很好的老小天资金为王解盘公式 飞狐小天为王指标 源码
很好的老公式【小天资金为王】(解盘)
此公式能较好以流入资金来分析股份的趋势,用法很简单,主要是结合预测资金的变化来看生命线的变化,同时可以参考解盘。
另外说明:此公式含有成本分布函数“cost”,是用来测算筹码集中度的,还运用了向前赋值函数“backset”,是用来画压力与支撑线的,在指标中取辅助作用,与指标设计的主体相思没有关系,大家放心使用。
源码:
{【小天资金为王】(解盘)}
input:n(2,1,100),m(34,1,100),p(5,1,100);
var1:=if(openminutes(currenttime)=1,amount,(amount/openminutes(currenttime))*240);
预测资金:islastbar*var1/100000000,linethick0,colorffff;
c02:=close;
c0:=ref(c02,1);
xtb1:=ref(c02,2);
xtb2:=ref(c02,3);
xtb3:=ref(c02,4);
xtb4:=ref(c02,5);
xtb5:=ref(c02,6);
xtb6:=if(((c02 > c0) and (c0 >= xtb1)),1,if(((c02 < c0) and (c0 <= xtb1)),(0 - 1),if(((c02 > xtb1) and (xtb1 > c0)),2,if(((c02 < xtb1) and (xtb1 < c0)),(0 - 2),0))));
hl:=if(((c0 > xtb1) and (c0 > xtb2)),1,if(((c0 < xtb1) and (c0 < xtb2)),(0 - 1),if(((xtb1 > xtb2) and (xtb1 > xtb3)),2,if(((xtb1 < xtb2) and (xtb1 < xtb3)),(0 - 2),if(((xtb2 > xtb3) and (xtb2 > xtb4)),3,if(((xtb2 < xtb4) and (xtb2 < xtb4)),(0 - 3),if(((xtb3 > xtb4) and (xtb3 > xtb5)),4,if(((xtb3 < xtb4) and (xtb3 < xtb5)),(0 - 4),0))))))));
hg:=ema(c02,8);
资金生命1:=ema(c02,21);
资金生命2:=ema(c02,55);
资金生命3:=ema(c02,89);
资金生命4:=ema(c02,133);
cyc1:=abs((((c02 - 资金生命4) * 100) / 资金生命4));
资金生命5:=abs((((c02 - 资金生命3) * 100) / 资金生命3));
aa1:=abs((((c02 - 资金生命2) * 100) / 资金生命2));
aa2:=abs((((c02 - 资金生命1) * 100) / 资金生命1));
生命线:if((cyc1 < p),资金生命4,if((资金生命5 < p),资金生命3,if((aa1 < p),资金生命2,if((aa2 < p),资金生命1,hg)))),colorff00;
partline((生命线 > ref(生命线,1)),生命线),colorff;
stickline(((xtb6 = 2) and (hl = 3)),c02,c0,5,0),colorff00ff;
stickline(((xtb6 = 2) and (hl = 2)),c02,c0,5,0),colorff00ff;
stickline(((xtb6 = 2) and (hl = 0)),c02,c0,5,0),colorff00ff;
stickline(((xtb6 = 2) and (hl = (0 - 1))),xtb1,c0,5,0),colorffff;
stickline(((xtb6 = 2) and (hl = (0 - 1))),c02,xtb1,5,0),colorff;
stickline(((xtb6 = 2) and (hl = (0 - 2))),c02,xtb1,5,0),colorff;
stickline(((xtb6 = 2) and (hl = (0 - 3))),c02,xtb1,5,0),colorff;
stickline(((xtb6 = 1) and (hl = (0 - 1))),c02,c0,5,1),colorff;
stickline(((xtb6 = 1) and (hl = (0 - 2))),c02,c0,5,1),colorff;
stickline(((xtb6 = 1) and (hl = (0 - 3))),c02,c0,5,1),colorff;
stickline(((xtb6 = 1) and (hl = 0)),c02,c0,5,1),colorff;
stickline(((xtb6 = 1) and (hl = 1)),c02,c0,5,1),colorff;
stickline(((xtb6 = 1) and (hl = 2)),c02,c0,5,1),colorff;
stickline(((xtb6 = 1) and (hl = 3)),c02,c0,5,1),colorff;
stickline(((xtb6 = 0) and (hl = 1)),c02,c0,5,0),colorffff00;
stickline(((xtb6 = 0) and (hl = 2)),c02,c0,5,0),colorffff00;
stickline(((xtb6 = 0) and (hl = 3)),c02,c0,5,0),colorffff00;
stickline(((xtb6 = 0) and (hl = (0 - 1))),c02,c0,5,0),colorffff;
stickline(((xtb6 = 0) and (hl = (0 - 2))),c02,c0,5,0),colorffff;
stickline(((xtb6 = 0) and (hl = (0 - 3))),c02,c0,5,0),color4d;
stickline(((xtb6 = (0 - 1)) and (hl = 3)),c02,c0,5,0),colorff00;
stickline(((xtb6 = (0 - 1)) and (hl = 2)),c02,c0,5,0),colorff00;
stickline(((xtb6 = (0 - 1)) and (hl = 2)),xtb1,c0,5,0),colorffff00;
stickline(((xtb6 = (0 - 1)) and (hl = (0 - 1))),c02,c0,5,1),colorff00;
stickline(((xtb6 = (0 - 1)) and (hl = (0 - 2))),c02,c0,5,1),colorff00;
stickline(((xtb6 = (0 - 1)) and (hl = (0 - 3))),c02,c0,5,1),colorff00;
stickline(((xtb6 = (0 - 2)) and (hl = 3)),c02,c0,5,1),colorff;
stickline(((xtb6 = (0 - 2)) and (hl = 2)),c02,c0,5,1),colorff00;
stickline(((xtb6 = (0 - 2)) and (hl = 1)),c02,c0,5,0),colorff00;
stickline(((xtb6 = (0 - 2)) and (hl = 0)),c02,c0,5,0),color808080;
stickline(((xtb6 = (0 - 2)) and (hl = (0 - 1))),c02,c0,5,1),colorff00;
stickline(((xtb6 = (0 - 2)) and (hl = (0 - 2))),c02,c0,5,0),colorffff;
stickline(((xtb6 = (0 - 2)) and (hl = (0 - 3))),c02,c0,5,0),colorffff;
zzd1:=(((cost(95) - cost(5)) / (cost(95) + cost(5))) * 100);
zzd2:=(((cost(85) - cost(15)) / (cost(85) + cost(15))) * 100);
explainex((vol > 0),'90%筹码集中度=',zzd1,1,0),colorff;
explainex((vol > 0),'70%筹码集中度=',zzd2,1,0),colorff;;;
ee2:=((winner(1.05 * close) * 100) - (winner(0.95 * close) * 100));
cc2:=ma(((winner(0.95 * close) * 100) - (winner(cost(0)) * 100)),1);
tx:=ma(((winner(cost(100)) * 100) - (winner(1.05 * close) * 100)),1);;
explainex((vol > 0),'获利筹码=',cc2,1,0),colorffff;
explainex((vol > 0),'套牢筹码=',tx,1,0),colorffff;
explainex((vol > 0),'浮动筹码=',ma(ee2,1),1,0),colorffff;
explainex((vol > 0),'小天量价密码=',xtb6,1,0),colorff00ff;
explainex((vol > 0),'小天资金密码=',hl,1,0),colorff00ff;
explain(((xtb6 = 2) and (hl = 4)),'结论:极端上升,临近头部'),colorff00ff;
explain(((xtb6 = 2) and (hl = 2)),'结论:强势冲击,持股待涨'),colorff;
explain(((xtb6 = 2) and (hl = (0 - 1))),'结论:启稳攻击,择机买入'),colorff;
explain(((xtb6 = 2) and (hl = (0 - 3))),'结论:强势之底,抓住机会'),colorff;
explain(((xtb6 = 1) and (hl = 3)),'结论:多空分歧,多方略优'),colorff;
explain(((xtb6 = 1) and (hl = 1)),'结论:升势继续,勇敢持仓'),colorff;
explain(((xtb6 = 1) and (hl = (0 - 2))),'结论:攻击开始,适当追买'),colorff;
explain(((xtb6 = 0) and (hl = 3)),'结论:多空分歧,注意方向'),colorffff;
explain(((xtb6 = 0) and (hl = 2)),'结论:上攻乏力,减仓30%'),colorffff;
explain(((xtb6 = 0) and (hl = 1)),'结论:初步启稳,逢低试买'),colorff00;
explain(((xtb6 = 0) and (hl = (0 - 1))),'结论:头部成立,迅速出局'),colorffff;
explain(((xtb6 = 0) and (hl = (0 - 2))),'结论:调整开始,逢高出局'),colorffff;
explain(((xtb6 = (0 - 1)) and (hl = 4)),'结论:跌势继续,空仓等待'),colorffff00;
explain(((xtb6 = (0 - 1)) and (hl = 2)),'结论:超跌之底,观望为上'),colorffff00;
explain(((xtb6 = (0 - 1)) and (hl = (0 - 1))),'结论:多空分歧,空方主动'),colorff00;
explain(((xtb6 = (0 - 1)) and (hl = (0 - 3))),'结论:减仓动作,注意变盘'),colorff0000;
explain(((xtb6 = (0 - 2)) and (hl = 3)),'结论:强势之底,注意变盘'),color808080;
explain(((xtb6 = (0 - 2)) and (hl = 1)),''),colorff00;
explain(((xtb6 = (0 - 2)) and (hl = (0 - 2))),''),colorffff;
xtcc1:=max(max(c02,c0),xtb1);
ty:=min(min(c02,c0),xtb1);
cyc1:=(ref(xtcc1,3) = hhv(xtcc1,7));
ty1:=backset(cyc1,4);
b:=(filter(ty1,3) and (xtcc1 = hhv(xtcc1,4)));
aa1:=(ref(ty,3) = llv(ty,7));
scr1:=backset(aa1,4);
ee2:=(filter(scr1,3) and (ty = llv(ty,4)));
bb:=(islastbar and ref(b,barslast(b)));
gg:=backset(bb,(barslast(b) + 1));
hh:=(gg > ref(gg,1));
ii:=ref(barslast(b),1);
jj:=backset(hh,(ii + 2));
kk:=(jj > ref(jj,1));
drawline(kk,xtcc1,hh,xtcc1,0),linethick2,colorff00ff;
ll:=((ref(xtcc1,barslast(hh)) - ref(xtcc1,barslast(kk))) / (barslast(kk) - barslast(hh)));
cs:=(backset(islastbar,3) * xtcc1);
xtty:=((ref(cs,1) = 0) and (cs <> 0));
drawline(hh,xtcc1,xtty,cs,0),pointdot,colorff00ff;
iii:=((ref(cs,barslast(xtty)) - ref(xtcc1,barslast(hh))) / (barslast(hh) - barslast(xtty)));
cs11:=(islastbar and ref(ee2,barslast(ee2)));
gg2:=backset(cs11,(barslast(ee2) + 1));
hh2:=(gg2 > ref(gg2,1));
ii2:=ref(barslast(ee2),1);
jj2:=backset(hh2,(ii2 + 2));
kk2:=(jj2 > ref(jj2,1));
drawline(kk2,ty,hh2,ty,0),linethick2,colorff00;
ll2:=((ref(ty,barslast(hh2)) - ref(ty,barslast(kk2))) / (barslast(kk2) - barslast(hh2)));
cs2:=(backset(islastbar,3) * ty);
xtty1:=((ref(cs2,1) = 0) and (cs2 <> 0));
drawline(hh2,ty,xtty1,cs2,0),pointdot,colorff00;
iiv:=((ref(cs2,barslast(xtty1)) - ref(ty,barslast(hh2))) / (barslast(hh2) - barslast(xtty1)));
cs22:=(backset(islastbar,(barslast(kk) + 2)) or backset(islastbar,(barslast(kk2) + 3)));
cs22:=(backset(islastbar,(barslast(kk) + 2)) or backset(islastbar,(barslast(kk2) + 3)));
drawicon((b and cs22),(xtcc1 * 1.02),10);
drawicon((ee2 and cs22),(ty * 0.99),11);
bxs:=(ref(xtcc1,barslast(hh)) + (barslast(hh) * ll));
压力:(ref(cs,barslast(xtty)) + (barslast(xtty) * iii)),pointdot,linethick5,colorff00ff;
主压力:=(ref(ty,barslast(hh2)) + (barslast(hh2) * ll2));
支撑:(ref(cs2,barslast(xtty1)) + (barslast(xtty1) * iiv)),pointdot,linethick5,colorff00;
drawicon(((cross(c02,bxs) or ((c02 > 压力) and (ref(c02,1) < ref(压力,1)))) and (c02 > 15)),(c02 * 1.15),5);
drawicon(cross(c02,bxs),(c02 * 1.15),5);
主支撑:=if((支撑 < 压力),cross(支撑,c02),cross(压力,c02));
drawicon(主支撑,(c02 * 0.95),4);
>>>使用本站搜索工具可以找到更多“很好的老小天资金为王解盘公式 飞狐小天为王指标 源码”