联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

【红宝利短线】大神来帮我2合1,立于不败之地

2016-7-6 13:23:30点击:

把这2个指标合在一起

指标一
20,POINTDOT;
80,POINTDOT;
VAR1:=(2*C+H+L)/4;
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
AA:EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5),COLORRED;
BB:EMA(AA,5)COLOR00FFFF;
DRAWBAND(AA,RGB(200,0,0),BB,RGB(0,200,200));
DRAWICON(CROSS(AA,BB),BB-5,1);
DRAWICON(CROSS(BB,AA),AA+5,2);
STICKLINE(AA<20,2,7,1,1),COLORFF00FF;
STICKLINE(AA>80,92,97,1,1),COLOR00FFFF;
IF(AA>=BB,100,108);
IF(AA<BB,0,-8);
DRAWICON(AA>=BB,105,1);
DRAWICON(BB>AA,-8,2);
STICKLINE( CROSS(AA,BB),-8,15,1,0),COLORRED,LINETHICK2;
STICKLINE( CROSS(AA,BB),1,6,1,0),COLOR00FFFF,LINETHICK2;
DRAWICON(CROSS(AA,BB),13,13);
{www.88gs.com 通达信股票指标指标}
STICKLINE( CROSS(BB,AA),108,85,1,0),COLOR00FF00,LINETHICK2;
STICKLINE( CROSS(BB,AA),94,99,1,0),COLORFF00FF,LINETHICK2;
DRAWICON(CROSS(BB,AA),85,14);


指标二
{//中文名称:红宝利短线

//默认显示:副图
//默认周期:日线
//版本号:20140626
//编辑整理:UP投资郭嘉铭、叶海基}

高手专用系指标:1,NODRAW,COLORRED;
STICKLINE(1,0,0,20,1),COLORRED;
VAR111:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR1:=1;
VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF;
C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF;
DRAWTEXT(CROSS(C1,C2),REF(C2,1),'买'),COLORRED;
DRAWTEXT(CROSS(C2,C1),REF(C1,1),'卖'),COLORGREEN;
DRAWICON(CROSS(C1,C2) AND C2>0,MIN(C1,C2),1);
DRAWICON(CROSS(C1,C2) AND C2<0,MIN(C1,C2),1);
DRAWICON(CROSS(C2,C1) AND C2<-100,MAX(C1,C2)*1.2,2);
DRAWICON(CROSS(C2,C1) AND C2>-100,MAX(C1,C2)*1.2,2);
N:=9; P1:=3; P2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,P1,1);
D:SMA(K,P2,1);
J:3*K-2*D;
IF(J>REF(J,1),J,DRAWNULL),COLORRED,LINETHICK3; 
{KDJ日周月金叉死叉}
周K:="KDJ.K#WEEK"(9,3,3);
周D:="KDJ.D#WEEK"(9,3,3);
周J:="KDJ.J#WEEK"(9,3,3);
月K:="KDJ.K#MONTH"(9,3,3);
月D:="KDJ.D#MONTH"(9,3,3);
月J:="KDJ.J#MONTH"(9,3,3);
月金叉:=CROSS(月K,月D);
周金叉:=CROSS(周K,周D);
日金叉:=FILTER(CROSS(K,D) AND K<20,4);
DRAWTEXT(月金叉,月D-2,'★'),COLOR0022EE;
DRAWTEXT(月金叉,月D-2,'KD月金叉'),COLORYELLOW;
DRAWTEXT(周金叉,周D,'★'),COLOR0022EE;
DRAWTEXT(周金叉,周D,' KD周金叉'),COLORGREEN;
DRAWICON(日金叉,K,1);
DRAWTEXT(日金叉,D-6,'低位金叉'),COLOR00CCCC;
DRAWTEXT(CROSS(周D,周K),周D*1.2,'KD周死叉'),COLOR00DDBB;
DRAWTEXT(CROSS(月D,月K),月D,'KD月死叉'),COLORFFFFFF;
KDB:=BARSLAST(REF(CROSS(K,D),1));
KDDB:=REF(CLOSE,KDB+1)>CLOSE AND REF(K,KDB+1)<K AND CROSS(K,D);
K底背:=IF(FILTER(KDDB>0,5),1,0);
DRAWTEXT(K底背=1,D*0.98,'底背离'),COLORDDDDDD;
KDD:=BARSLAST(REF(CROSS(D,K),1));
K顶背:=REF(CLOSE,KDD+1)<CLOSE AND REF(K,KDD+1)>K AND CROSS(D,K);
DRAWTEXT(FILTER(K顶背>0,5),D+8,'顶背离'),COLORFFAA22;
DRAWICON(CROSS(J,1),J,1);
DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);
IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;
IF(J>90,J,DRAWNULL),COLORWHITE,LINETHICK2.5;
IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;

///////////////////////////////////////////////////////////////

下面是:红宝利短线2合1

{指标一}

20,POINTDOT;

80,POINTDOT;

VAR1:=(2*C+H+L)/4;

VAR2:=LLV(LOW,34);

VAR3:=HHV(HIGH,34);

AA:EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5),COLORRED;

BB:EMA(AA,5)COLOR00FFFF;

DRAWBAND(AA,RGB(200,0,0),BB,RGB(0,200,200));

DRAWICON(CROSS(AA,BB),BB-5,1);

DRAWICON(CROSS(BB,AA),AA+5,2);

STICKLINE(AA<20,2,7,1,1),COLORFF00FF;

STICKLINE(AA>80,92,97,1,1),COLOR00FFFF;

IF(AA>=BB,100,108);

IF(AA<BB,0,-8);

DRAWICON(AA>=BB,105,1);

DRAWICON(BB>AA,-8,2);

STICKLINE( CROSS(AA,BB),-8,15,1,0),COLORRED,LINETHICK2;

STICKLINE( CROSS(AA,BB),1,6,1,0),COLOR00FFFF,LINETHICK2;

DRAWICON(CROSS(AA,BB),13,13);

{WWW.55188.COM 理想论坛_通达信股票指标公式}

STICKLINE( CROSS(BB,AA),108,85,1,0),COLOR00FF00,LINETHICK2;

STICKLINE( CROSS(BB,AA),94,99,1,0),COLORFF00FF,LINETHICK2;

DRAWICON(CROSS(BB,AA),85,14);

{ 指标二}

{//中文名称:红宝利短线

//版本号:HTTP://WWW.88GS.COM/}

高手专用系指标:1,NODRAW,COLORRED;

STICKLINE(1,0,0,20,1),COLORRED;

VAR111:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100;

VAR11:=1;

VAR21:=((((2*CLOSE)+HIGH)+LOW) / 4);

VAR4:=LLV(LOW,5);

VAR5:=HHV(HIGH,4);

C1:(EMA((((VAR21-VAR4)/(VAR5-VAR4))*100),4)*VAR11),COLORFF00FF;

C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR11),COLORFFFFFF;

DRAWTEXT(CROSS(C1,C2),REF(C2,1),'买'),COLORRED;

DRAWTEXT(CROSS(C2,C1),REF(C1,1),'卖'),COLORGREEN;

DRAWICON(CROSS(C1,C2) AND C2>0,MIN(C1,C2),1);

DRAWICON(CROSS(C1,C2) AND C2<0,MIN(C1,C2),1);

DRAWICON(CROSS(C2,C1) AND C2<-100,MAX(C1,C2)*1.2,2);

DRAWICON(CROSS(C2,C1) AND C2>-100,MAX(C1,C2)*1.2,2);

N:=9; P1:=3; P2:=3;

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

K:SMA(RSV,P1,1);

D:SMA(K,P2,1);

J:3*K-2*D;

IF(J>REF(J,1),J,DRAWNULL),COLORRED,LINETHICK3; 

{KDJ日周月金叉死叉}

周K:="KDJ.K#WEEK"(9,3,3);

周D:="KDJ.D#WEEK"(9,3,3);

周J:="KDJ.J#WEEK"(9,3,3);

月K:="KDJ.K#MONTH"(9,3,3);

月D:="KDJ.D#MONTH"(9,3,3);

月J:="KDJ.J#MONTH"(9,3,3);

月金叉:=CROSS(月K,月D);

周金叉:=CROSS(周K,周D);

日金叉:=FILTER(CROSS(K,D) AND K<20,4);

DRAWTEXT(月金叉,月D-2,'★'),COLOR0022EE;

DRAWTEXT(月金叉,月D-2,'KD月金叉'),COLORYELLOW;

DRAWTEXT(周金叉,周D,'★'),COLOR0022EE;

DRAWTEXT(周金叉,周D,' KD周金叉'),COLORGREEN;

DRAWICON(日金叉,K,1);

DRAWTEXT(日金叉,D-6,'低位金叉'),COLOR00CCCC;

DRAWTEXT(CROSS(周D,周K),周D*1.2,'KD周死叉'),COLOR00DDBB;

DRAWTEXT(CROSS(月D,月K),月D,'KD月死叉'),COLORFFFFFF;

KDB:=BARSLAST(REF(CROSS(K,D),1));

KDDB:=REF(CLOSE,KDB+1)>CLOSE AND REF(K,KDB+1)<K AND CROSS(K,D);

K底背:=IF(FILTER(KDDB>0,5),1,0);

DRAWTEXT(K底背=1,D*0.98,'底背离'),COLORDDDDDD;

KDD:=BARSLAST(REF(CROSS(D,K),1));

K顶背:=REF(CLOSE,KDD+1)<CLOSE AND REF(K,KDD+1)>K AND CROSS(D,K);

DRAWTEXT(FILTER(K顶背>0,5),D+8,'顶背离'),COLORFFAA22;

DRAWICON(CROSS(J,1),J,1);

DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);

IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;

IF(J>90,J,DRAWNULL),COLORWHITE,LINETHICK2.5;

IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;

IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;