通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
A:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAWNULL)))));
B:=FLOOR((FROMOPEN/A));
万手:VOL/10000,LINETHICK0,NODRAW;
AA:=IF(CURRBARSCOUNT=1,SUM(VOL,B)*A/FROMOPEN,DRAWNULL);
预测:STICKLINE(AA,0,AA,4,0),COLORYELLOW;
{STICKLINE(CURRBARSCOUNT=1,AA,0,2.5,0),COLORYELLOW};
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSEOPEN,BB*(HIGH-LOW),IF(CLOSEOPEN,
BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:主动买/10000,COLORRED,NODRAW;
主动卖:=IF(CLOSEOPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),
IF(CLOSEOPEN,0-BB*(HIGH-LOW),0-VOL/2));
主卖:-主动卖/10000,COLORGREEN,NODRAW;
差额:(主动买+主动卖)/10000,NODRAW;
STICKLINE(CLOSE REF(CLOSE,1),0,VOL,2.5,0),COLORLICYAN;
STICKLINE(CLOSE REF(CLOSE,1),0,VOL,2.5,0),COLORLIGREEN;
STICKLINE(CLOSE= REF(CLOSE,1),0,VOL,2.5,0),COLORWHITE;
{如果您还想用以前的假阴阳线,就把上面三行代码用大括号()括起来!}
{并把下面四行代码的大括号()去掉!}
STICKLINE(C-1,0,VOL,3,1),COLORRED;
STICKLINE(CO ,0,VOL,3,1),COLORFFFF00;
STICKLINE(C=O AND CREF(C,1),0,VOL,2,1),COLORFFFF00;
STICKLINE(C=O AND CREF(C,1),0,VOL,2,1),COLORRED;
STICKLINE(主动买0,0,主动买,1,0),COLORRED;
STICKLINE(主动卖0,VOL,主动买,1,0),COLORBLUE;
STICKLINE(1,主动买-VOL,0,2,0),COLOR0FF000;
持币:IF(SAR(10,2,20)=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN;
持股:IF(SAR(10,2,20)=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORMAGENTA;
五日: MA(V,5) COLORWHITE;
十日: MA(V,10) COLORYELLOW;
买盘:MA(主动买,5),LINETHICK2,COLOR00FFFF;
卖盘:MA(VOL-主动买,5),LINETHICK2,COLORFF00FF;
VAR22:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
获利盘: WINNER(CLOSE)*100;
VAR33:=SMA(VAR22,3,1);
VAR44:=SMA(VAR33,9,1);
VAR55:=3*VAR33-2*VAR44;
VAR66:=VOL;
: VOL/MA(VOL,5);
涨跌: (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
角度: (CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
换手: VOL/CAPITAL*100;
VAR77:=SUM(换手,30);
VAR88:=LLV(INDEXL,5);
VAR99:=HHV(INDEXH,5);
VARAA:=EMA((INDEXC-VAR88)/(VAR99-VAR88)*100,4);
VARBB:=MA(EMA(0.667*REF(VARAA,1)+0.333*VARAA,2),9);
VARCC:=MA(VARBB,30);
VARDD:=EMA(获利盘,4);
本盘亿股: CAPITAL/1000000,;
V5: MA(VOL,5)*2;
VARE:=MA(V5,3);
V34: MA(VOL,34)*2;
VARF:=(涨跌VARDD AND 角度-30 AND 涨跌3);
CROSS(VARBB,VARCC) AND VARCC29;
CROSS(VARCC,VARBB) AND VARCC58;
STICKLINE(VOL AND VAR33VAR44,0,VOL,3,1),COLORRED;
STICKLINE(VOL AND VAR33=VAR44,0,VOL,3,1),COLORCYAN;
DRAWTEXT(CROSS(VARBB,VARCC) AND 角度-18 AND VARCC29,VOL*1.2, #39;买 #39;),COLORYELLOW;
W:DRAWTEXT(CROSS(VARCC,VARBB) AND VARCC58,VOL*1.2, #39;卖 #39;),COLORWHITE;
DRAWTEXT(CROSS(VARE,V5) AND 角度22,V5, #39;---- #39;);
VAR2:=CLOSE-REF(CLOSE,1);
VAR3:=IF(CLOSE-REF(CLOSE,1)=0,VAR2,0);
VAR4:=REF(CLOSE,1)-CLOSE;
VAR5:=IF(CLOSE-REF(CLOSE,1)=0,VAR4,0);
VAR6:=SUM(VAR3,16)/SUM(VAR5,16);
VAR7:=100-100/(1+VAR6);
VAR8:=EMA(VAR7,16);
VAR9:=EMA(VAR8,8);
VARA:=EMA(VAR8,45);
MO:=(VAR8-VARA);
ML:=(VAR9-VARA);
VAR1A:=EMA(CLOSE,32);
VAR2A:=MA(OPEN,32);
:=(VAR1A-VAR2A);
STICKLINE(MOML AND 趋势0 AND MOREF(MO,3) AND 趋势REF(趋势,3),VOL,0,3,0) COLORYELLOW;