创幻的高手f40081308为人实在,他的(主力动向)指标有码,有图,有用法,本人觉得很不错把它转发给大家。在这里向f40081308致敬,谢谢你的好指标。也感谢其它几位网友把它改为通达信,和飞狐的源码。指标无未来。
大智慧2的源码:DRAWGBKlast(DATE>900101,strip(RGB(0,0,160),RGB(0,20,10),0));
CC1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
CC2:=(2*INDEXC+INDEXH+INDEXL+INDEXO)/5;
C1:=CC1/CC2;
O1:=C/INDEXC;
O2:=O/INDEXO;
ZLDX:MA(C1,4),LINETHICK2;
PARTLINE(ZLDX,(ZLDX>REF(ZLDX,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHICK2;
STICKLINE(C1>=O1 AND C1>ZLDX,C1,ZLDX,6,0),COLORRED;
STICKLINE(C1>=O2 AND C1>ZLDX,C1,ZLDX,6,1),COLORFF00FF;
STICKLINE(C1<O1 AND C1<=ZLDX ,ZLDX,C1,6,0),COLORCYAN;
STICKLINE(C1<O2 AND C1<=ZLDX ,ZLDX,C1,6,1),COLOR00FFFF;
DRAWFLAGTEXT( ZLDX>REF(ZLDX,1),ZLDX, '当ZLDX红变绿时 K线与ZLDX 阳,阴或大,小相反 警惕要下跌!! '),COLOR00FF00;
DRAWFLAGTEXT( ZLDX>REF(ZLDX,1),ZLDX, '当ZLDX上升变缓或放平, 警惕要下跌!! 当ZLDX红变绿时 警惕要下跌!! '),COLORFF00FF;
通达信的源码
CC1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
CC2:=(2*INDEXC+INDEXH+INDEXL+INDEXO)/5;
C1:=CC1/CC2;
O1:=(C)/(INDEXC);
O2:=(O)/(INDEXO);
ZLDX:MA(C1,5)COLORRED,LINETHICK2;
IF((ZLDX>REF(ZLDX,1))-1,ZLDX,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(C1>=O1 AND C1>ZLDX,C1,ZLDX,2,0),COLORRED;
STICKLINE(C1>=O2 AND C1>ZLDX,C1,ZLDX,2,1),COLORFF00FF;
STICKLINE(C1<O1 AND C1<=ZLDX ,ZLDX,C1,2,0),COLORCYAN;
STICKLINE(C1<O2 AND C1<=ZLDX ,ZLDX,C1,2,1),COLOR00FFFF;
飞狐的源码
C1:10000*C/INDEXC;
O1:=10000*O/INDEXO;
ZLDX:MA(C1,5),COLORGREEN,LINETHICK3;
STICKLINE(C1>=O1 AND C1>ZLDX,C1,ZLDX,6,0),COLORRED;
STICKLINE(C1<O1 AND C1<=ZLDX ,ZLDX,C1,6,0),COLORCYAN;
V1:=(2*C+H+L+O)/5;
V2:=LLV(L,21);
V3:=HHV(H,21);
GG:= EMA((V1-V2)/(V3-V2),5);
PARTLINE(GG>=REF(GG,1),ZLDX),COLORRED,LINETHICK3;
《主力动向》使用说明:
本公式简洁明快,仅包含两条波浪线(白色的C1和红绿相间的主力动向线ZLDX)和一组红蓝相间的柱线。
1、红线+红柱,持股;
红线+蓝柱,离场;
2、原则上绿线空仓:
绿线+红柱,观望;
绿线+蓝柱,离场;
但绿线向上,且白线并未下穿绿线,仍然持股;
3、股价上涨,但红柱并未随着增长,动向线由向上趋势而走平甚至向下,后市看跌;
股价创新高,而红柱消失,立即清仓;
4、股价下跌,但红柱增长,动向线由向下趋势而走平甚至向上,后市看涨;
股价创新低而蓝柱消失,立即全仓。