【大智慧】天風地火主圖指標公式
攻城獅 2015.11.09 06:05
N:=3;
M:=30;
Var0:=(3*CLOSE+LOW+OPEN+HIGH)/6;
多頭線: (20*Var0+19*REF(Var0,1)+18*REF(Var0,2)+17*REF(Var0,3)+16*REF(Var0,4)+15*REF(Var0,5)+14*REF(Var0,6)+13*REF(Var0,7)+12*REF(Var0,8)+11*REF(Var0,9)+10*REF(Var0,10)+9*REF(Var0,11)+8*REF(Var0,12)+7*REF(Var0,13)+6*REF(Var0,14)+5*REF(Var0,15)+4*REF(Var0,16)+3*REF(Var0,17)+2*REF(Var0,18)+REF(Var0,20))/210, CIRCLEDOT,COLORRED,linethick2;
空頭線: MA(多頭線,10), CIRCLEDOT,COLORGREEN,linethick2;
STICKLINE(多頭線>空頭線,多頭線,空頭線,10,10),COLORRED;
STICKLINE(多頭線<空頭線,多頭線,空頭線,10,10),COLORGREEN;
STICKLINE(C>O,O,C,7,0),COLORRED;
STICKLINE(C>O,O,C,4,0),COLORB0B0FF;
STICKLINE(C>O,O,C,2,0),COLORYELLOW;
STICKLINE(C>O,L,H,0.1,0),COLORYELLOW;
STICKLINE(C< O,O,C,7,0),COLORFF2020;
STICKLINE(C< O,O,C,4,0),COLORFF6600;
STICKLINE(C< O,O,C,2,0),COLORffcc66;
STICKLINE(C< O,L,H,0.1,0),COLORffcc66;
STICKLINE(C=O AND C>=REF(C,1),O,C,7,0),COLORRED;
STICKLINE(C=O AND C>=REF(C,1),O,C,4,0),COLORB0B0FF;
STICKLINE(C=O AND C>=REF(C,1),O,C,2,0),COLORYELLOW;
STICKLINE(C=O AND C>=REF(C,1),L,H,0.1,0),COLORYELLOW;
STICKLINE(C=O AND C< REF(C,1),O,C,7,0),COLORFF2020;
STICKLINE(C=O AND C< REF(C,1),O,C,4,0),COLORFF6600;
STICKLINE(C=O AND C< REF(C,1),O,C,2,0),COLORffcc66;
STICKLINE(C=O AND C< REF(C,1),L,H,0.1,0),COLORffcc66;
var1:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,5);
A1:=CLOSE/MA(CLOSE,40);
A2:=(CLOSE-OPEN)/OPEN*100>4;
A3:=LOW*1.051A4:=A3 AND COUNT(A3,5)>1;
B1:=INDEXC;
B2:=MA(B1,5);
B3:=MA(B1,20);
B4:=B1*1.03買入1:=(var1<6 AND A1<0.85 AND A2)*90;
買入2:=(var1<6 AND A1<0.76 AND A4)*70;
買入3:=(var1<6 AND B4)*60;
DRAWICON(var1<6 AND A1<0.85 AND A2,l*0.9,1);
DRAWTEXT(var1<6 AND A1<0.85 AND A2,l*0.85,'--->買入1′),colorred;
DRAWICON(var1<6 AND A1<0.76 AND A4,l*0.9,1);
DRAWTEXT(var1<6 AND A1<0.76 AND A4,l*0.85,'--->買入2′),colorred;
DRAWICON(var1<6 AND B4,l*0.9,1);
DRAWTEXT(var1<6 AND B4,l*0.85,'--->買入3′),colorred;
Var2:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
Var3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
MV:=(Var2+Var3)/AMOUNT*VOL*100*50;
DRAWICON(MV>5,l*0.95,1);
DRAWTEXT(MV>5,l*0.95,’—>異動’),coloryellow;
Var4:=EMA((EMA(CLOSE,95)-EMA(CLOSE,120)),35);
Var5:=((EMA(CLOSE,95)-EMA(CLOSE,120))-Var4)*2;
DRAWICON(Var5>0.3,h*1.05,2);
DRAWTEXT(Var5>0.3,h*1.05,’—>頂’),colorred;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.guangshenggb.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。