【大智慧】金蛇七寸指標公式
攻城獅 2015.11.27 11:10
var10:=100*(c-cost(10))/cost(10);
空跌:=ref(var10,1)<0 or ref (var10,2)<0;
DIFF: EMA(CLOSE,12) – EMA(CLOSE,26),colorwhite;
DEA:=EMA(DIFF,9);
MACD: 2*(DIFF-DEA), COLORSTICK,LINETHICK2;
A1:EMA(C,13)>REF(EMA(C,13),1) AND MACD>REF(MACD,1),COLORFF00FF,LINETHICK0;
A2:=EMA(C,13) STICKLINE(a1>0 ,0,MACD,4,0),COLORRED;
STICKLINE(a2>0 ,0,MACD,4,0),COLORGREEN;
PARTLINE(DIFF,DIFF>DEA,RGB(255,153,153),DIFF{www.chiang1015.com 概念股網_大智慧指標公式}
DIFF2:=EMA(CLOSE,9)-EMA(CLOSE,26);
DEA2:=EMA(DIFF2,9);
紅:((2)*(DIFF2-DEA2)),CoLor0000FF;
紫:MA(((2)*(DIFF2-DEA2)),5),CoLorFF00FF;
da:=MAX(DIFF,DEA,紫);
上突四線:cross(紅,da) and 紫>DIFF and 紫<0 and 空跌>0,COLORFF00FF,LINETHICK0;
VERTLINE(上突四線 ,6),Colorred;
下突四線:cross(紫,紅) and 紫0 ,COLORFF00FF,LINETHICK0;
STICKLINE(下突四線>0,0,macd,4,0),COLORWHITE;
DRAWTEXT(下突四線>0,DIFF+0.5,’注意!’),COLORFFFFFF;
申明:本文為作者投稿或轉載,在概念股網 http://www.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網立場,不代表本網贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。