【同花順】尋找金叉指標公式
攻城獅 2015.11.27 19:31
會員專用:0,Color9587FF;
Var1:=EMA(MA(IF(CLOSE>OPEN,(CLOSE-OPEN)*VOL,IF(CLOSEVar2:=EMA(MA(IF(CLOSE>REF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,IF(CLOSE Var3:=EMA(MA(IF(OPEN>REF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,IF(OPEN Var4:=EMA(MA(IF(CLOSE OPEN,(OPEN-CLOSE)*VOL,0)),10),1);
Var5:=EMA(MA(IF(CLOSEREF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,0)),10),1);
Var6:=EMA(MA(IF(OPENREF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,0)),10),1);
Var7:=CLOSE>OPEN;
Var8:=CLOSE>REF(CLOSE,1);
Var9:=OPEN>REF(CLOSE,1);
多頭:(Var1+Var2+Var3)/3/100,colorwhite;
空頭:(Var4+Var5+Var6)/3/100,coloryellow ;
一次金叉:EMA(EMA((Var1+Var2+Var3)/3-(Var4+Var5+Var6)/3,5),5)*1/100,colorgray,linethick2;
二次金叉:EMA((COUNT(Var8,12)/12+COUNT(Var7,12)/12+COUNT(Var9,12)/12)/5*MA(多頭,5.3)*2*6.8,5),colorblue,linethick6;
三次金叉:EMA((COUNT(Var8,22)/22+COUNT(Var7,22)/22+COUNT(Var9,22)/22)/18*MA(多頭,8)*5*1.8,5),colorred,linethick4;
四次金叉:EMA((COUNT(Var8,22)/22+COUNT(Var7,22)/22+COUNT(Var9,22)/22)/18*MA(多頭,8)*5*1.8,5),Color10c110,linethick2;
五次金叉:EMA((COUNT(Var8,12)/12+COUNT(Var7,12)/12+COUNT(Var9,12)/12)/5*MA(多頭,5)*2*6.8,5),Color10dd10,linethick2;
STICKLINE(空頭>0,0,空頭,1,0),COLOR3366FF;
STICKLINE(空頭<0,0,空頭,1,0),colorred;
DRAWTEXT(CROSS(一次金叉,會員專用),會員專用+0,’★’),colorred,linethick2;
DRAWTEXT(CROSS(二次金叉,會員專用),會員專用+0,’★’),colorff99ff,linethick2;
DRAWTEXT(CROSS(三次金叉,會員專用),會員專用+0,’★<'),coloryellow,linethick2;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.vatsalthakor.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責(zé),投資決策請建立在獨立思考之上。