【同花順】趨勢(shì)頂?shù)捉鸩嬷笜?biāo)公式
攻城獅 2015.11.08 00:12
龍值:100-100*(HHV(HIGH,5*8)-CLOSE)/(HHV(HIGH,5*8)-LLV(LOW,5*8)),DOTLINE,LineThick1;
A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
長(zhǎng)期線:A+100,colorcyan,LINETHICK2;
短期線:B+100,colormagenta;
中期線:D+100,coloryellow,LINETHICK2;
變速率:(中期線-長(zhǎng)期線),COLORSTICK;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:3*K-2*D,colorwhite;
VARC:=(2*C+H+L)/4;
VARE:=LLV(L,26);
VAR11:=HHV(H,34);
VAR12:=EMA((VARC-VARE)/(VAR11-VARE)*100,16);
VAR13:=EMA(VAR12,4);
壓力線:IF(35+EMA(VAR13,80)<100,35+EMA(VAR13,80),100),ColorD98719,LineThick2;
中短50買(mǎi):中期線>=短期線+50;
DRAWICON(中短50買(mǎi),-5,1);
DRAWTEXT(中短50買(mǎi),-10,’五買(mǎi)’),coloryellow;
中短50買(mǎi)長(zhǎng):(中短50買(mǎi) AND 中期線>=長(zhǎng)期線);
DRAWICON(中短50買(mǎi)長(zhǎng),110,7);
DRAWTEXT(中短50買(mǎi)長(zhǎng),115,’五長(zhǎng)’),coloryellow;
中短50賣(mài):短期線>=中期線+50;
DRAWICON(中短50賣(mài),110,5);
DRAWTEXT(中短50賣(mài),115,’五賣(mài)’),coloryellow;
多:SUM(IF(變速率>0,變速率*1.003,變速率*1.003>0),34)/34,colormagenta;
空:SUM(IF(變速率<=0,變速率*0.97,變速率*0.97<0),34)/34,colorgreen;
見(jiàn)頂:=((REF(中期線,1)>85 AND REF(短期線,1)>85 AND REF(長(zhǎng)期線,1)>65) AND CROSS(長(zhǎng)期線,短期線));
頂部區(qū)域:(中期線80) AND (REF(短期線,1)>95 OR REF(短期線,2)>95 ) AND 長(zhǎng)期線>60 AND 短期線<83.5
AND 短期線<中期線 AND 短期線<長(zhǎng)期線+4,colorgreen;
頂部:=FILTER(頂部區(qū)域,4);
STICKLINE(頂部,99,103,20,1 ),colorred,LINETHICK2;
底部區(qū)域:(長(zhǎng)期線<12 AND 中期線<8 AND (短期線<7.2 OR REF(短期線,1)<5) AND (中期線>REF(中期線,1) OR 短期線>REF(短期線,1)))
OR (長(zhǎng)期線<8 AND 中期線<7 AND 短期線<15 AND 短期線>REF(短期線,1)) OR (長(zhǎng)期線<10 AND 中期線<7 AND 短期線<1) ,colorgreen;
STICKLINE( 底部區(qū)域,-4,0,22,0 ),colorgreen;
低位金叉:50*(長(zhǎng)期線<15 AND REF(長(zhǎng)期線,1)<15 AND 中期線<18 AND 短期線>REF(短期線,1) AND CROSS(短期線,長(zhǎng)期線) AND 短期線>中期線
AND (REF(短期線,1)<5 OR REF(短期線,2)<5 ) AND (中期線>=長(zhǎng)期線 OR REF( 短期線,1)<1 )),colorred;
STICKLINE( 低位金叉,0,5,11,0 ),colorred;
短買(mǎi):CROSS(短期線,中期線);
短買(mǎi)長(zhǎng):短買(mǎi) AND 中期線>=長(zhǎng)期線;
STICKLINE(短買(mǎi)長(zhǎng),105,110,8,0 ),ColorD98719;
短60買(mǎi):短期線<=REF(短期線,1)-60;
DRAWICON(短60買(mǎi),80,3);
DRAWTEXT(短60買(mǎi),75,’六買(mǎi)’),coloryellow;
短60買(mǎi)長(zhǎng):短60買(mǎi) AND 中期線>=長(zhǎng)期線;
DRAWICON(短60買(mǎi)長(zhǎng),88,1);
DRAWTEXT(短60買(mǎi)長(zhǎng),93,’六長(zhǎng)’),coloryellow;
短60賣(mài):短期線>=REF(短期線,1)+60;
DRAWICON(短60賣(mài),96,2);
DRAWTEXT(短60賣(mài),90,’六賣(mài)’),coloryellow;
STICKLINE(CROSS(中期線,長(zhǎng)期線),95,103,8,0 ),colorcyan;
STICKLINE(CROSS(長(zhǎng)期線,中期線),95,103,8,0 ),coloryellow;
STICKLINE(CROSS(中期線,壓力線),95,103,8,0 ),colorred;
MACD2:=變速率;
DIF:=中期線;
DEA:=長(zhǎng)期線;
STICKLINE(MACD2>=0 AND MACD2>REF(MACD2,1),0,MACD2,8,1),colorblue;
STICKLINE(MACD2>=0 AND MACD2 STICKLINE(MACD2<0 AND MACD2 STICKLINE(MACD2<0 AND MACD2>REF(MACD2,1),0,MACD2,8,1),colormagenta;
建倉(cāng):IF(DIF<0,DIF,0),coloryellow,LINETHICK2;
加倉(cāng):IF(DIF<0,0,DIF),colormagenta,LINETHICK2;
白線破倉(cāng):IF(DIF趨勢(shì)強(qiáng)弱:IF(DIF>DEA,DEA,DEA),Color32CD99,LINETHICK2;
TJ:=MACD2>0;T:=MACD2<0;
DRAWTEXT(BARSLAST(TJ)=1,MACD2,’1′),coloryellow;
DRAWTEXT(BARSLAST(TJ)=2,MACD2,’2′),coloryellow;
DRAWTEXT(BARSLAST(TJ)=3,MACD2,’3′),coloryellow;
DRAWTEXT(BARSLAST(TJ)=5,MACD2,’5′),coloryellow;
DRAWTEXT(BARSLAST(TJ)=8,MACD2,’8′),coloryellow;
DRAWTEXT(BARSLAST(TJ)=13,MACD2,’13’),coloryellow;
DRAWTEXT(BARSLAST(TJ)=21,MACD2,’21’),coloryellow;
DRAWTEXT(BARSLAST(TJ)=34,MACD2,’34’),coloryellow;
DRAWTEXT(BARSLAST(TJ)=55,MACD2,’55’),coloryellow;
DRAWTEXT(BARSLAST(T)=1,MACD2,’1′),colorgreen;
DRAWTEXT(BARSLAST(T)=2,MACD2,’2′),colorgreen;
DRAWTEXT(BARSLAST(T)=3,MACD2,’3′),colorgreen;
DRAWTEXT(BARSLAST(T)=5,MACD2,’5′),colorgreen;
DRAWTEXT(BARSLAST(T)=8,MACD2,’8′),colorgreen;
DRAWTEXT(BARSLAST(T)=13,MACD2,’13’),colorgreen;
DRAWTEXT(BARSLAST(T)=21,MACD2,’21’),colorgreen;
DRAWTEXT(BARSLAST(T)=34,MACD2,’34’),colorgreen;
DRAWTEXT(BARSLAST(T)=55,MACD2,’55’),colorgreen;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.guangshenggb.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。