联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

Q Q:396950280

网址:www.yzhibiao.com

搜索 Search

优化的贝贝乖公式 源码

2014-8-13 16:26:26点击:

l1:=6;L2:=12;n:=21;N1:=25;

STICKLINE(c>0,25,25/2,10,0),COLORGRAY;
风光线:50,coloryellow;
拉升线:25, COLOR7F00FF;
地平线:N1/2,COLORGRAY;
0,colorgreen;
均价:=(2*C+(H-L)/2+L+o)/4;
价差:=SUM(均价-REF(均价,1),2)/2;
高低:=(均价+价差);
实价:=(高低+均价)/2;
aa:=eMA(((SLOPE(实价,n)*20)+实价),N*3);
bb:=eMA(((SLOPE(均价,n)*20)+均价),N*3);
多空:=((AA+bb)/2);
AaA:=eMA(((SLOPE(实价,N*2)*20)+实价),n*6);
BbB:=eMA(((SLOPE(均价,N*2)*20)+均价),n*6);
行情:=(AAA+BBB)/2,COLORYELLOW,LINETHICK2;
持仓:ma((3*多空-2*行情)/行情*25,1);
STICKLINE(持仓<地平线,地平线,持仓,4,0),COLORYELLOW;{这里是彩带,用柱状线代替了}
DRAWTEXT(持仓<地平线 AND CROSS(持仓,REF(持仓,1)),持仓*0.9,'黄金坑'),COLORYELLOW;
GL:ma((实价-行情)/行情*100+20,2),COLORWHITE;
GLh:=ma(GL,2),colorGREEN;
if(GLh GL1:=(实价-MA(实价,L1))/MA(实价,L1)*100+20,colorwhite;
GL2:=(实价-MA(实价,L2))/MA(实价,L2)*100+20,coloryellow;
GL3:=ma((实价-多空)/多空*100+20,2),colorFF8C00;

GL11:=ma(GL1,3),colorwhite;
GL22:=ma(GL2,3),coloryellow;
GL33:ma(GL3,2),colorff00ff;
GL0:=ma(GL33,2),colorGREEN;
m2:if(GL0>GL33,GL33,gl0),colorGREEN;
总:=(ABS(GL11-GL22)+ABS(GL22-GL33)+ABS(GL33-GL11)),COLORAAAA00;
Q:=CROSS(GL3,GL0) AND GL0<7;
STICKLINE(Q,GL0,30,3,0),COLOR00F0F0;
DRAWTEXT(Q,35,'-乖-'),COLORWHITE ,LINETHICK3 ;
DRAWTEXT(Q AND GL0<0,40,'-乖3'),COLORRED ,LINETHICK3 ;