通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

量能平台指标公式源码

N:=5;N1:=10;

LC:=REF(CLOSE,1);

RSI5:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;

0,COLORGREEN;

WR10:=100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));

NEWVOL:=RSI5-WR10;

NV:NEWVOL,COLORRED;

STICKLINE(NEWVOL0,0,NEWVOL,0.8,1),COLORYELLOW;

STICKLINE(NEWVOL0,0,NEWVOL,0.8,1),COLORYELLOW;

MA(NEWVOL,6),COLORWHITE;

DRAWTEXT(FILTER((NEWVOLREF(NEWVOL,2)) AND ( REF(NEWVOL,1)REF(NEWVOL,3) AND NEWVOL0 ),5),NEWVOL*0.995,'买'),COLORWHITE;

DRAWTEXT(FILTER((NEWVOLREF(NEWVOL,3)) AND ( REF(NEWVOL,1)REF(NEWVOL,4) AND NEWVOL0 ),5),NEWVOL*0.995,'卖'),COLORFF00FF;

N:=31;K:=3;

生命量能: ema(100*(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)),K)/4, stICK,COLORRED;

DRAWTEXT(生命量能23,生命量能,''),COLORYELLOW;

DRAWICON(生命量能1,3,1);

生命分水岭: 10;

强势: 21;

A:=EMA(EMA(AMOUNT/10000000,5),10);

MID:(EMA(A,3)+EMA(A,6)+EMA(A,12)+EMA(A,24))/4,COLOR00FFFF;

B:=REF(A,1);

UP:=MID+3*STD(MID,10);

DW:=MID-3*STD(MID,10);

STICKLINE(UPREF(UP,1),UP,REF(UP,1),3,1),COLORFFFFFF;

STICKLINE(DWREF(DW,1),DW,REF(DW,1),3,1),COLOR00FFFF;

STICKLINE(UPREF(UP,1),UP,REF(UP,1),3,1),COLOR33FF33;

STICKLINE(DWREF(DW,1),DW,REF(DW,1),3,1),COLOR33FF33;

持多:STICKLINE(AB,A,B,8,0),COLORRED;

持空:STICKLINE(AB,A,B,8,0),COLORFF0000;

image.png

能量线指标公式源码

MA5:MA(VOL,5);

MA10:MA(VOL,10),LINETHICK2;

虚拟VOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;

STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟VOL,0,-1,-1),COLOR00C0C0;

VOLUME:VOL,VOLSTICK;

量能饱和:(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100,NODRAW;

十日换手:SUM(V/CAPITAL*100,10);

VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

主动买盘:=IF(CLOSEOPEN,VAR1*(HIGH-LOW),IF(CLOSEOPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));

主动卖盘:=IF(CLOSEOPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEOPEN,0-VAR1*(HIGH-LOW),0-VOL/2));

STICKLINE(主动买盘0,0,主动买盘,1,0),COLORRED;

STICKLINE(主动卖盘0,VOL,主动买盘,1,0),COLOR00FF00;

换手:=VOL/CAPITAL*100,NODRAW;

STICKLINE(换手0 ,0, 主动买盘,0,0),COLORYELLOW;

STICKLINE(换手0,VOL, 主动买盘, 0,0) ,COLORRED;

AHC2:=(HIGH – LOW);

AHC3:=ABS((OPEN – CLOSE));

AHC4:=(HIGH – IF((CLOSE  OPEN),CLOSE,OPEN));

AHC5:=(IF((CLOSE  OPEN),OPEN,CLOSE) – LOW);

AHC6:=((AHC3 / AHC2) * VOL);

AHC7:=((AHC4 / AHC2) * VOL);

AHC8:=((AHC5 / AHC2) * VOL);

AHCA:=(((CLOSE – MA(CLOSE,5)) / MA(CLOSE,5)) * 100);

AHCB:=(((MA(CLOSE,5)  MA(CLOSE,10)) AND (MA(CLOSE,10)  MA(CLOSE,30))) AND (MA(CLOSE,30)  MA(CLOSE,60)));

AHCC:=((MA(CLOSE,5)  MA(CLOSE,10)) AND (MA(CLOSE,10)  MA(CLOSE,30)));

换手率:REF(DYNAINFO(37),1),NODRAW COLORGRAY;

N:=23;

VAR1:=(100-100/(1+SUM(VOL,N)/CAPITAL))*CAPITAL*96/10000;

LNC:=VAR1*CLOSE;

B1:=REF(LNC,1);B2:=REF(LNC,2);

SS:=IF(LNCREF(LNC,1) AND REF(LNC,1)=REF(LNC,2),1,IF(LNCREF(LNC,1) AND REF(LNC,1)=REF(LNC,2),-1,IF(LNCREF(LNC,2) AND REF(LNC,2)REF(LNC,1),2,IF(LNCREF(LNC,2) AND REF(LNC,2)REF(LNC,1),-2,0))));

SM:=IF(REF(SS,1)0,REF(SS,1),IF(REF(SS,2)0,REF(SS,2),IF(REF(SS,3)0,REF(SS,3),IF(REF(SS,4)0,REF(SS,4),IF(REF(SS,5)0,REF(SS,5),IF(REF(SS,6)0,REF(SS,6),IF(REF(SS,7)0,REF(SS,7),0)))))));

MC:=IF(REF(SS,1)0,B2,IF(SM0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;

SS1:=IF(LNCREF(LNC,1) AND REF(LNC,1)=REF(LNC,2),1,IF(LNCREF(LNC,1) AND REF(LNC,1)=REF(LNC,2),-1,IF(LNCREF(LNC,2) AND REF(LNC,2)REF(LNC,1),2,IF(LNCREF(LNC,2) AND REF(LNC,2)REF(LNC,1),-2,0))));

SM1:=IF(REF(SS,1)0,REF(SS,1),IF(REF(SS,2)0,REF(SS,2),IF(REF(SS,3)0,REF(SS,3),IF(REF(SS,4)0,REF(SS,4),IF(REF(SS,5)0,REF(SS,5),IF(REF(SS,6)0,REF(SS,6),IF(REF(SS,7)0,REF(SS,7),0)))))));

MC1:=IF(REF(SS,1)0,B2,IF(SM0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;

A:MA(SQRT(MC),1),COLORFF9933,LINETHICK2;

IF(A=REF(A,1),A,DRAWNULL),COLORRED,LINETHICK4;

IF(AREF(A,1),A,DRAWNULL),COLORFF9933,LINETHICK2;

A1:MA(SQRT(MC1),5),COLOR33FF33,LINETHICK2;

IF(A1=REF(A1,1),A1,DRAWNULL),COLORFF00FF,LINETHICK3;

IF(A1REF(A1,1),A1,DRAWNULL),COLOR33FF33,LINETHICK2;

IF(A1REF(A1,1),A1,DRAWNULL),COLOR00FFFF,POINTDOT,LINETHICK5;

STICKLINE(VOL0 AND CO,VOL,0,2.9,0),COLOR1472FF;

STICKLINE(VOL0 AND CO,VOL,0,2.9,0),COLOR148A14;

MA18:=EMA(CLOSE,18);

加码价:=((C-REF(MA18,1))/18+MA18)*1;

加码条件:=CROSS(C,加码价) AND 加码价REF(加码价,1);

STICKLINE(VOL0 AND 加码条件,VOL,0,2.9,0),COLORYELLOW;

F:=100*(C-REF(C,1))/REF(C,1);

今小昨:=IF(CREF(O,1) AND F0,1,0);

S1:=今小昨;

今小前:IF(CREF(O,2) AND F0,1,0),LINETHICK0;

S2:=今小前;

今量:VOL/10000,LINETHICK0;

STICKLINE(VOL0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),VOL,0,2.9,1),COLORMAGENTA;

STICKLINE(VOL0 AND TROUGHBARS(3,3,1)=0 AND HIGHLOW+0.01,VOL,0,2.9,1),COLORBLUE;

YE:=(HIGH+LOW+CLOSE)/3;

YE1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));

YE2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-YE);

YE3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);

YE4:=IF(HIGH=LOW,1,YE-MIN(CLOSE,OPEN));

YE5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

YE6:=SUM((YE1*YE5),1);{散户卖出}

YE7:=SUM((YE2*YE5),1);{主力卖出}

YE8:=SUM((YE3*YE5),1);{散户买入}

YE9:=SUM((YE4*YE5),1);{主力买入}

买:(YE9+YE8)/10000,LINETHICK0,COLORWHITE;

STICKLINE((YE9+YE8)0,(YE9+YE8),0,2.9,0),COLOR0000AA;

STICKLINE((YE6+YE7)0,(YE6+YE7),0,0.2,0),COLORCYAN;

STICKLINE((YE6+YE7)0 AND TROUGHBARS(3,3,1)=0 AND HIGHLOW+0.01,(YE6+YE7),0,0.2,0),COLORBLUE;

STICKLINE((YE6+YE7)0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),(YE6+YE7),0,0.2,0),COLORMAGENTA;

卖:(YE6+YE7)/10000,LINETHICK0,COLORGREEN;

STICKLINE((YE6+YE7)0 AND TROUGHBARS(3,3,1)=0 AND HIGHLOW+0.01,(YE6+YE7),0,0.1,0),COLORBLUE;

STICKLINE((YE6+YE7)0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),(YE6+YE7),0,0.1,0),COLORGREEN;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。