飞狐量能主图公式公式、代码源码[其他软件公式]
相关标签: 三浪主升指标源码贴图 、 量能突破指标公式源码 、 量能指标代码 、 通达信加号主图 、 量能指标公式 、
原理解析:
源码:
a0:=BARSCOUNT(c);
a3:=SYSPARAM(3);
a2:=SYSPARAM(2);
a4:=SYSPARAM(4);
a5:=SYSPARAM(5);
nn0:=a3-a2;
nn:=a0-a2;
hh1:=(a4-a5)/10;
y0:=a0>=a2;
vv0:=if(y0=1 and SYSPARAM(1)>=a0,v,0);
hhx:=SYSPARAM(4);
llx:=SYSPARAM(5);
x:=llx-(hhx-llx+MINDIFF)/9;
y:=(HHV(VOL,SYSPARAM(3)-SYSPARAM(2)+1))*1;
yvb:=y[SYSPARAM(3)]/(llx-x+MINDIFF);
z:=VOL/yvb+x;
var1:=vol/CAPITAl*100;
换手率:=var1,POINTDOT,Color0000A8;
var2:=var1>1;
var3:=var1<2;
var4:=var1>2;
var5:=var1<3;
var6:=var1>=3;
var7:=var1<5;
var8:=var1>=5;
var9:=var1<8;
var10:=var1>=8;
var11:=var1<15;
var12:=var1>=15;
var13:=var1<25;
var14:=var1>=25;
STICKLINE(vol/CAPITAl*100<1 ,x,z,8,0),Color00aa00;
STICKLINE(vol/CAPITAl*100<1 ,x,z,6.6,0),Color00bb00;
STICKLINE(vol/CAPITAl*100<1 ,x,z,4.4,0),Color00cc00;
STICKLINE(vol/CAPITAl*100<1 ,x,z,3.3,0),Color00dd00;
STICKLINE(vol/CAPITAl*100<1 ,x,z,2.2,0),Color00ee00;
STICKLINE(vol/CAPITAl*100<1 ,x,z,1.1,0),Color00ff00;
STICKLINE(var2 and var3 ,x,z,8,0 ),COLOraa00bb;
STICKLINE(var2 and var3 ,x,z,6.6 ,0 ),COLORbb11bb;
STICKLINE(var2 and var3 ,x,z,4.4,0 ),COLOrcc22bb;
STICKLINE(var2 and var3 ,x,z,3.3,0 ),COLORdd33bb;
STICKLINE(var2 and var3 ,x,z,2.2 ,0 ),COLORee44bb;
STICKLINE(var2 and var3 ,x,z,1.1 ,0 ),COLORff55bb;
STICKLINE(var4 and var5,x,z,8,0),COLOR0000AA;
STICKLINE(var4 and var5,x,z,6.6,0),COLOR0000bb;
STICKLINE(var4 and var5,x,z,4.4,0),COLOR0000cc;
STICKLINE(var4 and var5,x,z,3.3,0),COLOR0000dd;
STICKLINE(var4 and var5,x,z,2.2,0),COLOR0000ee;
STICKLINE(var4 and var5,x,z,1.1,0),COLOR0000ff;
STICKLINE(var6 and var7,x,z,8,0),COLORFFaa00;
STICKLINE(var6 and var7,x,z,6.6,0),COLORFFbb00;
STICKLINE(var6 and var7,x,z,4.4,0),COLORFFcc00;
STICKLINE(var6 and var7,x,z,3.3,0),COLORFFdd00;
STICKLINE(var6 and var7,x,z,2.2,0),COLORFFee00;
STICKLINE(var6 and var7,x,z,1.1,0),COLORFFff00;
STICKLINE(var8 and var9,x,z,8 ,0 ),COLOR00aaff;
STICKLINE(var8 and var9,x,z,6.6 ,0 ),COLOR00bbff;
STICKLINE(var8 and var9,x,z,4.4,0 ),COLOR00ccff;
STICKLINE(var8 and var9,x,z,3.3 ,0 ),COLOR00ddff;
STICKLINE(var8 and var9,x,z,2.2 ,0 ),COLOR00eeff;
STICKLINE(var8 and var9,x,z,1.1 ,0 ),COLOR00ffff;
STICKLINE(var10 and var11,x,z, 8,0 ),coloraaaaCC;
STICKLINE(var10 and var11,x,z, 6.6,0 ),colorbbbbCC;
STICKLINE(var10 and var11,x,z, 4.4,0 ),colorccccCC;
STICKLINE(var10 and var11,x,z, 3.3,0 ),colorddddCC;
STICKLINE(var10 and var11,x,z, 2.2,0 ),coloreeeeCC;
STICKLINE(var10 and var11,x,z, 1.1,0 ),colorFFffCC;
STICKLINE(var12 and var13,x,z, 8,0 ),color66aa33;
STICKLINE(var12 and var13,x,z,6.6,0 ),color66bb33;
STICKLINE(var12 and var13,x,z, 4.4,0 ),color66cc33;
STICKLINE(var12 and var13,x,z, 3.3,0 ),color66dd33;
STICKLINE(var12 and var13,x,z, 2.2,0 ),color66ee33;
STICKLINE(var12 and var13,x,z, 1.1,0 ),color66ff33;
STICKLINE(var14,x,z, 8,0 ),COLOR000055;
STICKLINE(var14,x,z, 6.6,0 ),COLOR000077;
STICKLINE(var14,x,z, 4.4,0 ),COLOR000099;
STICKLINE(var14,x,z, 3.3,0 ),COLOR0000BB;
STICKLINE(var14,x,z, 2.2,0 ),COLOR0000DD;
STICKLINE(var14,x,z, 1.1,0 ),COLOR0000FF;
五日:MA(z,5),COLORWHITE;
十日:MA(z,10),COLORMAGENTA;{来源:www.cxh99.com 程序化交易}
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容