【大智慧】仁治MACD指標(biāo)公式
攻城獅 2015.11.29 16:28
input:LONG(20,10,100),SHORT(8,5,40),M(9,2,60);
DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));
DIFF : EMA(CLOSE,SHORT) – EMA(CLOSE,LONG),COLORblack;
DEA : EMA(DIFF,M),COLORblack;
MACD : 2*(DIFF-DEA), COLORBLACK;
a51:=MACD*20;
凈流入1:SUM(a51,1),COLORblack;
凈流入2:SUM(a51,2),COLORblack;
凈流入3:SUM(a51,3),COLORblack;
凈流入4:SUM(a51,4),COLORblack;
凈流入5:SUM(a51,5),COLORblack;
凈流入6:SUM(a51,6),COLORblack;
凈流入7:SUM(a51,7),COLORblack;
凈流入8:SUM(a51,8),COLORblack;
凈流入9:SUM(a51,9),COLORblack;
凈流入10:SUM(a51,10),COLORblack;
凈流入11:SUM(a51,11),COLORblack;
凈流入12:SUM(a51,12),COLORblack;
凈流入13:SUM(a51,13),COLORblack;
凈流入14:SUM(a51,14),COLORblack;
凈流入15:SUM(a51,15),COLORblack;
凈流入16:SUM(a51,16),COLORblack;
凈流入17:SUM(a51,17),COLORblack;
凈流入18:SUM(a51,18),COLORblack;
凈流入19:SUM(a51,19),COLORblack;
a60:=凈流入1>=ref(凈流入1,1);
a61:=凈流入2>=ref(凈流入2,1);
a62:=凈流入3>=ref(凈流入3,1);
a63:=凈流入4>=ref(凈流入4,1);
a64:=凈流入5>=ref(凈流入5,1);
a65:=凈流入6>=ref(凈流入6,1);
a66:=凈流入7>=ref(凈流入7,1);
a67:=凈流入8>=ref(凈流入8,1);
a68:=凈流入9>=ref(凈流入9,1);
a69:=凈流入10>=ref(凈流入10,1);
a70:=凈流入11>=ref(凈流入11,1);
a71:=凈流入12>=ref(凈流入12,1);
a72:=凈流入13>=ref(凈流入13,1);
a73:=凈流入14>=ref(凈流入14,1);
a74:=凈流入15>=ref(凈流入15,1);
a75:=凈流入16>=ref(凈流入16,1);
a76:=凈流入17>=ref(凈流入17,1);
a77:=凈流入18>=ref(凈流入18,1);
a78:=凈流入19>=ref(凈流入19,1);
a80:=凈流入1<=ref(凈流入1,1);
a81:=凈流入2<=ref(凈流入2,1);
a82:=凈流入3<=ref(凈流入3,1);
a83:=凈流入4<=ref(凈流入4,1);
a84:=凈流入5<=ref(凈流入5,1);
a85:=凈流入6<=ref(凈流入6,1);
a86:=凈流入7<=ref(凈流入7,1);
a87:=凈流入8<=ref(凈流入8,1);
a88:=凈流入9<=ref(凈流入9,1);
a89:=凈流入10<=ref(凈流入10,1);
a90:=凈流入11<=ref(凈流入11,1);
a91:=凈流入12<=ref(凈流入12,1);
a92:=凈流入13<=ref(凈流入13,1);
a93:=凈流入14<=ref(凈流入14,1);
a94:=凈流入15<=ref(凈流入15,1);
a95:=凈流入16<=ref(凈流入16,1);
a96:=凈流入17<=ref(凈流入17,1);
a97:=凈流入18<=ref(凈流入18,1);
a98:=凈流入19<=ref(凈流入19,1);
a99:=a51>=ref(a51,1);
a100:=a51<=ref(a51,1);
partline(a51,a99,rgb(255,0,0),a100,rgb(0,0,255)),linethick1;
partline(凈流入1,a60,rgb(255,0,0),a80,rgb(0,255,0)),linethick1;
partline(凈流入5,a64,rgb(255,0,0),a84,rgb(0,255,0)),linethick1;
partline(凈流入9,a68,rgb(255,0,0),a88,rgb(0,255,0)),linethick1;
partline(凈流入13,a72,rgb(255,0,0),a92,rgb(0,255,0)),linethick1;
partline(凈流入19,a78,rgb(255,0,0),a98,rgb(0,255,0)),linethick1;
DRAWTEXT(a60 AND a61 AND a62 AND a63 AND a64 AND a65 AND a66,凈流入7,’←’),COLOR00FFFF,linethick1;
DRAWTEXT(a80 AND a81 AND a82 AND a83 AND a84 AND a85 AND a86,凈流入7,’←’),COLOR33FF00,linethick1;
DRAWTEXT(a67 AND a68 AND a69 AND a70 AND a71 AND a72,凈流入13,’←’),COLORFF00FF,linethick1;
DRAWTEXT(a87 AND a88 AND a89 AND a90 AND a91 AND a92,凈流入13,’←’),COLOR33FF00,linethick1;
DRAWTEXT(a73 AND a74 AND a75 AND a76 AND a77 AND a78,凈流入19,’←’),COLORFF0000,linethick1;
DRAWTEXT(a93 AND a94 AND a95 AND a96 AND a97 AND a98,凈流入19,’←’),COLOR33FF00,linethick1;
選股1:(a60 AND a61 AND a62 AND a63 AND a64 AND a65 AND a66),colorwhite;
Var2:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
a101: SMA(Var2,6,1),colorblack;
介入:CROSS(凈流入1,0) AND a101<40 and 選股1;
DRAWTEXT(介入,凈流入19 ,’←注意’),COLORblue,linethick4;
DRAWTEXT(CROSS(0,凈流入1) AND a101>60 and a80 AND a81 AND a82 AND a83 AND a84 AND a85 AND a86,凈流入19,’←空倉’),COLORyellow,linethick4;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點(diǎn),亦不對其真實(shí)性負(fù)責(zé),投資決策請建立在獨(dú)立思考之上。