以下是通达信四方力道副图指标源码和使用说明
使用说明:
主力能量指标(MEI)的数值表示主力的净流入和净流出情况。当MEI值为正时,表示主力资金正在流入市场,这可能是多头的信号;当MEI值为负时,表示主力资金正在流出市场,这可能是空头趋势的信号。
主力能量指标的数值越大,表示主力资金的力量越强,市场趋势可能更具有持续性。
主力能量指标还可以与价格走势进行比较。当价格上涨而主力能量指标也上涨时,说明上涨趋势有支持;当价格下跌而主力能量指标也下跌时,说明下跌趋势有加速的可能。
通达信四方力道主力副图指标源码:
C1:10000*C/INDEXC;
O1:=10000*O/INDEXO;
ZLDX:=MA(C1,5);
STICKLINE(C1 =O1ANDC1 ZLDX,C1,ZLDX,1,0),colorred;
STICKLINE(C1 O1ANDC1 =ZLDX,ZLDX,C1,1,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(ZLDX,GG =REF(GG,1),RGB(255,0,0),GG =REF(GG,1),RGB(0,255,0)),LINETHICK3;};
IF(GG =REF(GG,1),ZLDX,DRAWNULL),colorred,LINETHICK1;
IF(GG REF(GG,1),ZLDX,DRAWNULL),colorgreen,LINETHICK1;
//买入条件;
BB1:=IF(GG =REF(GG,1),1,0);//ZLDX为红;
BB2:=IF(CROSS(C1,ZLDX),1,0);//;
BB3:=IF((ZLDX-REF(ZLDX,1)) (REF(ZLDX,1)-REF(ZLDX,1)),1,0);//ZLDX增加;
SIGNALBUY=(BB1=1ANDBB2=1ANDBB3);
X=(SIGNALBUYANDCOUNT(SIGNALBUY,3)=1);
DRAWICON(X,ZLDX,"buy");
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力能量:=(主力-均量);
操盘:STICKLINE(主力能量 =0AND主力能量 =REF(主力能量,1),0,主力能量,4,0),COLORRED;
减仓:STICKLINE(主力能量 =0AND主力能量 REF(主力能量,1),0,主力能量,4,0),COLORRED;
反弹:STICKLINE(主力能量 0AND主力能量 =REF(主力能量,1),0,主力能量,4,0),COLORGREEN;
寻底:STICKLINE(主力能量 0AND主力能量 REF(主力能量,1),0,主力能量,4,0),COLORGREEN;
V1:=DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9);
HY1:=REF(EMA(V1,3),1);
实时线:MA(CLOSE,1),COLOR006400;
神秘线:HY1,COLOR400080;
STICKLINE(C HY1,LOW,HIGH,1,0),COLORRED;
STICKLINE(C HY1,CLOSE,OPEN,4.5,0),COLORRED;
STICKLINE(C HY1,CLOSE,OPEN,4,0),COLORRED;
STICKLINE(C HY1,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(C HY1,CLOSE,OPEN,2,0),COLORRED;
STICKLINE(C =HY1,CLOSE,OPEN,4.5,0),COLORFF4242;
STICKLINE(C =HY1,CLOSE,OPEN,4,0),COLORFF4242;
STICKLINE(C =HY1,CLOSE,OPEN,3,0),COLORFF4242;
STICKLINE(C =HY1,CLOSE,OPEN,2,0),COLORFF4242;
STICKLINE(C =HY1,LOW,HIGH,1,0),COLORFF4242;
DRAWTEXT(CROSS(CLOSE,HY1),LOW,'买点'),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(HY1,CLOSE),HIGH*1.08,'卖点'),LINETHICK3,COLORWHITE;
APP:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));
ZL:=IF((CLOSE OPEN),(APP*(HIGH-LOW)),IF((CLOSE OPEN),(APP*((HIGH-OPEN)+(CLOSE-LOW))),(VOL/2)));
SF:=IF((CLOSE OPEN),(0-(APP*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE OPEN),(0-(APP*(HIGH-LOW))),(0-(VOL/2))));
库存能量:=MA((ZL+SF),2);
库存平均:=MA((ZL+SF),5);
DRAWTEXT(CROSS(库存能量,库存平均),L*0.97,''),COLORFF00FF,LINETHICK4;
通达信四方力道主力副图指标截图