通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
N:=3;
VAR1:=MA(HHV(HIGH,485),17);
VAR2:=MA(HHV(HIGH,222),17);
VAR3:=MA(HHV(HIGH,96),17);
VAR4:=MA(LLV(LOW,485),17);
VAR5:=MA(LLV(LOW,222),17);
VAR6:=MA(LLV(LOW,96),17);
VAR7:=MA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,17);
VAR8:=MA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,17);
VAR9:=MA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,17);
VARA:=MA((VAR7*3+VAR8*2+VAR9)/6*1.738,17);
VARB:=IF(DATE=1050531,VARA,VARA*DAY);
VARC:=LOW;
VARD:=REF(LOW,1);
VARE:=SMA(ABS(VARC-VARD),3,1)/SMA(MAX(VARC-VARD,0),N,1)*100;
VARF:=MA(IF(CLOSE*1.35=VARB,VARE*10,VARE/10),N);
VAR10:=LLV(LOW,30);
VAR11:=HHV(VARF,30);
VAR12:=1990831;
买点:IF(DATE=VAR12,MA(IF(LOW=VAR10,(VARF+VAR11*2)/2,0),N),100000000),LINESTICK,COLORLIGREEN;
DRAWICON((CROSS(10,买点)),买点,1);
DRAWTEXT((CROSS(10,买点)),买点, #39;进场 #39;),COLORRED;
ZLCM:=EMA((WINNER(CLOSE) * 70),3);
SHCM:=EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3);
主力控盘:((ZLCM / (ZLCM + SHCM)) * 100),LINETHICK2,COLORYELLOW;
顶:90, LINETHICK2 ,COLORRED;
风险:80,,COLORYELLOW;
平衡:50,COLORGREEN;
安全:20,COLORBLUE;
底:0, LINETHICK2 ,COLORWHITE;
主力做盘轨迹:(((CLOSE - MA(LLV(LOW,40),40)) / MA(LLV(LOW,40),40)) * 100),COLORF0F000;
BIAS1 : (CLOSE-MA(CLOSE,9))/MA(CLOSE,9)*100,COLORWHITE;
坚决买:=(主力做盘轨迹-BIAS1)5.5;
DRAWTEXT(坚决买 ,38, #39;金子 #39;),COLORF0FF00;
STICKLINE (坚决买 ,0,30,5,0),COLORRED;
AA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1000;
BB:=MA(AA,10);
线:SMA(BB,3,1)/10,LINETHICK2,COLORRED;
JNYY2:=(((CLOSE - LLV(LOW,26)) / (HHV(HIGH,26) - LLV(LOW,26))) * 100);
判断:SMA(JNYY2,32,1)-20,COLOR00FF00,LINETHICK1;
买:DRAWTEXT(CROSS(趋势线,判断),趋势线+10, #39;买牛 #39;),LINETHICK2,COLORWHITE;
建仓:DRAWTEXT(CROSS(判断,趋势线),判断, #39;建仓 #39;),LINETHICK2,COLORYELLOW;
不怕死:DRAWTEXT(CROSS(主力做盘轨迹,判断),判断-10, #39;加码 #39;),LINETHICK2,COLORRED;
N:=9;
TYP := (HIGH + LOW + CLOSE)/3;
RS:=SUM(IF(TYPREF(TYP,1),TYP*VOL,0),N)/SUM(IF(TYP=REF(TYP,1),TYP*VOL,0),N);
MFI:=100-100/(1+RS);
资金流量:MFI,NODRAW;
A1:=SUM(IF(MFIREF(MFI,1),VOL,IF(MFIREF(MFI,1),-VOL,0)),0);{OBV}
RSV:=(A1-LLV(A1,34))/(HHV(A1,34)-LLV(A1,34))*100;
K:SMA(RSV,5,1);
D:SMA(K,3,1);
J:3*K-2*D;
50,COLORGRAY;
80,COLORRED;
A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;
实际量:VOL,LINETHICK0;
{VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1);
VAR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
预测:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2)/10000;
预测量:STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2),VAR1,0,7,1),COLORGRAY;}
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSEOPEN,AA*(HIGH-LOW),IF(CLOSEOPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),POINTDOT,COLORRED;
主卖:IF(CLOSEOPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEOPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
%:VOL/CAPITAL*100,POINTDOT,COLORWHITE;
STICKLINE(C=REF(C,1) ,0,VOL,2.5,1),COLORRED;
STICKLINE(CREF(C,1),0,VOL,2.5,1),COLORGREEN;
STICKLINE(主买0,0,主买,2.5,0),COLORRED;
STICKLINE(主卖0 ,0,主卖,2.5,0),COLORGREEN;
资金异动:VOL/MA(VOL,55)*100,COLORYELLOW;
STICKLINE(资金异动100 ,0,VOL,0.6,0),COLORYELLOW;
MA5:MA(V,5),COLORWHITE;
MA13:MA(V,13),COLORRED;
DRAWTEXT(CROSS(MA5,MA13),(V *1.05), #39;★ #39;),COLORYELLOW;
搜牛趋势:=HHV(MA((LOW+HIGH+CLOSE)/3,3),1);
VAR1:=HHV(MA((LOW+HIGH+CLOSE)/3,5),2);
VAR2:=EMA((HIGH+LOW+CLOSE)/3*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*20/10+(LOW+HIGH+CLOSE)/3,1);
UPR:=VAR1+8/10*STD(LOW,19);
DWN:=VAR1-8/10*STD(LOW,19);
VAR3:=(3*VAR2-2*SMA(VAR2,5,1))*0.3;
VAR4:=IF(VAR3VAR1,DWN,IF(VAR3VAR1,DWN,UPR));
UPP:=VAR4+11/10*STD(LOW,21);
VAR5:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*(-100);
VAR6:=EMA(VAR5/10+EMA(CLOSE,5),1);
中轨线:IF(VAR6VAR4,VAR4,IF(VAR6HHV((LOW+HIGH+CLOSE)/3,1),UPP,VAR6)),LINETHICK1,COLORFFDD00;
搜牛中轨:=LLV(MA((LOW+HIGH+CLOSE)/3,3),10);
STICKLINE(中轨线搜牛趋势,中轨线,搜牛趋势,3,0),LINETHICK2,COLOR99FF44;
A:=(3*C+L+O+H)/6;
X1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
回调认同:=EMA(X1,13),COLORFF00FF;
快线:=EMA(EMA(EMA(EMA(CLOSE,3),3),3),3),LINETHICK2,COLOR0000FF;
慢线:=EMA(REF(快线,1),3),LINETHICK2,COLOR00FFFF;
趋势:=EMA(EMA(EMA(EMA(EMA(CLOSE,65),3),3),3),3),LINETHICK2,COLORFF00FF;
神奇线:=MA(C,19),,LINETHICK2;
A1:= 3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
A2:= (EMA(A1,5)-REF(EMA(A1,5),1))/REF(EMA(A1,5),1)*100;
A3:= (C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100;
趋势线:= MA(3*SMA(A3,6,1)-2*SMA(SMA(A3,5,1),5,1),2);
VAR8:= LLV(L,5)=LLV(L,45) AND C=O*1.04;
VAR9:= C(REF(H,1)+REF(L,1))/2;
VAR10:= VAR8 AND VAR9;
VAR14:= LLV(L,1)=LLV(L,35) AND C=O*1.04;
VAR17:= ((C-MA(C,6))/MA(C,6)*100+(C-MA(C,24))/MA(C,24)*100+(C-MA(C,32))/MA(C,32)*100)/3;
VAR27:= MA(HHV(HIGH,485),17);
VAR28:= MA(HHV(HIGH,222),17);
VAR29:= MA(HHV(HIGH,96),17);
VAR30:= MA(LLV(LOW,485),17);
VAR31:= MA(LLV(LOW,222),17);
VAR32:= MA(LLV(LOW,96),17);
VAR33:= MA((VAR30*0.96+VAR31*0.96+VAR32*0.96+VAR27*0.558+VAR28*0.558+VAR29*0.558)/6,17);
VAR34:= MA((VAR30*1.25+VAR31*1.23+VAR32*1.2+VAR27*0.55+VAR28*0.55+VAR29*0.65)/6,17);
VAR35:= MA((VAR30*1.3+VAR31*1.3+VAR32*1.3+VAR27*0.68+VAR28*0.68+VAR29*0.68)/6,17);
VAR36:= LLV(LOW,30);
VAR37:= MA((VAR33*3+VAR34*2+VAR35)/6*1.738,17);
VAR38:= VAR37;
VAR39:= LOW;
VAR40:= REF(LOW,1);
VAR41:= SMA(ABS(VAR39-VAR40),3,1)/SMA(MAX(VAR39-VAR40,0),3,1)*100;
VAR42:= MA(IF(CLOSE*1.35=VAR38,VAR41*10,VAR41/10),3);
VAR43:= HHV(VAR42,30);
VAR73:= (CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR75:= SMA(VAR73,3,1);
绝佳买点:= MA(IF(LOW=VAR36,(VAR42+VAR43*2)/2,0),3);
跑:= FILTER(REF(EMA(A1,5),1)90 AND A20 ,7);
买线:= EMA(CLOSE,2);
卖线:= EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
龙:= VAR10;
AA1:= AMOUNT/VOL;
BB1:= LOWAA1*0.9;
CC1:= (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1001.2;
DD1:= LOWMA(CLOSE,5)*0.921;
EE1:= VOLMA(VOL,5)*1.5;
FF1:= BB1 AND CC1 AND DD1 AND EE1;
二十天最低跌幅:= HHV(CLOSE,20)/LLV(CLOSE,20);
RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:= SMA(RSV,3,1);
D:= SMA(K,3,1);
J:= 3*K-2*D;
X:= LLV(J,2)=LLV(J,8);
长期底部:= LLV(HIGH,30);
上:= SMA(LOW,5,2)*0.96;
短期底部:= LLV(HIGH,30)*0.93;
LC:= REF(CLOSE,1);
RSI:= SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
大顶:= FILTER(VAR1720 AND FILTER(VAR17REF(VAR17,1),5),5);
VAR76:= (OPEN+LOW+HIGH+CLOSE)/4;
短底2:= EMA(VAR76,5);
支撑:= HHV(短底2,60);
VAR77:= (HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR78:= SMA(VAR77,5,1);
VAR79:= SMA(VAR78,8,1);
VAR80:= CROSS(VAR78,VAR79) AND VAR795;
VAR81:= CLOSELLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR80;
VAR82:= IF(CLOSE1000,VAR80,VAR81);
VAR93:= 100-3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
VAR94:= 100-3*SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
VAR95:= VAR93REF(VAR94,1) AND VREF(V,1) AND CREF(C,1);
大资金入场:=VAR95 AND COUNT(VAR95,30)=1;
DRAWTEXT(VAR95 AND COUNT(VAR95,30)=1,HIGH*1.095, #39;大资金 #39;),COLORYELLOW;
DRAWTEXT(VAR95 AND COUNT(VAR95,30)=1,HIGH*1.06, #39;进场 #39;),COLORYELLOW;
逃:= FILTER(HIGH支撑 AND CLOSE支撑 AND CLOSE/OPEN0-1.06 AND CLOSEOPEN,5);
选逃:= FILTER(VAR820 OR 逃 OR CROSS(84,RSI) OR 大顶,3);
卖:= CROSS(卖线,买线);
:= SMA(VAR75,3,1);
新庄:= SMA(散户,3,1);
买:= CROSS(买线,卖线);
大:= CROSS(趋势线,0) AND EMA(A1,5)40;
大买:= FILTER(绝佳买点30000,5);
买1:= CROSS(J,REF(J+0.01,1)) AND X AND J20 AND 二十天最低跌幅=1.3;
买2:= FILTER(FF1,3);
买3:= VAR14;
选底:= FILTER(LOW=上 AND HIGH=短期底部 AND CLOSE=长期底部 AND CLOSE/OPEN1.03,3);
选买:= FILTER(买2 OR 选底,3) AND COUNT(买1+买3+龙,3)0 ;
STICKLINE(选买,C,HHV(H,10)*0.94,0.3,0),COLORFB2DFB;
DRAWTEXT(选买,HHV(HIGH,10)*1, #39;稳赚 #39;),COLORFB2DFB;
DRAWTEXT(选买,HHV(HIGH,10)*0.97, #39;10% #39;),COLORFB2DFB;
DRAWTEXT(买,L, #39;买 #39;),COLOR0000FF;
DRAWTEXT(大黑马,LOW*0.98, #39;大黑马 #39;),COLORFFFFFF;