【大智慧】決勝王生命線主圖指標(biāo)公式
攻城獅 2015.11.09 20:50
生命線:ema(c,24),colorwhite,linethick2;
A:=ref(生命線,24);
mtm:=close-ref(close,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
dy:=hhv(dx,2)=hhv(dx,7) and count(dx>50,2) and cross(ma(dx,2),dx);
lc:=ref(close,1);
rsi:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
多頭線:EMA(C,1),COLORYELLOW;
空頭線:EMA(C,5),COLOR00FF00;
均衡線:EMA(空頭線,5),COLORWHITE;
varF1:=COUNT(CROSS(多頭線,均衡線),2)=1;
varF2:=COUNT(CROSS(空頭線,均衡線),2)=1;
ZAI:=FILTER(varF1 AND varF2,2);
DRAWTEXT(ZAI,均衡線*0.98,’ 主升行情’),color00ff00;
stickline(生命線>=A,high,low,0,0),colorff00ff;
stickline(生命線>=A,open,close,4,0),colorff00ff;
stickline(cross(生命線,A),high,low,0,0),colorred;
stickline(cross(生命線,A),open,close,4,0),colorred;
drawtext(cross(生命線,A),low*0.98,’▲’),colorred;
drawtext(cross(生命線,A),low*0.975,’∣’),colorred;
drawtext(cross(生命線,A),low*0.975,’‖’),colorred;
drawtext(cross(生命線,A),low*0.97,’∣’),colorred;
drawtext(cross(生命線,A),low*0.97,’‖’),colorred;
drawtext(cross(生命線,A),low*0.965,’∣’),colorred;
drawtext(cross(生命線,A),low*0.965,’‖’),colorred;
stickline(生命線 stickline(生命線 stickline(cross(A,生命線),high,low,0,0),color00ff00;
stickline(cross(A,生命線),open,close,4,0),color00ff00;
drawtext(cross(A,生命線),high*1.02,’▼’),color00ff00;
drawtext(cross(A,生命線),high*1.025,’∣’),color00ff00;
drawtext(cross(A,生命線),high*1.025,’‖’),color00ff00;
drawtext(cross(A,生命線),high*1.03,’∣’),color00ff00;
drawtext(cross(A,生命線),high*1.03,’‖’),color00ff00;
drawtext(cross(A,生命線),high*1.035,’∣’),color00ff00;
drawtext(cross(A,生命線),high*1.035,’‖’),color00ff00;
VAR1:=(100 – ((90 * (HHV(HIGH,21) – CLOSE)) / (HHV(HIGH,21) – LLV(LOW,21))));
VAR2:=(100 – ((90 * (HHV(HIGH,21) – CLOSE)) / (HHV(HIGH,21) – LLV(LOW,21))));
VAR3:=(100 – MA(((100 * (HHV(HIGH,6) – CLOSE)) / (HHV(HIGH,6) – LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),7);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),8);
DRAWTEXTREL(2,5,’【決勝王生命線】’),linethick3,colorwhite;
{DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.984),’B ‘),color4440FF;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035),’S ‘),colorFFFF34;}
dp:=if(c=INDEXC,0,1);gj:=AMOUNT/v/100;
上線:=sma(c,6.5,1);
下線:=sma(c,13.5,1);
上線1:=sma(c,3,1);
下線1:=sma(c,8,1);
STICKLINE(上線>下線,上線,下線,2.5,0),colorred,linethick2;
stickline(下線>上線,上線,下線,2.5,0),coloryellow,linethick2;
DRAWTEXT( cross(上線,下線),low*0.98,’▲全倉買’ ),color00ff00;
drawtext(cross(下線1,上線1),h*1.02,’▼清倉’),coloryellow;
減倉:=filter(cross(80,rsi) or dy,5);
drawtext(減倉 and 生命線>A,high*1.03,’○’),colorblue;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(if(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE VA1:=EMA(c,8);
VA2:=EMA(c,28);
DRAWTEXT(CROSS(VA2,VA1),VA1*1.10,’●全倉賣’),COLORYELLOW;
x1:=(3*C+H+L+O)/6;
x2:=EMA(x1,10);
x3:=REF(x2,1);
XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) and x2>x3,l-0.1,’●反彈’),COLORGREEN;
DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/
4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0) and x2>x3,l-0.4,’●加倉’),ColorFF5ED8;
DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/
4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0) and x2>x3,l-0.4,’●加倉’),ColorFF5ED8;
V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,29)*1.01,10);
DRAWICON(CROSS(V1,V2),V2,1);
V3:=EMA(CLOSE,10);
V4:=EMA(EMA(CLOSE,60)*0.99,10);
DRAWICON(CROSS(V3,V4),V4,1);
Var34:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
Var35:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
Var36:=IF(Var34>0.010,0.900,1) AND IF(Var34>(-0.025),1,1.200);
Var37:=Var36*(Var35-Var34)*100;
Var38:=SUM(Var37,10);
Var310:=Var38>20;
Var326:=IF(CLOSE and MA(VOL, 5)/240 AND CLOSE>REF(CLOSE,1)*1.0 AND CLOSE,88,0);
Var327:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND Var326>0,91,0);
DRAWICON(Var310>0 AND Var327=0,HIGH*1.01,5);
STICKLINE(Var327>90,LOW*0.99,LOW*0.95,2,0),COLORYELLOW;
STICKLINE(C<=O,C,O,3,0),COLORFF2020;
DRAWTEXT(VAR327>90,LOW*0.95,’出擊’),COLORYELLOW;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.guangshenggb.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點(diǎn),亦不對其真實(shí)性負(fù)責(zé),投資決策請建立在獨(dú)立思考之上。