江恩角度線,也就是我們常說的甘氏角度線,是江恩理論中非常關(guān)鍵的一塊。它在股票市場里被廣泛使用,作為一種技術(shù)分析工具。這個工具通過一系列的角度線,幫助我們直觀地分析股票的走勢。江恩大師巧妙地把時(shí)間和價(jià)格這兩個維度通過角度線聯(lián)系起來,簡單來說,這些角度線就是支撐和阻力的體現(xiàn),能幫我們找到價(jià)格的支撐和阻力區(qū)間。 我過去在股市操作時(shí),對江恩角度線不太熟悉,也很少用。最近有朋友提到,江恩角度線的指標(biāo)公式用起來有點(diǎn)難,特別是它不能自動找到最高點(diǎn)和最低點(diǎn)。為了解決這個問題,我深入研究了江恩角度線的理論,并對我的指標(biāo)公式做了一些調(diào)整,讓它能自動找到高、低點(diǎn),并且還加入了江恩分割比率線和江恩箱這兩個功能。我把這個改進(jìn)后的指標(biāo)公式叫做《可調(diào)甘氏角》,現(xiàn)在分享給大家,希望對你們有所幫助! 這個指標(biāo)有三個主要功能: 可調(diào)角度線:分為上角度線和下角度線。你只需要按下Alt+T,彈出指標(biāo)參數(shù)調(diào)整窗口,在【天數(shù)】欄輸入你想要的時(shí)間區(qū)間(K線的數(shù)量),它就會自動找到這個區(qū)間的最高點(diǎn)和最低點(diǎn),然后自動顯示角度線。接著,你可以根據(jù)股票是上漲還是下跌,調(diào)整【上角度調(diào)整】或【下角度調(diào)整】的數(shù)值,讓黃色的角度線(1×1)移動到合適的位置。這樣一來,這些角度線就能作為股價(jià)的支撐和阻力界線了。 江恩分割比率線:這是一種基于8的分割法,把最高點(diǎn)和最低點(diǎn)分成0、1/8、2/8、3/8、4/8、5/8、7/8、8/8等幾個部分。這個指標(biāo)會根據(jù)你輸入的【天數(shù)】自動找到最高點(diǎn)和最低點(diǎn),然后計(jì)算出每個部分的數(shù)值,并在圖表上顯示出來。 江恩箱:通過調(diào)整【調(diào)點(diǎn)】,上角度線和下角度線可以組成一個箱體(箱體可以是上升趨勢或下降趨勢的)。同時(shí),你還需要調(diào)整上、下黃色角度線(1×1)到相應(yīng)的位置,讓它們交匯。江恩箱一旦生成,區(qū)間的壓力和支撐點(diǎn)就會自動顯示出來,不需要再調(diào)整角度線。 我知道這個指標(biāo)有很多線條,可能會讓人覺得有點(diǎn)亂。所以我在參數(shù)調(diào)整窗口設(shè)置了趨勢線開關(guān)、上角度線開關(guān)、下角度開關(guān)和分割比率開關(guān),你可以根據(jù)需要開啟或關(guān)閉這些功能。如果你是第一次使用這個指標(biāo),可能一開始會有點(diǎn)不知所措,但只要多看看使用說明,多練習(xí)幾次,很快就能掌握的。 天數(shù):=250;下角度調(diào)整:=70;上角度調(diào)整:=70;調(diào)點(diǎn):=3; 趨勢線開關(guān):=1;上角度線開關(guān):=1;下角度線開關(guān):=1;分割比率開關(guān):=1; A146:=REF(H,3)=HHV(H,2*6+1); B146:=FILTER(A146,3); C146:=BACKSET(B146,3+1); D146:=FILTER(C146,3+1); A189:=REF(L,3)=LLV(L,2*6+1); B189:=FILTER(A189,3+1); C189:=BACKSET(B189,3+1); D189:=FILTER(C189,3); E146:=(REF(LLV(L,2*3),1)+REF(HHV(H,2*3),1))/2; E189:=(H+L)/2; H146:=(D146 AND NOT(D189 AND E146>=E189)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1; L146:=(D189 AND NOT(D146 AND E146<E189)); H189:=D146 AND NOT(D189 AND E146>=E189); X146:=REF(BARSLAST(H146),1)+1; F146:=BACKSET(H146 AND COUNT(L146,X146)>0,LLVBARS(IF(L146,LOW,10000),X146)); G146:=F146>REF(F146,1); I146:=BACKSET(G146,2); LD:=I146>REF(I146,1); L189:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1; X189:=REF(BARSLAST(L189),1)+1; F189:=BACKSET(L189 AND COUNT(H189,X189)>0,HHVBARS(IF(H189,HIGH,0),X189)); G189:=F189>REF(F189,1); I189:=BACKSET(G189,2); HD:=I189>REF(I189,1); IF(趨勢線開關(guān)=1,DRAWLINE(LD,L,HD,H,0),DRAWNULL)LINETHICK1,DOTLINE,COLOR0000FF; IF(趨勢線開關(guān)=1,DRAWLINE(HD,H,LD,L,0),DRAWNULL)LINETHICK1,DOTLINE,COLOR00FF00; J146:=BACKSET(BARSTATUS=2 ,MIN(BARSLAST(HD),BARSLAST(LD))+1); J189:=J146>REF(J146,1); 走勢:=IF(趨勢線開關(guān)=1,DRAWLINE(J189,IF(HD,H,L),BARSTATUS=2,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),DRAWNULL),COLORYELLOW,DOTLINE; G:=CURRBARSCOUNT,NODRAW;
角度:=100; SX跌H:=CONST(HHV(H,天數(shù))),NODRAW; SX漲L:=CONST(LLV(L,天數(shù))),NODRAW; 漲點(diǎn):=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=SX漲L)+1)); 跌點(diǎn):=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=SX跌H)+1)); 最LLL:=IF(調(diào)點(diǎn)=1,跌點(diǎn),IF(調(diào)點(diǎn)=2,漲點(diǎn),IF(調(diào)點(diǎn)=3,漲點(diǎn),跌點(diǎn)))); L斜率:=IF(下角度線開關(guān)=1,下角度調(diào)整/IF(C<300,1000,10),DRAWNULL); 最HHH:=IF(調(diào)點(diǎn)=1,跌點(diǎn),IF(調(diào)點(diǎn)=2,漲點(diǎn),IF(調(diào)點(diǎn)=3,跌點(diǎn),漲點(diǎn)))); H斜率:=IF(上角度線開關(guān)=1,上角度調(diào)整/IF(C<300,1000,10),DRAWNULL); 天線:=SX跌H; 地線:=SX漲L; K:=(天線-地線)/(IF(跌點(diǎn)>=漲點(diǎn),跌點(diǎn),漲點(diǎn))-IF(跌點(diǎn)>=漲點(diǎn),漲點(diǎn),跌點(diǎn))); 上線:=IF(地線+CONST(L斜率*4.00)*最LLL>=地線,地線+CONST(L斜率*4.00)*最LLL,DRAWNULL); 上線0:=IF(地線+CONST(L斜率*2.00)*最LLL>=地線,地線+CONST(L斜率*2.00)*最LLL,DRAWNULL); 上線1:=IF(地線+CONST(L斜率*1.5)*最LLL>=地線,地線+CONST(L斜率*1.5)*最LLL,DRAWNULL); 上線2:=IF(地線+CONST(L斜率*1.00)*最LLL>=地線,地線+CONST(L斜率*1.000)*最LLL,DRAWNULL); 上線3:=IF(地線+CONST(L斜率*0.70)*最LLL>=地線,地線+CONST(L斜率*0.70)*最LLL,DRAWNULL); 上線4:=IF(地線+CONST(L斜率*0.50)*最LLL>=地線,地線+CONST(L斜率*0.50)*最LLL,DRAWNULL); 上線5:=IF(地線+CONST(L斜率*0.365)*最LLL>=地線,地線+CONST(L斜率*0.365)*最LLL,DRAWNULL); 上線6:=IF(地線+CONST(L斜率*0.250)*最LLL>=地線,地線+CONST(L斜率*0.250)*最LLL,DRAWNULL); 上線7:=IF(地線+CONST(L斜率*0.165)*最LLL>=地線,地線+CONST(L斜率*0.165)*最LLL,DRAWNULL); 上線8:=IF(地線+CONST(L斜率*0.123)*最LLL>=地線,地線+CONST(L斜率*0.123)*最LLL,DRAWNULL); 上線9:=IF(地線+CONST(L斜率*0.06)*最LLL>=地線,地線+CONST(L斜率*0.06)*最LLL,DRAWNULL); 上9:IF(上線9<=天線*1.05,上線9,DRAWNULL),COLORAA00AA,COLORRED; 上8:IF(上線8<=天線*1.05,上線8,DRAWNULL),COLORAA00AA,COLORRED; 上7:IF(上線7<=天線*1.05,上線7,DRAWNULL),COLORAA00AA,COLORRED; 上6:IF(上線6<=天線*1.05,上線6,DRAWNULL),COLORAA00AA,COLORRED; 上5:IF(上線5<=天線*1.05,上線5,DRAWNULL),COLORAA00AA,COLORRED; 上4:IF(上線4<=天線*1.05,上線4,DRAWNULL),COLOR0000FF,COLORYELLOW; 上3:IF(上線3<=天線*1.05,上線3,DRAWNULL),COLORAA00AA,COLORRED; 上2:IF(上線2<=天線*1.05,上線2,DRAWNULL),COLORAA00AA,COLORRED; 上1:IF(上線1<=天線*1.05,上線1,DRAWNULL),COLORAA00AA,COLORRED; 上0:IF(上線0<=天線*1.05,上線0,DRAWNULL),COLORAA00AA,COLORRED; 上:IF(上線<=天線*1.05,上線,DRAWNULL),COLORAA00AA,COLORRED; 下線:=IF(天線-CONST(H斜率*4.00)*最HHH<=天線,天線-CONST(H斜率*4.00)*最HHH,DRAWNULL); 下線0:=IF(天線-CONST(H斜率*2.00)*最HHH<=天線,天線-CONST(H斜率*2.00)*最HHH,DRAWNULL); 下線1:=IF(天線-CONST(H斜率*1.500)*最HHH<=天線,天線-CONST(H斜率*1.500)*最HHH,DRAWNULL); 下線2:=IF(天線-CONST(H斜率*1.000)*最HHH<=天線,天線-CONST(H斜率*1.000)*最HHH,DRAWNULL); 下線3:=IF(天線-CONST(H斜率*0.70)*最HHH<=天線,天線-CONST(H斜率*0.70)*最HHH,DRAWNULL); 下線4:=IF(天線-CONST(H斜率*0.50)*最HHH<=天線,天線-CONST(H斜率*0.50)*最HHH,DRAWNULL); 下線5:=IF(天線-CONST(H斜率*0.365)*最HHH<=天線,天線-CONST(H斜率*0.365)*最HHH,DRAWNULL); 下線6:=IF(天線-CONST(H斜率*0.250)*最HHH<=天線,天線-CONST(H斜率*0.250)*最HHH,DRAWNULL); 下線7:=IF(天線-CONST(H斜率*0.165)*最HHH<=天線,天線-CONST(H斜率*0.165)*最HHH,DRAWNULL); 下線8:=IF(天線-CONST(H斜率*0.123)*最HHH<=天線,天線-CONST(H斜率*0.123)*最HHH,DRAWNULL); 下線9:=IF(天線-CONST(H斜率*0.06)*最HHH<=天線,天線-CONST(H斜率*0.06)*最HHH,DRAWNULL); 下9:IF(下線9>=地線*0.95,下線9,DRAWNULL),COLORAAAAAA,COLORGREEN; 下8:IF(下線8>=地線*0.95,下線8,DRAWNULL),COLORAAAAAA,COLORGREEN; 下7:IF(下線7>=地線*0.95,下線7,DRAWNULL),COLORAAAAAA,COLORGREEN; 下6:IF(下線6>=地線*0.95,下線6,DRAWNULL),COLORAAAAAA,COLORGREEN; 下5:IF(下線5>=地線*0.95,下線5,DRAWNULL),COLORAAAAAA,COLORGREEN; 下4:IF(下線4>=地線*0.95,下線4,DRAWNULL),COLOR0000FF,COLORYELLOW; 下3:IF(下線3>=地線*0.95,下線3,DRAWNULL),COLORAAAAAA,COLORGREEN; 下2:IF(下線2>=地線*0.95,下線2,DRAWNULL),COLORAAAAAA,COLORGREEN; 下1:IF(下線1>=地線*0.95,下線1,DRAWNULL),COLORAAAAAA,COLORGREEN; 下0:IF(下線0>=地線*0.95,下線0,DRAWNULL),COLORAAAAAA,COLORGREEN; 下:IF(下線>=地線*0.95,下線,DRAWNULL),COLORAAAAAA,COLORGREEN; HHH:=IF(分割比率開關(guān)=1,REFDATE(HHV(H,天數(shù)),DATE),DRAWNULL); LLL:=IF(分割比率開關(guān)=1,REFDATE(LLV(L,天數(shù)),DATE),DRAWNULL); H1:=HHH-(HHH-LLL)*0.125; H2:=HHH-(HHH-LLL)*0.250; H3:=HHH-(HHH-LLL)*0.375; H4:=HHH-(HHH-LLL)*0.500; H5:=HHH-(HHH-LLL)*0.625; H6:=HHH-(HHH-LLL)*0.750; H7:=HHH-(HHH-LLL)*0.875; HHH位:REFDATE(HHH,DATE),COLORMAGENTA,CIRCLEDOT,LINETHICK1; GA1:REFDATE(H7,DATE),COLORRED,DOTLINE,LINETHICK1; GA2:REFDATE(H6,DATE),COLORLIRED,DOTLINE,LINETHICK1; GA3:REFDATE(H5,DATE),COLORGREEN,DOTLINE,LINETHICK1; GA4:REFDATE(H4,DATE),COLORYELLOW,LINETHICK1; GA5:REFDATE(H3,DATE),COLORGREEN,DOTLINE,LINETHICK1; GA6:REFDATE(H2,DATE),COLORYELLOW,DOTLINE,LINETHICK1; GA7:REFDATE(H1,DATE),COLORRED,DOTLINE,LINETHICK1; LLL位:REFDATE(LLL,DATE),COLORGREEN,CIRCLEDOT,LINETHICK1; DRAWTEXT(CURRBARSCOUNT=1,HHH*0.995,'(HHH)'),COLORRED; DRAWTEXT(CURRBARSCOUNT=1,H1,'(7/8)'),DRAWABOVE,COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=1,H2,'(6/8)'),DRAWABOVE,COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=1,H3,'(5/8)'),DRAWABOVE,COLORCYAN; DRAWTEXT(CURRBARSCOUNT=1,H4,'(4/8)'),DRAWABOVE,COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1,H5,'(3/8)'),DRAWABOVE,COLORLIRED; DRAWTEXT(CURRBARSCOUNT=1,H6,'(2/8)'),DRAWABOVE,COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=1,H7,'(1/8)'),DRAWABOVE,COLORWHITE; DRAWTEXT(CURRBARSCOUNT=1,LLL,'(LLL)'),DRAWABOVE,COLORGREEN; DRAWTEXT(CURRBARSCOUNT=10,HHH*0.99,CON2STR(HHH,2)),DRAWABOVE,COLORRED; DRAWTEXT(CURRBARSCOUNT=10,H1,CON2STR(H1,2)),DRAWABOVE,COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=10,H2,CON2STR(H2,2)),DRAWABOVE,COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=10,H3,CON2STR(H3,2)),DRAWABOVE,COLORCYAN; DRAWTEXT(CURRBARSCOUNT=10,H4,CON2STR(H4,2)),DRAWABOVE,COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=10,H5,CON2STR(H5,2)),DRAWABOVE,COLORLIRED; DRAWTEXT(CURRBARSCOUNT=10,H6,CON2STR(H6,2)),DRAWABOVE,COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=10,H7,CON2STR(H7,2)),DRAWABOVE,COLORWHITE; DRAWTEXT(CURRBARSCOUNT=10,LLL*1.003,CON2STR(LLL,2)),DRAWABOVE,COLORGREEN; DRAWNUMBER(趨勢線開關(guān)=1 AND HD,H,G),COLORLIRED,DRAWABOVE; DRAWNUMBER(趨勢線開關(guān)=1 AND LD,L,G),COLORFFFF00; STICKLINE(C>=O,C,O,3,0),COLOR000045; STICKLINE(C>=O,C,O,2.5,0),COLOR000065; STICKLINE(C>=O,C,O,2,0),COLOR000085; STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5; STICKLINE(C>=O,C,O,1,0),COLOR0000C5; STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5; STICKLINE(C>=O,H,L,0,0),COLOR0000F5; STICKLINE(C<O,C,O,3,0),COLOR353500; STICKLINE(C<O,C,O,2.5,0),COLOR454500; STICKLINE(C<O,C,O,2,0),COLOR555500; STICKLINE(C<O,C,O,1.5,0),COLOR656500; STICKLINE(C<O,C,O,1,0),COLOR757500; STICKLINE(C<O,C,O,0.5,0),COLOR858500; STICKLINE(C<O,H,L,0,0),COLOR959500; DRAWTEXT(上線9<=天線*1.05 AND CURRBARSCOUNT=30,上線9,'8X1'),COLORYELLOW; DRAWTEXT(上線8<=天線*1.05 AND CURRBARSCOUNT=30,上線8,'4X1'),COLORYELLOW; DRAWTEXT(上線7<=天線*1.05 AND CURRBARSCOUNT=30,上線7,'3X1'),COLORYELLOW; DRAWTEXT(上線6<=天線*1.05 AND CURRBARSCOUNT=30,上線6,'2X1'),COLORYELLOW; DRAWTEXT(上線5<=天線*1.05 AND CURRBARSCOUNT=30,上線5,'3X2'),COLORYELLOW; DRAWTEXT(上線4<=天線*1.05 AND CURRBARSCOUNT=30,上線4,'1X1'),COLORYELLOW; DRAWTEXT(上線3<=天線*1.05 AND CURRBARSCOUNT=30,上線3,'2X3'),COLORYELLOW; DRAWTEXT(上線2<=天線*1.05 AND CURRBARSCOUNT=30,上線2,'1X2'),COLORYELLOW; DRAWTEXT(上線1<=天線*1.05 AND CURRBARSCOUNT=30,上線1,'1X3'),COLORYELLOW; DRAWTEXT(上線0<=天線*1.05 AND CURRBARSCOUNT=30,上線0,'1X4'),COLORYELLOW; DRAWTEXT(上線<=天線*1.05 AND CURRBARSCOUNT=30,上線,'1X8'),COLORYELLOW; DRAWTEXT(下線9>=地線*0.95 AND CURRBARSCOUNT=20,下線9,'8X1'),COLORWHITE; DRAWTEXT(下線8>=地線*0.95 AND CURRBARSCOUNT=20,下線8,'4X1'),COLORWHITE; DRAWTEXT(下線7>=地線*0.95 AND CURRBARSCOUNT=20,下線7,'3X1'),COLORWHITE; DRAWTEXT(下線6>=地線*0.95 AND CURRBARSCOUNT=20,下線6,'2X1'),COLORWHITE; DRAWTEXT(下線5>=地線*0.95 AND CURRBARSCOUNT=20,下線5,'3X2'),COLORWHITE; DRAWTEXT(下線4>=地線*0.95 AND CURRBARSCOUNT=20,下線4,'1X1'),COLORWHITE; DRAWTEXT(下線3>=地線*0.95 AND CURRBARSCOUNT=20,下線3,'2X3'),COLORWHITE; DRAWTEXT(下線2>=地線*0.95 AND CURRBARSCOUNT=20,下線2,'1X2'),COLORWHITE; DRAWTEXT(下線1>=地線*0.95 AND CURRBARSCOUNT=20,下線1,'1X3'),COLORWHITE; DRAWTEXT(下線0>=地線*0.95 AND CURRBARSCOUNT=20,下線0,'1X4'),COLORWHITE; DRAWTEXT(下線>=地線*0.95 AND CURRBARSCOUNT=20,下線,'1X8'),COLORWHITE; |
|