K線重心趨勢的變化可以從K線重心,上漲下跌變化,K線帶帽已見頂,腳底穿鞋正在跌,金黃K線轉(zhuǎn)向升,白色K線轉(zhuǎn)向跌等7個方面進行細說:
1、K線重心
DRAWGBKlast(c>0,strip(RGB(0,0,0),RGB(60,0,80),0));
HL8:(MA(H,8)+MA(L,8))/2,COLOR00ff00,LINETHICK1;
MC8:EMA(C,8),COLOR0000ff,LINETHICK1;
fillrgn(HL8,MC8,HL8
2、K線正常的上漲形態(tài)
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000ff;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5,0 ),COLOR0000ff;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR0000bb;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR0000cc;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR0000dd;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000ee;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000ff;
3、K線正常下跌走勢
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5,0 ),COLORffFF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5,0 ),COLORffff00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLORff7700;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORff9900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORffbb00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffcc00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffdd00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffee00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffFF00;
4、K線帶帽已見頂
中:EMA(CLOSE,55),color999999,LINETHICK0;
頂:中*1.1,POINTDOT,COLORFF9900,LINETHICK3;
stickline((CLOSE >= 頂),H ,H*1.003,4,0),color00ffff;
5、腳底穿鞋正在跌
買:=EMA(C,3);
賣:=EMA(SLOPE(C,21)*21+C,43);
stickline(買<賣,L ,L*0.997,4,0),color00FF00;
6、金黃K線轉(zhuǎn)向升
STICKLINE(cross(買,賣) ,CLOSE ,OPEN,6,0),COLOR0099ff,LAYER0;
STICKLINE(cross(買,賣),LOW,HIGH,2,0 ),COLOR0099ff;
7、白色K線轉(zhuǎn)向跌
STICKLINE(cross(賣,買),CLOSE ,OPEN,6,0),COLORFFFFFF,LAYER0;
STICKLINE(cross(賣,買),LOW,HIGH,2,0 ),COLOR00FFff;
DRAWTEXTABS(0,5,'【1】頭頂帶帽已見頂'),Color00ffff,LINETHICK2;
DRAWTEXTABS(140,5,'【2】腳底穿鞋跌勢'),Color00ff00,LINETHICK2;
DRAWTEXTABS(0,25,'【3】金黃K線轉(zhuǎn)向升'),Color0099ff,LINETHICK2;
DRAWTEXTABS(140,25,'【4】白色K線轉(zhuǎn)向跌'),ColorFFffff,LINETHICK2;
X:=BARSLAST(DISPSTATUS=1)+1;
P:=BACKSET(DISPSTATUS=2,X/2+1);
K:=BARSLAST(CROSS(P,0.5))+1;
KJ:=HHVALL(HIGH)-LLVALL(LOW);
平衡:=IF(K>=0,LLVALL(LOW)+KJ/2,0);
壓力:=IF(K>=0,HHVALL(HIGH)-KJ*0.191,平衡);
支撐:=IF(K>=0,LLVALL(LOW)+KJ*0.191,平衡);
DRAWRECTABS(280,1,300+(HHVALL(HIGH))*300/C ,80 ,rgb(0,0,255)),Color0000FF,LINETHICK2,LAYER3;
DRAWRECTABS(285,4,300+(壓力)*300/C ,70 ,rgb(140,0,60)),Color99FF99,LAYER2;
DRAWRECTABS(290,7,300+(平衡)*300/C ,60 ,rgb(0,120,0)),Colorff00FF,LAYER1;
DRAWRECTABS(295,10,300+(支撐)*300/C ,50 ,rgb(80,0,80)),Color00ffFF,LAYER0;
DRAWRECTABS(300,21,300+(C)*300/C ,39 ,rgb(10,10,10)),Color0077FF,LINETHICK1,LAYER0;
DRAWTEXTABS(270,90,'【支撐 '+NUMTOSTRn(支撐,2)+' 元】'),Color00FFff,LINETHICK2,LAYER0;
DRAWTEXTABS(405,90,'【平衡 '+NUMTOSTRn(平衡,2)+' 元】'),Color44FF99,LINETHICK2,LAYER0;
DRAWTEXTABS(540,90,'【壓力 '+NUMTOSTRn(壓力,2)+' 元】'),Color0044FF,LINETHICK2,LAYER0;
DRAWTEXTABS(320,23,'【四區(qū)周期:--→ '+K+'天】'),Color00FFFF,LINETHICK2,LAYER0;
通過以上7個方面的分析研究,可以看出個股走勢的支撐點位、平衡、壓力的變化,希望投資者能夠把握其中的操作機會。
如圖在平安銀行中的K線走勢,出現(xiàn)了最基礎(chǔ)的四種K線變化趨勢,同樣在四區(qū)周期的時間是231天,支撐是在10.67元,平衡的點位是在14.16元。
本文通過一則實例講解了股市中的K線重心趨勢的股票公式源碼,如果您還想要了解更加專業(yè)的技術(shù)分析形態(tài),請點擊:ACD升降線指標。
上一篇:簡單解說籌碼買賣主圖源碼公
下一篇:不同漲停板的選股指標公式源
服務中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:www74.com.cn
銷售熱線:0371-65350319
技術(shù)支持:13333833889