对于学习
江恩理论的朋友,大多了解
江恩八线,这个工具是殷保华先生根据自身实战经验总结出的一套均线分析系统,有八条线,故称之为江恩八线。虽然创作者在实战分析的时候有对
江恩理论的运用,但是该指标却和江恩理论是没有太大关系的,投资者应该要了解这样的一个情况。鉴于江恩八线对于股票的买卖把握可以起到一定的参考作用,也有不少的投资者在学习的时候对其进行了修正,今天笔者就将网上常见的几种代码及相对应的效果图展示给大家。第一种:代码:大盘:=EMA(INDEXC,500)/EMA(C,500);大盘线:=INDEXC/大盘,LINETHICK1,COLORBLUE;工作线:EMA(C,14),COLOR00FFFF,LINETHICK1;一号线:EMA(CLOSE,144),LINETHICK1,COLORMAGENTA;二号线:EMA(C,25),COLORWHITE,LINETHICK2;三号线:EMA(C,318),COLOR0000FF,LINETHICK2;四黑码线:EMA(C,453),CIRCLEDOT,LINETHICK1,COLOR428899;五号线:EMA(C,550),COLORFFCC66;六号线:EMA(C,610),LINETHICK2,COLORYELLOW;七号线:EMA(C,730),COLORBLUE;八号线:EMA(C,99),LINETHICK1,COLORGREEN;DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)),COLORWHITE;DEA:=EMA(DIFF,9),COLORF00FF0 ;MACD:=0.90*(DIFF-DEA), COLORSTICK;TJ:=(DIFF>=DEA);TJ1:=(DIFF>=0);{STICKLINE(TJ,H,L,0,0),COLORYELLOW;}STICKLINE(TJ,O,C,3,1),COLORYELLOW;STICKLINE(TJ1 AND TJ,H,L,0,1),COLORF00FF0;STICKLINE(TJ1 AND TJ,O,C,3,1),COLORF00FF0;STICKLINE(DIFF<DEA,H,L,0,0),COLORF0F000;STICKLINE(DIFF<DEA,O,C,3,1),COLORF0F000;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);{DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,短线),COLORFF66FF;}STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0,0),COLORRED;STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,3,0),LINETHICK3,COLORRED;SS:=CROSS(二号线,八号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98OR CROSS(二号线,三号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98OR CROSS(二号线,一号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98{AND CROSS(二号线,三号线)};{DRAWICON(SS,L-0.04,1);}DD:=CROSS(八号线,一号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98OR CROSS(八号线,四黑码线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98OR CROSS(八号线,三号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98OR CROSS(八号线,三号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98 AND CROSS(二号线,四黑码线);效果图:
第二种:代码:一号:EMA(CLOSE,144)COLORGREEN;工作:EMA(CLOSE,14),COLORGREEN;二号:EMA(CLOSE,25)COLORGREEN;三号:=EMA(CLOSE,318)COLORGREEN;生命:EMA(CLOSE,453),CIRCLEDOT,COLORGREEN;五号:=EMA(CLOSE,550);六号:=EMA(CLOSE,610);七号:=EMA(CLOSE,730);八号:=EMA(CLOSE,888);九号:EMA(CLOSE,99),COLORGREEN,CROSSDOT;A1X:(工作-REF(工作,1))/REF(工作,1)*100,NODRAW;A2X:(生命-REF(生命,1))/REF(生命,1)*100,NODRAW;A3X:(一号-REF(一号,1))/REF(一号,1)*100,NODRAW;A4X:(九号-REF(九号,1))/REF(九号,1)*100,NODRAW;IF(A1X>=0,工作,DRAWNULL),COLORRED,LINETHICK2;IF(A2X>=0,生命,DRAWNULL),COLORRED,CIRCLEDOT;IF(A3X>=0,一号,DRAWNULL),COLORRED,LINETHICK2;IF(A4X>=0,九号,DRAWNULL),COLORRED,CROSSDOT;效果图:
第三种:代码:一号线:EMA(CLOSE,144);工作线:EMA(CLOSE,14),COLORRED;二号线:EMA(CLOSE,25);三号线:EMA(CLOSE,318);生命线:EMA(CLOSE,453),COLORRED,LINETHICK2;五号线:EMA(CLOSE,550);六号线:EMA(CLOSE,610);七号线:EMA(CLOSE,730);八号线:EMA(CLOSE,888);九号线:EMA(CLOSE,99),COLORGREEN;DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));DEA:=EMA(DIFF,9);MACD:=0.90*(DIFF-DEA);TJ:=(DIFF>=DEA);TJ1:=(DIFF>=0);STICKLINE(TJ,H,L,0.5,0),COLORYELLOW;STICKLINE(TJ,O,C,4,0),COLORYELLOW;STICKLINE(TJ1 AND TJ,H,L,0.5,0),COLORF00FF0;STICKLINE(TJ1 AND TJ,O,C,4,1),COLORF00FF0;STICKLINE(DIFF<DEA,H,L,0.5,0),COLORF0F000;STICKLINE(DIFF<DEA,O,C,4,0),COLORF0F000;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短线'),COLORGREEN;STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),COLORRED; STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,10,1),LINETHICK3,COLORRED;效果图:
以上这三组代码都是可以使用的,在修正的过程中,体现的是作者个人的喜好,大家也可以根据自己的情况选择。不过值得注意的是,江恩八线的买卖法则是:线上阴线买,线下阳线抛。投资者在使用的时候应该遵守这样的规则。对于学习江恩理论的朋友来说,由于该指标是基于
均线理论实现,其必定也是存在均线本身的缺点,在使用的时候需要注意。再者,先前也有提到,该指标在使用的时候,对于判断市场买点还可以,但是对于市场未来空间的把握并不容易,这个时候我们需要通过江恩工具来判定市场未来空间及时间。更多江恩理论相关知识学习请继续留意本站。