通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
万手:VOL/10000,LINETHICK0;
AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
预测:AA/10000;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSEOPEN,BB*(HIGH-LOW),IF(CLOSEOPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:主动买/10000,COLORRED;
主动卖:=IF(CLOSEOPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEOPEN,0-BB*(HIGH-LOW),0-VOL/2));
主卖:-主动卖/10000,COLORGREEN;
差额:(主动买+主动卖)/10000;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;
STICKLINE(CLOSEREF(CLOSE,1),0,VOL,3.5,0),COLORRED;
STICKLINE(CLOSEREF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLOR00FFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) , COLOR007777 ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) , COLOR009999 ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00BBBB ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) , COLOR00DDEE ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.2 , 0 ) , COLORFFFFFF ;
STICKLINE(主动买=0,VOL,-主动卖,3.2,0),COLOR000033;
STICKLINE(主动买=0,VOL,-主动卖,2.7,0),COLOR000066;
STICKLINE(主动买=0,VOL,-主动卖,2.1,0),COLOR000099;
STICKLINE(主动买=0,VOL,-主动卖,1.5,0),COLOR0000CC;
STICKLINE(主动买=0,VOL,-主动卖,0.9,0),COLOR0000FF;
STICKLINE(主动买=0,VOL,-主动卖,0.2,0),COLORCC66FF;
STICKLINE(主动卖=0,0,-主动卖,3.2,0),COLOR990000;
STICKLINE(主动卖=0,0,-主动卖,2.7,0),COLORCC0000;
STICKLINE(主动卖=0,0,-主动卖,2.1,0),COLORFF4400;
STICKLINE(主动卖=0,0,-主动卖,1.5,0),COLORFF8800;
STICKLINE(主动卖=0,0,-主动卖,0.9,0),COLORFFCC00;
STICKLINE(主动卖=0,0,-主动卖,0.2,0),COLORCYAN;
持币:IF(SAR(10,2,20)=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORBLUE;
持股:IF(SAR(10,2,20)=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED;
五日: MA(V,5)COLORWHITE;
十日: MA(V,10)COLORYELLOW;
千手:VOL/1000,VOLSTICK,COLORBLUE;
A20:MA(千手,20),COLORRED,LINETHICK1;
STICKLINE(千手/A203,千手,0,3,0),COLORBLUE;
STICKLINE(千手/A201.5 AND 千手/A20=3,千手,0,3,0),COLOR99CCFF;
STICKLINE( 千手/A20 0.6,千手 ,0 , 3,0 ),COLOR00CC00;
:VOL/CAPITAL*100,COLOR0000FF,NODRAW;
STICKLINE(CROSS(换手率,10),VOL/1000,(VOL/1000)/2,3,0),COLORFFFFFF;
STICKLINE(换手率/REF(换手率,1)=0.5,0,(VOL/1000)/2,2,0),COLORYELLOW;
A:=MA(换手率,2);
X:=LLV(A,20),;
X1:=(A-LLV(A,20))=0;
换手最小:IF(EVERY (A0,5) AND FILTER(X1,5),X1,0),COLORFF0099,NODRAW;
小天:=BARSLAST(换手最小);
X2:=HHV(A,20);
X3:=(A-X2)=0;
换手最大:IF(EVERY(REF(A,1)X2,5) AND FILTER(X3,5),1,0),COLOR0000FF,NODRAW;
大天:=BARSLAST(换手最大),COLOR0000FF;
STICKLINE(换手最小,0,千手,3,0),COLORFF0099;
STICKLINE(换手最大,千手/2,千手,3,0),COLOR0000FF;
WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
换手:VOL/CAPITAL*100,POINTDOT;
十日换手:SUM(换手,10);
二十日换手:SUM(换手,20);
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF;
VOLUME:VOL,VOLSTICK;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSEOPEN,VAR1*(HIGH-LOW),IF(CLOSEOPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
主卖:IF(CLOSEOPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEOPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00FF00,POINTDOT;
STICKLINE(主买0,0,主买,2,0),COLORRED;
{STICKLINE(主卖0,主买,VOL,2,1),COLOR00FF80;}
STICKLINE(主买REF(主买,1)AND 主买0,0,主买,2,0),COLOR00FFFF;
V5:MA(VOLUME,5),LINETHICK3;
V10:MA(VOLUME,10),LINETHICK3;
V135:MA(VOLUME,135),LINETHICK3;
{DRAWICON(十日换手30,-20000,1);}
DRAWICON(十日换手80,-10000,23);
DRAWTEXT(CURRBARSCOUNT=40,HHV(V,80)*0.9, #39;10日换手80出红十字 #39;);
{DRAWICON(二十日换手30,-40000,2);}
DRAWICON(二十日换手80,-30000,17);
DRAWTEXT(CURRBARSCOUNT=80,HHV(V,80)*0.95, #39;20日换手80出桔子 #39;),COLOR00FFFF;
空间:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;
TX80:80,POINTDOT COLORYELLOW;
DX20:20,POINTDOT COLORGREEN;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,6),COLORRED;
D: EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN;
VAR3:=LLV(LOW,55);
VAR4:=HHV(HIGH,34);
VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,3);
VAR6:=(K+VAR5)/2;
VAR7:=EMA(0.667*REF(VAR5,1)+0.333*K,2);
VAR8:=EMA(VAR6,5);
VAR9:EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);
DRAWICON(LONGCROSS(D,K,0.1),D,2),COLORRED;
DRAWICON(LONGCROSS(K,D,0.1),K,1),COLORGREEN;
引用: