通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
多空量能指标公式源码
MC:量能饱和高位出货低位进货横盘突破有行情;
N:=20;
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);
饱和度:=SAT,coloryellow;
STICKLINE(SAT =20,0,SAT,6,0),colorFFFFFF;
STICKLINE(SAT 20 AND SAT =50,0,SAT,6,0),color99DD00;
STICKLINE(SAT 20 AND SAT =50,0,SAT*0.8,6,0),color88DD22;
STICKLINE(SAT 20 AND SAT =50,0,SAT*0.6,6,0),color66AA11;
STICKLINE(SAT 20 AND SAT =50,0,SAT*0.4,6,0),color449900;
STICKLINE(SAT 20 AND SAT =50,0,SAT*0.2,6,0),color338800;
STICKLINE(SAT 50 AND SAT = 80,0,SAT,6,0),colorFF00FF;
STICKLINE(SAT 50 AND SAT = 80,0,SAT*0.8,6,0),colorFF33FF;
STICKLINE(SAT 50 AND SAT = 80,0,SAT*0.6,6,0),colorFF66FF;
STICKLINE(SAT 50 AND SAT = 80,0,SAT*0.4,6,0),colorFF99FF;
STICKLINE(SAT 50 AND SAT = 80,0,SAT*0.2,6,0),colorFFCCFF;
STICKLINE(SAT 80,0,SAT,6,0),color0055FF;
STICKLINE( SAT 80,0 ,SAT*1.0,6 ,0 ),COLOR0000ff;
STICKLINE( SAT 80,0 ,SAT*0.8,6 ,0 ),COLOR0066ff;
STICKLINE( SAT 80,0 ,SAT*0.6,6 ,0 ),COLOR0099ff;
STICKLINE( SAT 80,0 ,SAT*0.4,6 ,0 ),COLOR00ccff;
STICKLINE( SAT 80,0 ,SAT*0.2,6 ,0 ),COLOR00ffff;
攻击线:EMA(饱和度,20),colorred,linethick2;
强:80,COLOR55FF99,linethick2;
弱:20,COLORFF5535,linethick2;
N:=25; P:=196;
A:=EMA(AMOUNT/C/1000000,7);
MID :=EMA(A,N);
UPPER:=MID + p/100*STD(A,N);
LOWER:=MID – p/100*STD(A,N);
量能:(A-LOWER)/(UPPER-LOWER),COLOR9999fc;
上限:1,POINTDOT,colorgreen;
下限:0,POINTDOT;
STICKLINE(量能1,1,量能,2,0),colorred;
STICKLINE(量能0,0,量能,2,0),colorgreen
多空能量线指标公式
量能饱和:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
Va:=FILTER(C0,COUNT(C0,0));
STICKLINE(Va,20,121,6,1),COLORFFFFFF;
Va1:=FILTER(量能饱和 = 5,COUNT(量能饱和 = 5,0));
STICKLINE(Va1,21,(20 + 量能饱和),5,0),COLORFFFFFF;
Va2:=FILTER(量能饱和 5,COUNT(量能饱和 5,0));
STICKLINE(Va2,21,(20 + 量能饱和),5,0),COLORCCFF88;
Va3:=FILTER(量能饱和 20,COUNT(量能饱和 20,0));
STICKLINE(Va3,21,(20 + 量能饱和),5,0),COLORFF00FF;
Va4:=FILTER(量能饱和 40,COUNT(量能饱和 40,0));
STICKLINE(Va4,21,(20 + 量能饱和),5,0),COLOR0000FF
量:=V;
换手:=V/CAPITAL*100;
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));
DLX:(买盘-(-卖盘))/量*换手,color3d;
DLX1:SUM(DLX,6),coloryellow;
DLX2:MA(DLX1,5);
DLX3:MA(DLX1,10);
A1:=SUMBARS(VOL,CAPITAL);
CMA:=IF(CAPITAL0,SUM(AMOUNT,A1)/SUM(VOL,A1)/100,EMA(CLOSE,120));
评论(0)