【龍宮頂?shù)住?/p>
適合于短線、中線、中長線以及長線的操作范圍,通過頂?shù)椎难信校蹲椒磸椧约安僮鞯淖罴褭C會,具體的源碼公式如下:
VAR1:=MA(CLOSE,27);
VAR2:=(CLOSE-VAR1)/VAR1*100;
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
VARA:=MA(VAR2,2);
VARB:=BARSLAST(CROSS(-10,VARA)=1);
VARC:=BARSLAST(CROSS(VARA,10)=1);
VARD:=VARA<-10 AND VARB>3;
VARE:=VARA>10 AND VARC>3;
短線:SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;
中線:SMA(RSV2,5,1)+2*STD(CLOSE,37),COLORRED;
中長線:=-100*(HHV(HIGH,40)-CLOSE)/(HHV(HIGH,40)-LLV(LOW,40));
長線:SMA(RSV3,5,1),COLORYELLOW;
看底:STICKLINE(中線<15,中線,15,6,0),COLORF00FF0;
黃金:STICKLINE(短線<20 AND 中線<20 AND 長線<20,MAX(長線,MAX(短線,中線)),20,3,0),COLOR00CCFF;
看頂:STICKLINE(中線>80,80,中線,3,0),COLORFFF000;
DRAWICON(CROSS(長線,15),中線,1);
DRAWTEXT(LONGCROSS(中線,20,15),20,'反彈');
DRAWTEXT(CROSS(短線,長線)AND 長線<18 AND 長線>REF(長線,1)OR CROSS(長線,5),20,'絕佳機會'),COLORYELLOW;
底:DRAWTEXT(CROSS(中長線,-90) AND (長線<中線 AND 長線>REF(長線,1)OR 短線<20 AND 中線<20 AND 長線 <20),長線,'底'),COLORFF00FF;
DR:=IF(COUNT(CROSS(中長線,-90),12)=3,30,5);
KH1:=IF(VARD,VARA,0);
KH2:=REF(KH1,1)<0;
龍宮藏寶:短線<20 AND 中線<20 AND 長線<20;
天宮藏寶:中線>80 AND 中線>80 AND 長線>80;
觸底:CROSS(中長線,-90) AND (長線<中線 AND 長線>REF(長線,1)OR 短線<20 AND 中線<20 AND 長線 <20);
反彈:LONGCROSS(中線,20,15) OR CROSS(長線,15);
絕佳機會:CROSS(短線,長線)AND 長線<18 AND 長線>REF(長線,1)OR CROSS(長線,5),COLORYELLOW;
如圖全新好的股價K線走勢,從最低點15.50元開始拉升上漲,到28.65元見頂,在龍宮頂?shù)字笜酥卸加胁煌伾珔^(qū)域的標注,投資者可以在底部積極的介入,在頂部進行賣出獲利。
【尖頂針】
通過不同通道的走勢變化,提示買賣點的位置,并進行持股分析,具體的源碼公式:
VAR1:=1;
VAR2:=REF(CLOSE-OPEN, 2);
VAR3:=REF(CLOSE, 1);
VAR4:=REF(CLOSE, 2);
VAR5:=REF(CLOSE, 3);
VAR6:=REF(CLOSE, 4);
VAR7:=MAX(MAX(MAX(CLOSE, VAR3), VAR4), VAR5);
VAR8:=MIN(MIN(MIN(CLOSE, VAR3), VAR4), VAR5);
{紅持股:STICKLINE(CLOSE=VAR7 AND (VAR3>=VAR4 OR VAR3>=VAR5) OR VAR3=VAR7 AND (VAR4=VAR8 OR VAR5=VAR8) AND CLOSE>=VAR4 OR VAR4=VAR7 AND VAR5=VAR8 AND CLOSE>=VAR3 OR VAR5=VAR7 AND CLOSE>=VAR3 AND CLOSE>=VAR4, VAR3, CLOSE, 5, 1), COLORRED;}
{品紅變盤:STICKLINE(CLOSE=VAR7 AND VAR3=VAR8, VAR4, CLOSE, 5, 1), COLORMAGENTA;}
{黃下跌:STICKLINE(CLOSE=VAR8 AND (VAR3
{綠買:STICKLINE(VAR3=VAR7 AND CLOSE=VAR8, VAR4, CLOSE, 5, 0), COLORGREEN;}
{STICKLINE(VAR3=VAR8 AND CLOSE>=VAR4 OR (VAR4=VAR8 AND VAR3<=VAR5 OR VAR5=VAR8 AND VAR3<=VAR4) AND VAR4
藍賣:STICKLINE(VAR3=VAR7 AND CLOSE
VAR9:=SAR(5, 1, 5);
VAR10:=EMA(CLOSE, 30);
VAR11:=IF(CLOSE>450, 8, IF(CLOSE>=20 AND CLOSE<150, 0.200, IF(CLOSE<20 AND CLOSE>=10, 0.070, IF(CLOSE<10, 0.030, 0.070))));
{變色龍:STICKLINE(CLOSE>VAR9, VAR10, VAR10+VAR11, 6, 0), COLORMAGENTA;}
STICKLINE(CLOSE
STICKLINE(CROSS(CLOSE, VAR9), VAR10, VAR10-VAR11, 6, 0);
STICKLINE(CROSS(VAR9, CLOSE), VAR10, VAR10+VAR11, 6, 0), COLORFF0066;
STICKLINE(RANGE(DAY, 6, 9) OR RANGE(DAY, 27, 30), VAR10+0.010, VAR10-0.010, 6, 0), COLORYELLOW;
VAR22:=MA(LLV(CLOSE,9)*1.1,14)*1;
VAR33:=MA(HHV(CLOSE,26)*0.9,14)*1;
VAR55:=EMA((HIGH+LOW+CLOSE)/3,3);
VARB:=AMOUNT/(100*VOL);
VARC:=MA(VARB,34);
VARD:=MA(CLOSE,26);
通道: (VARD+VARC)/2, POINTDOT, COLORYELLOW;
阻力: VARD+2*STD(CLOSE,34),LINETHICK2 , COLORGREEN;
支持: (VARD-2*STD(CLOSE,26)),LINETHICK2 , COLORGREEN;
VARE:=MA(WINNER(CLOSE),34)*100;
警: DRAWTEXT(VARE>60 AND HIGH>阻力,HIGH,'★警'), COLORYELLOW;
突破:DRAWTEXT(VARE<15 AND CROSS(VAR55,通道),LOW,'★突破'), COLORAAAAAA;
MA5:MA(C,5);
BB5:=MA5-REF(MA5,1);
MA10:MA(C,10);
BB10:=MA10-REF(MA10,1);
MA20:=EMA(C,20);
A1:=FILTER(MA5>REF(MA5,1)AND MA10>REF(MA10,1)AND MA20>REF(MA20,1)AND MA5
A2:=(2*C+H+L+O)/5;
A3:=LLV(L,5);
A4:=HHV(H,4);
A5:=EMA((A2-A3)/(A4-A3)*100,4);
A6:=EMA(0.667*REF(A5,1)+0.333*A5,2);
A7:=EMA(A2,13)-EMA(A2,34);
A8:=EMA(A7,5); A9:=(-2)*(A7-A8)*3.8;
DRAWTEXT(CROSS(A5,A6)AND A1<40,L-0.08,' 買'),COLORYELLOW;
DRAWTEXT(CROSS(A9,MA(A9,3))AND(A7>A8),H+0.08,' 賣'),COLORGREEN;
依據(jù)源碼進行分析,當(dāng)翻紅的時候繼續(xù)持股,黃色是下跌的信號,此外還要分析阻力與支撐的變化,具體的實戰(zhàn)案例,如圖平安銀行的走勢形態(tài),從8.52元開始拉升,在9.80元階段見頂,是賣出的信號,要及時的賣出獲利。
本文通過兩則實例講解了股市中捕捉頂?shù)椎凝垖m頂?shù)字笜伺c尖頂針指標的主圖公式源碼,如果您還想要了解更加專業(yè)的技術(shù)形態(tài)分析,請點擊梯量柱選股公式,進行選股知識的相關(guān)學(xué)習(xí)和了解。http://www.xinsheng8.com/xgjq/2015-11-01/23586.html
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:www.xinsheng8.com
銷售熱線:0371-65350319
技術(shù)支持:13333833889