一、通达信趋势类指标公式
DRAWGBK(C>0, RGB(1,1,1),RGB(1,1,1),0,'0',0);
VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
VAR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 100);
VAR4:=SMA(VAR3,9,1);
VAR5:=SMA(VAR4,3,1);
红线在上持股:((3 * VAR4) - (2 * VAR5)), LINETHICK2 , COLORRED;
VAR6:=(红线在上持股 > (1 * REF(红线在上持股,1)));
VAR7:=LLVBARS(LOW,50);
VAR8:=SUM(VOL,VAR7);
VAR9:=HHVBARS(HIGH,50);
VAR10:=SUM(VOL,VAR9);
VAR11:=(((CLOSE - REF(OPEN,VAR9)) / REF(OPEN,VAR9)) * 100);
VAR12:=((VAR10 / CAPITAL) * 100);
VAR13:=(((CLOSE - REF(OPEN,VAR7)) / REF(OPEN,VAR7)) * 100);
VAR14:=((VAR8 / CAPITAL) * 100);
VAR15:=(MA(WINNER(CLOSE),3) * 100);
VAR16:=EMA(VAR4,3);
回档不破洗盘:EMA(VAR4,3),COLORFFFFFF,LINETHICK2;
红线下穿减仓:EMA(回档不破洗盘,3),COLORFFCC66;
无量阴跌空仓:EMA(红线下穿减仓,3),COLORCC9966;
仅供参考:EMA(无量阴跌空仓,3),COLORCC6666;
A6:EMA(仅供参考,3),COLORCC3366;
A7:EMA(A6,3),LINETHICK2,COLORCC3366;
VAR17:=EMA(A7,3);
VAR18:=EMA(VAR17,3);
VAR19:=EMA(VAR18,3);
AA:EMA(仅供参考,6),COLORFF0000;
DRAWICON(CROSS(红线在上持股,A7),(红线在上持股 - 0.01),25);
DRAWTEXT(CROSS(红线下穿减仓,红线在上持股),红线下穿减仓,'小心'),COLORYELLOW;
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
操盘:=3*VAR300-2*VAR400;
A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;
STICKLINE(A1,30,0,4,0),COLOR770077;
STICKLINE(A1,30,0,3,0),COLOR990099;
STICKLINE(A1,30,0,2,0),COLORBB00BB;
STICKLINE(A1,30,0,1,0),COLORDD00DD;
STICKLINE(A1,30,0,0.3,0),COLORFF00FF;
DRAWTEXT(A1,36,'底部'),COLORRED;
二、通达信估值体系主图指标公式
{使用说明:图中的蓝区是市场估值区、红区是资产估值区、紫线是与银行存款比较,对于虚拟资产过大的股票似也可反应。国有银行因安全起见,证券化程度有限,故此法并不适用。}
VAR1:=1080531;
【回】:FINANCE(35)*(1+FINANCE(30)/FINANCE(19)*100*0.33),NODRAW;
【盈】:(FINANCE(21)/FINANCE(20)+0.038)*FINANCE(33)*100,COLORWHITE,NODRAW;
STICKLINE(DATE>VAR1,【回】,【盈】,7,0),COLOR6A0000;
估:=(【回】+【盈】)/2,NODRAW;
IF(DATE>VAR1,估,DRAWNULL),COLOREE8000;
绝S:=FINANCE(10)/FINANCE(1)*1.1;
绝X:=FINANCE(10)/FINANCE(1)*0.9;
STICKLINE(C>0,绝S,绝X,7,0),COLOR00005F;
资:FINANCE(10)/FINANCE(1), LINETHICK1,COLOR9E00EF;
银:FINANCE(29)/FINANCE(1)/3.87*100, LINETHICK2,COLORFF00EE;
LL:=BARSSINCE(FINANCE(42));
均:SUM(C,LL)/(LL+1),CIRCLEDOT,COLORRED;
权比:FINANCE(19)/(FINANCE(15)+FINANCE(16)),COLOR00FFCC,NODRAW;
P/EG:(C/FINANCE(33))/(FINANCE(21)/FINANCE(20)+0.038)/100,COLOR00FFCC,NODRAW;
ROE:FINANCE(30)/FINANCE(19)*100,COLOR00FFCC,NODRAW;
毛利率:FINANCE(21)/FINANCE(20)*100,COLOR00FFCC,NODRAW;
红息率:=FINANCE(29)/FINANCE(1)/C*100,COLOR00FFCC,NODRAW;
净资:FINANCE(35),COLOR00FFCC,NODRAW;
市净率:C/FINANCE(35),COLOR00FFCC,NODRAW;
市盈率:C/FINANCE(33),COLOR00FFCC,NODRAW;
收益:FINANCE(33),COLOR00FFCC,NODRAW;
公积金:=FINANCE(18),COLOR00FFCC,NODRAW;
WZ:=30=CURRBARSCOUNT;
DRAWTEXT(WZ=1 AND 估>=10*资,估*0.85,'虚拟过大'),COLORYELLOW;
DRAWKLINE(H,O,L,C);