【同花順】主控K線主圖指標公式
攻城獅 2015.12.04 02:20
N1:=6;N2:=16;N3:=34;N4:=40;
啟動:EMA(C,N1),colorwhite,linethick1;
持股線:EMA(C,N2),coloryellow;
牛熊線:EMA(MA(CLOSE,3),N3),colorred;
長期線:EMA(C,N4),colormagenta;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),OPEN,CLOSE,10,0),colorred;
STICKLINE(CLOSESTICKLINE(CLOSE STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF11;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008855;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF55;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(C>=持股線 AND C>=O,C,O,9,0),colorred;
STICKLINE(C>=持股線 AND C>=O,H,L,0,0),colorred;
Var11:=ZIG(3,6)>REF(ZIG(3,6),1)
AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2)
AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
Var12:=ZIG(3,6) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2)
AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
Var13:=ZIG(3,22)>REF(ZIG(3,22),1)
AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
Var14:=ZIG(3,22) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2)
AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
Var15:=ZIG(3,51)>REF(ZIG(3,51),1)
AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2)
AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
Var16:=ZIG(3,51) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2)
AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
Var17:=ZIG(3,72)>REF(ZIG(3,72),1)
AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
Var18:=ZIG(3,72) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)
AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
Var19:=EMA(C,2)-EMA(C,150);
買點1:=(Var11+Var13+Var15+Var17);
買點2:=(Var13+Var15+Var17);
賣點1:=(Var12+Var14+Var16+Var18);
賣點2:=(Var14+Var16+Var18);
STICKLINE( 買點1>0 ,H,L, 10,1),colorwhite,linethick1;STICKLINE( 買點1>0,O,C,6,0),colorwhite,linethick1;
STICKLINE( 買點2>0 ,H,L, 10,1),colorwhite,linethick1;STICKLINE( 買點2>0,O,C,6,0),colorred,linethick1;
STICKLINE( 賣點1>0,H,L, 11,5),colorblue,linethick1;STICKLINE( 賣點1>0,O,C,6,0),colorbrown,linethick1;
STICKLINE( 賣點2>0,H,L, 11,5),colorblue,linethick1;STICKLINE( 賣點2>0,O,C,6,0),colorwhite,linethick1;
DRAWTEXT(賣點2>0, H,’頂’),colorblue,linethick3;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
買賣差:=K-D;
BU:=CROSS(K,D);
多頭排列:=啟動>持股線 AND 啟動>長期線 AND 持股線>長期線;
買進價:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
攻擊:=BBI+3*STD(BBI,10),linethick1;
STICKLINE(1,C,O,0,0),colorwhite;
上線:=SMA(C,2.5,1);
下線:=SMA(C,6.5,1);
上線1:=SMA(C,6,2);
下線1:=SMA(C,8,2);
攻擊:BBI+3*STD(BBI,10),linethick1;
STICKLINE( 上線>下線 AND (CLOSE>攻擊),C,O,7,3),coloryellow;STICKLINE(上線>下線 AND (CLOSE>攻擊),H,L,1,2),coloryellow;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:MA(K,3);
金叉:=CROSS(K,50);
DRAWTEXT(金叉>0 AND K<80 AND K>D AND OPEN>牛熊線 ,LOW*0.942,’ 大膽作多’),colorred;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。