通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
量能饱和度指标公式源码
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;
猎狐雷达: 100*(WINNER(CLOSE)-REF(WINNER(CLOSE),1));
Var1:=(WINNER(MONEY/VOL)-WINNER(REF(MONEY/VOL,5)))*100;
雷达: IF(猎狐雷达20,猎狐雷达,0);
天线: 20;
地线: -20
VA1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
HY1:=REF(EMA(VA1,3),1);
多空趋势:=MA((CLOSE – HY1) * 10,2);
操盘:STICKLINE(多空趋势=0 AND 多空趋势=REF(多空趋势,1),0,多空趋势,2,0),coloryellow;
减仓:STICKLINE(多空趋势=0 AND 多空趋势 REF(多空趋势,1),0,多空趋势,2,0),coloryellow;
反弹:STICKLINE(多空趋势0 AND 多空趋势=REF(多空趋势,1),0,多空趋势,2,0),colorgreen;
寻底:STICKLINE(多空趋势0 AND 多空趋势 REF(多空趋势,1),0,多空趋势,2,0),colorgreen;
r:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;
t:=BARSCOUNT(SHGZG);
b:=SUM(r,t);
主力持仓:b;
n:=5;
x2:=HHV(r,n);
S:=STD(SHGZG,2)/1000000;
S1:=-STD(SHGZG,2)/1000000;
STICKLINE(r0,r+b,b,2),colorred;
STICKLINE(r0,b,b+r,2),colorgreen;
STICKLINE(s0,x2+b,b+r*3,3),coloryellow;
STICKLINE(s10,b+r*3,b-x2,3),coloryellow;
IF(ISNULL(r))
a=(ZDMR[-1]+BDMR[-1]);
b=(ZDMC[-1]+BDMC[-1]);
a3=SUM(a,n)/1000000;
b3=SUM(b,n)/1000000;
VOL1=SUM(VOL,n)/1000000;
S3=STD(SHGZG,2)/10000;
IF(a3b3)
{
y=a3-b3;
z=y/VOL1*100;
主力增加:TOSTRING(r,2)+%.+TOSTRING(n,0)+天主力净买入+TOSTRING(y,1)+万手.占总成交+TOSTRING(z,1)+%.+流通盘增加+TOSTRING(s3,2)+万.;
}
ELSE
{
y=b3-a3;
z=y/VOL1*100;
主力增加:TOSTRING(r,2)+%.+TOSTRING(n,0)+天主力净买入+TOSTRING(y,1)+万手.占总成交+TOSTRING(z,1)+%.+流通盘增加+TOSTRING(s3,2)+万.;
}
Var1:=(CLOSE+HIGH+LOW)/3;
Var2:=EMA(EMA(EMA(Var1,1),13),21);
控盘度: (Var2-REF(Var2,1))/REF(Var2,1)*1000;
强弱分界:= 0;
股票能量饱和度指标
Y1:=LLV(L,34);
Y2:=SMA(ABS(L-REF(L,1)),34,1);
Y3:=SMA(MAX(L-REF(L,1),0),34,2);
口水:-(EMA(IF(L=Y1,Y2/Y3,-3),9)),STICK,colorred,LINETHICK1;
STICKLINE(口水0,0,口水,3,0),COLOR00FF00;
Y11:=LLV(L,8);
Y21:=SMA(ABS(L-REF(L,1)),34,1);
Y31:=SMA(MAX(L-REF(L,1),0),34,2);
A:-(EMA(IF(L=Y11,Y21/Y31,-3),9)),colorblue,LINETHICK1;
STICKLINE(口水A,口水,A,3,0),colorcyan,LINETHICK1;
a:=(C-REF(C,1))/C;
b:=(INDEXC-REF(INDEXC,1))/INDEXC;
d:=(a-b)*100;
VAR1:=a0 AND b0;
VAR2:=a0 AND b0;
VAR3:=a0 AND b0;
VAR4:=a0 AND b0;
STICKLINE(VAR1,0,d,8,0),Color0000ff;
STICKLINE(VAR2,0,d,8,0),Colorcc66ff;
STICKLINE(VAR3,0,d,8,0),Color00ffff;
STICKLINE(VAR4,0,d,8,0),Color00ff00;
e:EMA(MA(d,5),3),colorred,LINETHICK2;
强度:10*SMA(MAX(d,0),12,1)/SMA(ABS(d),12,1)-5,colorcyan;
窗:=ZIG(3,15);
VERTLINE(窗REF(窗,1),2),colorgray;
MVAR6:=REF(LOW,1)*0.9;
MVAR7:=LOW*0.9;
MVAR10:=(MVAR7*VOL+MVAR6*(CAPITAL-VOL))/CAPITAL;
MVAR11:=EMA(MVAR10,30);
MVAR12:=CLOSE-REF(CLOSE,1);
MVAR13:=MAX(MVAR12,0);
MVAR14:=ABS(MVAR12);
MVAR15:=SMA(MVAR13,7,1)/SMA(MVAR14,7,1)*100;
MVAR16:=SMA(MVAR13,13,1)/SMA(MVAR14,13,1)*100;
MVAR17:=BARSCOUNT(CLOSE);
MVAR18:=SMA(MAX(MVAR12,0),6,1)/SMA(ABS(MVAR12),6,1)*100;
MVAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
MVAR20:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
MVAR21:=SMA((SMA(MVAR20,4,1)-50)*2,3,1);
MVAR22:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
MVAR23:=SMA(MVAR22,4,1);
MVAR24:=SMA(MVAR23,3,1);
MVAR25:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
打压建仓:MVAR18=25 AND MVAR19-95 AND MVAR2520 AND MVAR21-30 AND MVAR2430 AND MVAR11-CLOSE=-0.25 AND MVAR1522 AND MVAR1628 AND MVAR1750,colorred ;
抄底:IF((C-MIN(REF(C,2)*0.865,REF(C,13)*0.772))/C0.1 AND SUM(100*VOL/CAPITAL,5)/51.8,-5, 0),Color00FF00,LINETHICK0;
抛压:CROSS(84,SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100),colorgreen,LINETHICK0;
大资金:(((100-3*SMA((CLOSE-LLV(LOW,66))/(HHV(HIGH,66)-LLV(LOW,66))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,66))/
(HHV(HIGH,66)-LLV(LOW,66))*100,20,1),15,1))REF((100-3*SMA((OPEN-LLV(LOW,66))/(HHV(HIGH,66)-LLV(LOW,66))*
100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,66))/(HHV(HIGH,66)-LLV(LOW,66))*100,20,1),15,1)),1) AND VOLREF(VOL,1) AND
CLOSEREF(CLOSE,1)) AND COUNT(((100-3*SMA((CLOSE-LLV(LOW,66))/(HHV(HIGH,66)-LLV(LOW,66))*100,20,1)+2*
SMA(SMA((CLOSE-LLV(LOW,66))/(HHV(HIGH,66)-LLV(LOW,66))*100,20,1),15,1))REF((100-3*SMA((OPEN-LLV(LOW,66))/
(HHV(HIGH,66)-LLV(LOW,66))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,66))/(HHV(HIGH,66)-LLV(LOW,66))*100,20,1),15,1)),1) AND
VOLREF(VOL,1) AND CLOSEREF(CLOSE,1)),30)=1),colorred,LINETHICK0;
MVAR43:=((AMOUNT)/(VOL))/(100);
MVAR44:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
MVAR45:=((SUM(AMOUNT,7))/(MVAR43))/(100);
MVAR46:=DMA(MVAR44,(VOL)/(MVAR45));
MVAR47:=((CLOSE-MVAR46)/(MVAR46))*(100);
MVAR48:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
MVAR49:=MA(MVAR47,20)+STD(MVAR47,20);
MVAR50:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
MVAR51:=SMA(MVAR48,3,1);
风险:(REF(MVAR50,1)=5 AND CROSS(MVAR49,MVAR47) AND MVAR5179),colorgreen;
拉台:FILTER(C/REF(C,1)1.028 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12)),28)*100
AND LREF(C,1)*0.93 ,colorred;
多方:=SMA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*400,3,1);
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,4,0),COLOR0000AA;
STICKLINE(多方REF(多方,0.5)AND 多方0,0,多方,3.5,0),COLOR000095;
STICKLINE(多方REF(多方,0.5)AND 多方0,0,多方,3,0),COLOR0000A2;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,2.5,0),COLOR0000B3;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,2,0),COLOR0000C8;
STICKLINE(多方REF(多方,0.5)AND 多方0,0,多方,1.5,0),COLOR0000D7;
STICKLINE(多方REF(多方,0.5)AND 多方0,0,多方,1,0),COLOR0000EA;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,0.5,0),COLOR0000FF;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,8,0),COLOR0000AA;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,7,0),COLOR000095;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,6,0),COLOR0000A2;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,5,0),COLOR0000B3;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,4,0),COLOR0000C8;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,3,0),COLOR0000D7;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,2,0),COLOR0000EA;
STICKLINE(多方REF(多方,1)AND 多方0,0,多方,1,0),COLOR0000FF;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,8,0),COLOR007700;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,7,0),COLOR008E00;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,6,0),COLOR009900;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,5,0),COLOR00A600;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,4,0),COLOR00B500;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,3,0),COLOR00C600;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,2,0),COLOR00D500;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,1,0),COLOR00E600;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,4,0),COLOR007700;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,3.5,0),COLOR008800;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,3,0),COLOR008E00;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,2.5,0),COLOR009900;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,2,0),COLOR00A600;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,1.5,0),COLOR00B500;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,1,0),COLOR00C600;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,0.7,0),COLOR00D500;
STICKLINE(多方REF(多方,1)AND 多方0,0,-多方,0.5,0),COLOR00E600;
STICKLINE(抛压,多方 ,多方+多方/8,8,0),COLORFF0044;
STICKLINE(抛压,多方 ,多方+多方/8,7,0),COLORff0055;
STICKLINE(抛压,多方 ,多方+多方/8,6,0),COLORff0066;
STICKLINE(抛压,多方 ,多方+多方/8,5,0),COLORff0077;
STICKLINE(抛压,多方 ,多方+多方/8,4,0),COLORFF0088;
STICKLINE(抛压,多方 ,多方+多方/8,3,0),COLORff0099;
STICKLINE(抛压,多方 ,多方+多方/8,2,0),COLORff00aa;
STICKLINE(抛压,多方 ,多方+多方/8,1,0),COLORff00bb;
STICKLINE(大资金,ABS(多方) ,ABS(多方/3),11,0),COLOR106FFF;
STICKLINE(大资金,ABS(多方) ,ABS(多方/3),10,0),COLOR000095;
STICKLINE(大资金,ABS(多方) ,ABS(多方/3),9,0),COLOR00AAFF;
STICKLINE(大资金,ABS(多方) ,ABS(多方/3),7,0),COLOR00BBFF;
STICKLINE(大资金,ABS(多方) ,ABS(多方/3),5,0),COLOR00CCFF;
STICKLINE(大资金,ABS(多方) ,ABS(多方/3),3,0),COLOR00ddfF;
STICKLINE(大资金,ABS(多方) ,ABS(多方/3),2,0),COLOR00EEFF;
STICKLINE(大资金,ABS(多方) ,ABS(多方/3),1,0),COLOR00FFFF;
STICKLINE(打压建仓,ABS(多方),ABS(多方)-3,10,0),colorred ;
STICKLINE(抄底,0,3,10,0),ColorFFFFFF;
DRAWTEXT(抄底 ,0,'短'),colorgreen;
DRAWTEXT(抄底 ,-2,'底'),colorgreen;
DRAWTEXT(拉台 ,0,'拉'),colorred;
DRAWTEXT(拉台 ,-2,'台'),colorred;
DRAWTEXT(风险,多方,'风险'),colorgreen;
DRAWTEXT((大资金=1),-1,'大资金'),coloryellow;
量均:=EMA(VOL,13);
额均:=EMA(AMOUNT,13);
比A:=额均/量均/100;
价变:=(CLOSE-比A)/比A*100;
量变:=EMA(VOL/CAPITAL*100,13);
量价升:((量变REF(量变,1) AND 额均REF(额均,1) AND 价变REF(价变,1) AND 多方REF(多方,1) ));
一星级:=量变0 AND 价变5 AND 多方0 AND 多方REF(多方,1);
二星级:=量变1 AND 价变5 AND 多方0 AND 多方REF(多方,1);
三星级:=量变3 AND 价变5 AND 多方0 AND 多方REF(多方,1);
四星级:=量变5 AND 价变5 AND 多方0 AND 多方REF(多方,1);
STICKLINE(四星级,ABS(多方/2) ,0 ,2 ,0 ),colorblack;
STICKLINE(三星级,ABS(多方/3) ,0,3 ,0 ),coloryellow;
STICKLINE(二星级,ABS(多方/5),0 ,5 ,0 ),colorcyan;
STICKLINE(一星级,ABS(多方/9) ,0 ,7 ,0 ),colorblue;
STICKLINE(量价升,ABS(多方/9) ,0 ,3 ,0 ),coloryellow;
大户:SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*50,9,1),color00ff00;
散户:SMA(大户,3,1), colorwhite;
主力庄家:3*大户-2*散户, colorred,linethick2;
VAR2:=REF(LOW,1); linethick1, color00ccff;
FILLRGN(大户,散户,大户散户,RGB(255,0,0),大户散户,RGB(100,0,200));
平衡信号: 25, linethick1,colorred ;
见顶信号:45,linethick1,colorred;
支撑位:18,Linethick1,colorcyan;
见底位:10,Linethick1,colorblue;
回档信号: 31.8, linethick1,colormagenta ;
评论(0)