以下是专用版通达信控盘程度指标公式源码和使用说明
机构专用版通达信主力控盘程度指标公式源码:
B1:=REF(CLOSE,1);
B2:=REF(CLOSE,2);
B3:=REF(CLOSE,3);
B4:=REF(CLOSE,4);
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);
CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);
STICKLINE((((((CLOSE=CMAX)AND((B1 =B2)OR(B1 =B3)))OR(((B1=CMAX)AND((B2=CMIN)OR(B3=CMIN)))AND(CLOSE =B2)))OR(((B2=CMAX)AND(B3=CMIN))AND(CLOSE =B1)))OR(((B3=CMAX)AND(CLOSE =B1))AND(CLOSE =B2))),B1,CLOSE,8,0),color999999;
STICKLINE((((((CLOSE=CMAX)AND((B1 =B2)OR(B1 =B3)))OR(((B1=CMAX)AND((B2=CMIN)OR(B3=CMIN)))AND(CLOSE =B2)))OR(((B2=CMAX)AND(B3=CMIN))AND(CLOSE =B1)))OR(((B3=CMAX)AND(CLOSE =B1))AND(CLOSE =B2))),B1,CLOSE,5,0),colorBBbbbb;
STICKLINE((((((CLOSE=CMAX)AND((B1 =B2)OR(B1 =B3)))OR(((B1=CMAX)AND((B2=CMIN)OR(B3=CMIN)))AND(CLOSE =B2)))OR(((B2=CMAX)AND(B3=CMIN))AND(CLOSE =B1)))OR(((B3=CMAX)AND(CLOSE =B1))AND(CLOSE =B2))),B1,CLOSE,8,0),colorred;
STICKLINE(((CLOSE=CMAX)AND(B1=CMIN)),B2,CLOSE,8,0),color999999;
STICKLINE(((CLOSE=CMAX)AND(B1=CMIN)),B2,CLOSE,5,0),colorBBbbbb;
STICKLINE(((CLOSE=CMAX)AND(B1=CMIN)),B2,CLOSE,3,0),colorred;
STICKLINE((((((CLOSE=CMIN)AND((B1 B2)OR(B1 B3)))OR(((B1=CMIN)AND((B2=CMAX)OR(B3=CMAX)))AND(CLOSE B2)))OR(((B2=CMIN)AND(B3=CMAX))AND(CLOSE B1)))OR(((B3=CMIN)AND(CLOSE B1))AND(CLOSE B2))),B1,CLOSE,8,0),color999900;
STICKLINE((((((CLOSE=CMIN)AND((B1 B2)OR(B1 B3)))OR(((B1=CMIN)AND((B2=CMAX)OR(B3=CMAX)))AND(CLOSE B2)))OR(((B2=CMIN)AND(B3=CMAX))AND(CLOSE B1)))OR(((B3=CMIN)AND(CLOSE B1))AND(CLOSE B2))),B1,CLOSE,5,0),colorbbBB00;
STICKLINE((((((CLOSE=CMIN)AND((B1 B2)OR(B1 B3)))OR(((B1=CMIN)AND((B2=CMAX)OR(B3=CMAX)))AND(CLOSE B2)))OR(((B2=CMIN)AND(B3=CMAX))AND(CLOSE B1)))OR(((B3=CMIN)AND(CLOSE B1))AND(CLOSE B2))),B1,CLOSE,3,0),colorffFF00;
STICKLINE(((B1=CMAX)AND(CLOSE=CMIN)),B2,CLOSE,8,0),color999900;
STICKLINE(((B1=CMAX)AND(CLOSE=CMIN)),B2,CLOSE,5,0),colorbbBB00;
STICKLINE(((B1=CMAX)AND(CLOSE=CMIN)),B2,CLOSE,3,0),colorffFF00;
STICKLINE((((B1=CMIN)AND(CLOSE =B2))OR(((((B2=CMIN)AND(B1 =B3))OR((B3=CMIN)AND(B1 =B2)))AND(B2 B4))AND(CLOSE =B1))),B1,B2,8,0),colorFF9900;
STICKLINE((((B1=CMIN)AND(CLOSE =B2))OR(((((B2=CMIN)AND(B1 =B3))OR((B3=CMIN)AND(B1 =B2)))AND(B2 B4))AND(CLOSE =B1))),B1,B2,5,0),colorFFBB00;
STICKLINE((((B1=CMIN)AND(CLOSE =B2))OR(((((B2=CMIN)AND(B1 =B3))OR((B3=CMIN)AND(B1 =B2)))AND(B2 B4))AND(CLOSE =B1))),B1,B2,3,0),colorred;
STICKLINE((((B1=CMAX)AND(CLOSE B2))OR(((((B2=CMAX)AND(B1 B3))OR((B3=CMAX)AND(B1 B2)))AND(B2 =B4))AND(CLOSE B1))),B1,B2,8,0),color999999;
STICKLINE((((B1=CMAX)AND(CLOSE B2))OR(((((B2=CMAX)AND(B1 B3))OR((B3=CMAX)AND(B1 B2)))AND(B2 =B4))AND(CLOSE B1))),B1,B2,5,0),colorBBbbbb;
STICKLINE((((B1=CMAX)AND(CLOSE B2))OR(((((B2=CMAX)AND(B1 B3))OR((B3=CMAX)AND(B1 B2)))AND(B2 =B4))AND(CLOSE B1))),B1,B2,3,0),colorred;
BBI:((((MA(CLOSE,3)+MA(CLOSE,6))+MA(CLOSE,12))+MA(CLOSE,24))/4),LINETHICK2;
UPR:(BBI+(3*STD(BBI,15))),colorred;
DWN:(BBI-(3*STD(BBI,15)));
通达信:=CLOSE;
B:=(MA(通达信,3)+MA(通达信,6)+MA(通达信,12)+MA(通达信,24))/4;
主力控盘程度:B+3*STD(B,8);
指标公式:B-3*STD(B,8);
EMA6:MA((MA(CLOSE,2)+MA(CLOSE,3)+MA(CLOSE,4))/3,2),COLORREDLINETHICK2;
AA:=HHV(EMA6,10);
ccdd1:=MA(CLOSE,3);
ccdd2:=MA(CLOSE,5);
ccdd3:=EMA(CLOSE,3);
ccdd4:(EMA((SLOPE(CLOSE,22))*(20)+CLOSE,55)),LINETHICK2,COLORFFFFFF;
IF(EMA6 REF(EMA6,1),EMA6,DRAWNULL),COLORGREEN,LINETHICK2;
IF(ccdd3 ccdd4,ccdd4,DRAWNULL),LINETHICK4,COLORRED;
IF(ccdd4 REF(ccdd4,1),ccdd4,DRAWNULL),LINETHICK4,COLORRED;
STICKLINE((ccdd3 ccdd4),ccdd3,ccdd4,0,1),COLORGREEN;
DRAWGBK(1,RGB(38.2,16.8,6.18),RGB(16.8,38.2,6.18),0,1,0);
A1:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
A2:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
STICKLINE(A2,0,A2,3,0),COLORLIRED;
DRAWKLINE(H,O,L,C);
机构专用版通达信主力控盘程度指标公式截图