量神三合一公式如下:
var11:=((((high > low) and (close > open)) and (high = close)) and (low = open));
var12:=((vol * (close - open)) / (high - low));
vd1:=if(var11,var12,0);
vz1:=if(var11,0,0);
var21:=((((high > low) and (close > open)) and (high = close)) and (low < open));
var22:=(vol * (((close - open) / (high - low)) + (((2 / 3) * (open - low)) / (high - low))));
var23:=((((vol * 1) / 3) * (open - low)) / (high - low));
vd2:=if(var21,var22,0);
vz2:=if(var21,var23,0);
var31:=((((high > low) and (close > open)) and (high > close)) and (low = open));
var32:=(vol * (((close - open) / (high - low)) + (((1 / 3) * (high - close)) / (high - low))));
var33:=((((vol * 2) / 3) * (high - close)) / (high - low));
vd3:=if(var31,var32,0);
vz3:=if(var31,var33,0);
var41:=((((high > low) and (close > open)) and (high > close)) and (low < open));
var42:=(vol * ((((close - open) / (high - low)) + (((1 / 3) * (high - close)) / (high - low))) + (((2 / 3) * (open - low)) / (high - low))));
var43:=(vol * ((((2 / 3) * (high - close)) / (high - low)) + (((1 / 3) * (open - low)) / (high - low))));
vd4:=if(var41,var42,0);
vz4:=if(var41,var43,0);
var51:=((((high > low) and (close < open)) and (high = open)) and (low = close));
var52:=((vol * (open - close)) / (high - low));
vd5:=if(var51,0,0);
vz5:=if(var51,var52,0);
var61:=((((high > low) and (close < open)) and (high = open)) and (low < close));
var62:=((((vol * (close - low)) / (high - low)) * 2) / 3);
var63:=(vol * (((open - close) / (high - low)) + (((1 / 3) * (close - low)) / (high - low))));
vd6:=if(var61,var62,0);
vz6:=if(var61,var63,0);
var71:=((((high > low) and (close < open)) and (high > open)) and (low = close));
var72:=((((vol * 1) / 3) * (high - open)) / (high - low));
var73:=(vol * (((open - close) / (high - low)) + (((2 / 3) * (high - open)) / (high - low))));
vd7:=if(var71,var72,0);
vz7:=if(var71,var73,0);
var81:=((((high > low) and (close < open)) and (high > open)) and (low < close));
var82:=(vol * ((((1 / 3) * (high - open)) / (high - low)) + (((2 / 3) * (close - low)) / (high - low))));
var83:=(vol * ((((open - close) / (high - low)) + (((2 / 3) * (high - open)) / (high - low))) + (((1 / 3) * (close - low)) / (high - low))));
vd8:=if(var81,var82,0);
vz8:=if(var81,var83,0);
var91:=((((high > low) and (close = open)) and (high = close)) and (low < close));
var92:=((vol * 2) / 3);
var93:=((vol * 1) / 3);
vd9:=if(var91,var92,0);
vz9:=if(var91,var93,0);
var101:=((((high > low) and (close = open)) and (high > close)) and (low = close));
var102:=((((vol * 1) / 3) * (high - low)) / (high - low));
var103:=((((vol * 2) / 3) * (high - low)) / (high - low));
vd10:=if(var101,var102,0);
vz10:=if(var101,var103,0);
var111:=((((high > low) and (close = open)) and (high > close)) and (low < close));
var112:=(vol * ((((1 / 3) * (high - close)) / (high - low)) + (((2 / 3) * (close - low)) / (high - low))));
var113:=(vol * ((((2 / 3) * (high - close)) / (high - low)) + (((1 / 3) * (close - low)) / (high - low))));
vd11:=if(var111,var112,0);
vz11:=if(var111,var113,0);
var121:=(((((high = low) and (close = open)) and (high = close)) and (low = close)) and ((((close - ref(close,1)) / ref(close,1)) * 100) > 9.75));
vd12:=if(var121,vol,0);
var122:=(((((high = low) and (close = open)) and (high = close)) and (low = close)) and ((((close - ref(close,1)) / ref(close,1)) * 100) < (0 - 9.75)));
vz12:=if(var122,vol,0);
var131:=((((((high = low) and (close = open)) and (high = close)) and (low = close)) and ((((close - ref(close,1)) / ref(close,1)) * 100) < 9.75)) and ((((close - ref(close,1)) / ref(close,1)) * 100) > (0 - 9.75)));
vd13:=if(var131,(0.5 * vol),0);
var132:=((((((high = low) and (close = open)) and (high = close)) and (low = close)) and ((((close - ref(close,1)) / ref(close,1)) * 100) < 9.75)) and ((((close - ref(close,1)) / ref(close,1)) * 100) > (0 - 9.75)));
vz13:=if(var132,(0.5 * vol),0);
vd:=((((((((((((vd1 + vd2) + vd3) + vd4) + vd5) + vd6) + vd7) + vd8) + vd9) + vd10) + vd11) + vd12) + vd13);
vz:=((((((((((((vz1 + vz2) + vz3) + vz4) + vz5) + vz6) + vz7) + vz8) + vz9) + vz10) + vz11) + vz12) + vz13);
var10:=vd;//真神
var20:=vz;//魔鬼
//量神正文
量比:v/ma(v,5),precision2,coloryellow,linethick0;
//快牛与动能
dzcjl:=sum(v,100);
hs:=if(close=indexc,vol/dzcjl*100,vol/capital*100);
scl:=sma((var10-var20)*hs/100,13,1),linethick0;
lcl:=sma(scl,6,1);
动能:scl,precision0,colorff00ff,linethick0;
涨停:=(c-ref(c,1))/ref(c,1)*100;
dnyc:=scl/lcl>=2.2 and (scl>100 or 涨停>9.6);
drawicon(scl/lcl>=2.2 and (scl>100 or 涨停>9.6),v,6),align0,align4;//快牛与动能信号
//--------------------------
jx1:=barssince(var10);
jy1:=if(121>jx1 and jx1>0,jx1,120);
jy2:=if(4>jx1 and jx1>0,jx1,3);
var30:=ma(v,jy2);
动神:var10,precision0,colorbe,linethick0;
鬼力:var20,precision0,coloraaaa00,linethick0;
神比:=动神/var30;
鬼比:=鬼力/var30;
var2:=high-low;
var3:=abs(open-close);
var4:=high-if(close>open,close,open);
var5:=if(close>open,open,close)-low;
var6:=var3/var2*vol;
var7:=var4/var2*vol;
var8:=var5/var2*vol;
var9:=if(vol/capital>0.001,1,exp(abs(log(vol/capital*100))));
vara:=(close-ma(close,5))/ma(close,5)*100;
varb:=ma(close,5)>ma(close,10) and ma(close,10)>ma(close,30) and ma(close,30)>ma(close,60);
varc:=ma(close,5)<ma(close,10) and ma(close,10)<ma(close,30);
var40:=(if(var6>=var7 and var6>=var8 and close>open,var6,动神)+动神)/2;
var41:=(if(var7>var6 and var7>var8,var7,动神)+动神)/2;
var42:=(if(var8>var6 and var8>var7,var8,动神)+动神)/2;
var50:=(if(var6>=var7 and var6>=var8 and close<open,var6,鬼力)+鬼力)/2;
三上:ma((var40+var41+var42)/3,jy2),precision0,linethick0,color0000ff;//三日上攻
三下:ma(var50,jy2),precision0,linethick0,colorwhite;//三日下攻
十三量:ma(v,13),precision0,colorcyan,linethick0;
五五量:ma(v,55),precision0,color00ffff,linethick0;
stickline(close>ma(close,30),0,vol,8,0),color0055aa,linethick2;{多头}
stickline(close>ma(close,30),0,vol,7,0),color0066bb,linethick2;
stickline(close>ma(close,30),0,vol,6,0),color0077cc,linethick2;
stickline(close>ma(close,30),0,vol,5,0),color0088dd,linethick2;
stickline(close>ma(close,30),0,vol,4,0),color0099ee,linethick2;
stickline(close>ma(close,30),0,vol,3,0),color00aaff,linethick2;
stickline(close>ma(close,30),0,vol,2,0),color00bbff,linethick2;
stickline(close>ma(close,30),0,vol,1,0),color00ccff,linethick2;
stickline(close<ma(close,30),0,vol,8,0),color777777,linethick2;{空头}
stickline(close<ma(close,30),0,vol,7,0),color888888,linethick2;
stickline(close<ma(close,30),0,vol,6,0),color999999,linethick2;
stickline(close<ma(close,30),0,vol,5,0),coloraaaaaa,linethick2;
stickline(close<ma(close,30),0,vol,4,0),colorbbbbbb,linethick2;
stickline(close<ma(close,30),0,vol,3,0),colorcccccc,linethick2;
stickline(close<ma(close,30),0,vol,2,0),colordddddd,linethick2;
stickline(close<ma(close,30),0,vol,1,0),coloreeeeee,linethick2;
stickline(鬼力>0,鬼力,0,6,0),color7b7b00,linethick2;{下攻量鬼力}
stickline(鬼力>0,鬼力,0,5,0),color909000,linethick2;
stickline(鬼力>0,鬼力,0,4,0),coloraaaa00,linethick2;
stickline(鬼力>0,鬼力,0,3,0),colorbbbb00,linethick2;
stickline(鬼力>0,鬼力,0,2,0),colorcccc00,linethick2;
stickline(鬼力>0,鬼力,0,1,0),colordddd00,linethick2;
stickline(鬼力>0,鬼力,0,0.4,0),coloreeee00,linethick2;
stickline(var6>=var7 and var6>=var8 and close>open,0,var6,5,0),colorff22ff;{上攻量}
stickline(var6>=var7 and var6>=var8 and close>open,0,var6,4,0),colorff44ff;
stickline(var6>=var7 and var6>=var8 and close>open,0,var6,3,0),colorff66ff;
stickline(var6>=var7 and var6>=var8 and close>open,0,var6,2,0),colorff88ff;
stickline(var6>=var7 and var6>=var8 and close>open,0,var6,1,0),colorff99ff;
stickline(var6>=var7 and var6>=var8 and close<open,0,var6,4,0),color105510,linethick2;{下攻量}
stickline(var6>=var7 and var6>=var8 and close<open,0,var6,3,0),color106610,linethick2;
stickline(var6>=var7 and var6>=var8 and close<open,0,var6,2.4,0),color107710,linethick2;
stickline(var6>=var7 and var6>=var8 and close<open,0,var6,1.6,0),color108810,linethick2;
stickline(var6>=var7 and var6>=var8 and close<open,0,var6,1,0),color109910,linethick2;
stickline(var6>=var7 and var6>=var8 and close<open,0,var6,0.6,0),color10aa10,linethick2;
stickline(var6>=var7 and var6>=var8 and close<open,0,var6,0,0),color10bb10,linethick2;
stickline(var7>var6 and var7>var8,0,var7,4,0),color1055ff,linethick2;{上探量}
stickline(var7>var6 and var7>var8,0,var7,3,0),color1066ff,linethick2;
stickline(var7>var6 and var7>var8,0,var7,2.6,0),color1077ff,linethick2;
stickline(var7>var6 and var7>var8,0,var7,2,0),color1088ff,linethick2;
stickline(var7>var6 and var7>var8,0,var7,1.4,0),color1099ff,linethick2;
stickline(var7>var6 and var7>var8,0,var7,0.8,0),color10aaff,linethick2;
stickline(var7>var6 and var7>var8,0,var7,0.4,0),color10bbff,linethick2;
stickline(var7>var6 and var7>var8,0,var7,0,0),color10ccff,linethick2;
stickline(var8>var6 and var8>var7,0,var8,4,0),colorff0000,linethick2;{下探量}
stickline(var8>var6 and var8>var7,0,var8,3,0),colorff2200,linethick2;
stickline(var8>var6 and var8>var7,0,var8,2,0),colorff4400,linethick2;
stickline(var8>var6 and var8>var7,0,var8,1.2,0),colorff6600,linethick2;
stickline(var8>var6 and var8>var7,0,var8,0.4,0),colorff8800,linethick2;
stickline(var8>var6 and var8>var7,0,var8,0,0),colorffaa00,linethick2;
stickline(var9>2 and vol<ma(vol,5)/2,0,vol,10,0),color102070,linethick2;{相对地量}
stickline(var9>2 and vol<ma(vol,5)/2,0,vol,9,0),color102080,linethick2;
stickline(var9>2 and vol<ma(vol,5)/2,0,vol,8,0),color102090,linethick2;
stickline(var9>2 and vol<ma(vol,5)/2,0,vol,7,0),color1020a0,linethick2;
stickline(var9>2 and vol<ma(vol,5)/2,0,vol,6,0),color1020b0,linethick2;
stickline(var9>2 and vol<ma(vol,5)/2,0,vol,5,0),color1020c0,linethick2;
stickline(var9>2 and vol<ma(vol,5)/2,0,vol,3,0),color1020d0,linethick2;
stickline(var9>2 and vol<ma(vol,5)/2,0,vol,1,0),color1020e0,linethick2;
地量: drawtext(var9>2 and vol<ma(vol,5)/2,vol*2,'地量'),align0,color0000ff;
放量: stickline(vol>ma(vol,5)*2.5,0,vol,3,0) , colorwhite;
stickline(动神>0,动神,0,1.8,0),colorbe;{动神细红柱}
stickline(动神>0,动神,0,1,0),color0011ff;
stickline(动神>0,动神,0,0.6,0),color0033ff;
stickline(动神>0,动神,0,0.2,0),color0055ff;
stickline(动神>0,动神,0,0,0),color0011ff;
上攻均量:=ma(var10,jy1);
逢高出货: drawtext(var7>var6 and vara>2 and var9>var8 and close>ma(close,5) and close>ma(close,30) and high>ma(close,60) and vol>ma(vol,5) and var7>=ma(vol,5),vol,'高出'),align0 , colorgreen;
逢低跟进: drawtext(var8>var6 and var8>var7 and vara<-2 and close<ma(close,30) and var8<ma(vol,5)/2 and ma(vol,5)<ma(vol,10),vol,'低进'),align0 , colormagenta;
强势参与: drawtext(var6>ma(vol,5)*2 and var6>=var7 and var6>=var8 and close>open or vol>ma(vol,5)*3 and varb,vol*0.58,'☆'),align0, colorcc99cc;
空头释放: drawtext(var6>=var7 and var6>=var8 and close<open and var6/vol>0.7 and varc and var6>ma(vol,5),vol,'空放') ,align0, colorgreen;
var21:=量比>1 and 动神/三上>1.58 and if(三上>上攻均量,三上>三下,三上>ref(三上,1)) and 三下<ref(三下,1) and (c-ref(c,3))/ref(c,3)*100<14;
及时参与: drawtext(var21,vol*0.58,'☆'),align0,color00ffff;
//异动资金------------
varzj0:=(amount-(c+h+l+o)/4*v*100)/100;
varzj1:=(c-(c+h+l+o)/4)*v*100/100;
穿透:=ema(1000000*(varzj0+varzj1)/2/amount,5);
穿透日:=穿透-ref(穿透,1);
条件1:=if((穿透>=80 or 穿透日>=90) and 穿透>ref(穿透,1) and 十三量>五五量,100,0);
drawicon(条件1>0,v,10),align0;
条件2:=if((穿透>=80 or 穿透日>=90) and 穿透>ref(穿透,1),90,0);
drawicon(条件2>0,v*2/3,12),align0;
条件3:=if((穿透日>穿透 and (穿透>60 or 穿透日>80)) and 穿透>ref(穿透,1),80,0);
drawicon(条件3>0,v/3,11),align0;
//-------------------
ma((var40+var41+var42)/3,jy2),precision2,linethick1,color0000ff;
ma(var50,jy2),precision2,linethick1,colorwhite;
p:=sysparam(1);
u:=if(barpos<p+1,1,0);
partline(u ,u*十三量),colorcyan;
partline(u ,u*五五量),color00ffff;
//-----------
varn3{短线能量}:=cross(三上,三下);
varn52:=sum(var10,5)-sum(var20,5);
varn53:=varn52>=ref(varn52,1);
varn531:=varn52<ref(varn52,1);
explainex(varn52>=0, '中线能量充足:',varn52,0,0),colorred;
explainex(varn52<0 ,'中线能量弱:',varn52,0,0),colorblue;
explainex(varn53,'中线能量趋强:',varn52,0,0),color16c1ff;
explainex(varn531,'中线能量趋弱:',varn52,0,0),colorffc800;
explain(var10>ref(var10,1),'短能查量神,今日动神趋强'),color00ff01;
explain(var10<ref(var10,1),'短能查量神,今日动神趋弱'),colorbbaffd;
explain(varn3 and 三上>ref(三上,1),'三日上攻金叉'),colorred;
explain(var21>0,'☆及时参与'),color00ffff;
explainex(c>0 and dnyc=0,'攻击动能应达100.【今动能】:',动能,0,0),colorff00ff;
explainex(dnyc>0,'【动能异常!!】:',动能,0,0),color00ffff;
explainex(c>0 and 条件1=0,'资金穿透率:',穿透,2,0),colorffffff;
explainex(条件1>0,'【异动资金穿透率!!!】:',穿透,2,0),color0000ff;
explainex(c>0 and 条件2=0,'资金日穿透率:',穿透日,2,0),colorffff00;
explainex(条件2>0,'【异动资金日穿透率!!】:',穿透日,2,0),color00ffff;
explain(条件3>0,'【异动资金攻击警告!】'),color10aa10;
//--------换手
换:=hs,precision2,color0099ff,linethick0;//换手
explainex(换<=1 ,'换手:地量',换,2,0),colorff00ff;
explainex(换<=2 and 换>1 ,'换手低靡:',换,2,0),colorffffff;
explainex(换<=3 and 换>2 ,'换手温和:',换,2,0),color0089ff;
explainex(换<=5 and 换>3 ,'换手活跃:',换,2,0),color00ffff;
explainex(换<=8 and 换>5 ,'换手带量:',换,2,0),color00ff00;
explainex(换<=15 and 换>8 ,'换手放量:',换,2,0),color0000ff;
explainex(换<=25 and 换>15 ,'换手巨量:',换,2,0),colorffff00;
//一个漂亮的成交量指标(原码)
量:=(ema(if(c>=ref(c,2),v,(-v)),60)/ma(v,60))*100;
量1:= ema(量,3); 量2:= ema(量,5); 量3:= ema(量,8);
量a:=量,precision2,colorwhite,linethick0;
量b:=ema(量,13),precision2,coloryellow,linethick0;
t3:=ema(量,21),colorf00ff0;
t1:=量2>=量3 and 量<ref(量,1);//强转弱:
t2:=量2<量3 and 量>ref(量,1);//弱转强:
kka1:=(量2>=量3);kka2:=t1>0;kka3:=if(kka1>0,1,0);kka4:=if(kka2>0,11,0);kka5:=kka3+kka4;
kkb1:=(量2<=量3);kkb2:=t2>0;kkb3:=if(kkb1>0,1,0);kkb4:=if(kkb2>0,11,0);kkb5:=kkb3+kkb4;
explainex(kka5=1,'短能评估结论-量强:',量1-量3,2,0),color0044ff;
explainex(kka5=12,'短能评估结论-量强转弱:',量1-量3,2,0),colora0a0c0;
explainex(kkb5=1,'短能评估结论-量弱:',量1-量3,2,0),colorff4400;
explainex(kkb5=12,'短能评估结论-量弱转强:',量1-量3,2,0),color338fdd;
{选股公式}
var2:=high-low;
var3:=abs(open-close);
var4:=high-if(close>open,close,open);
var5:=if(close>open,open,close)-low;
var6:=var3/var2*vol;
var7:=var4/var2*vol;
var8:=var5/var2*vol;
vara:=(close-ma(close,5))/ma(close,5)*100;
var8>var6 and var8>var7 and vara<-2 and close<ma(close,30) and var8<ma(vol,5)/2 and ma(vol,5)<ma(vol,10)
上一指标公式:多空阵线公式 飞狐阵线指标 源码
下一指标公式:乘风K线版公式 飞狐乘风指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文量神三合一公式 飞狐公式指标 源码仅供学习研究。