通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、指标公式源码
LC:=REF(C,1);
VVA:=IF(C REF(C,1),V,-V);
OBV18:=SUM(IF(C=REF(C,1),0,VVA),18);
XXV:=IF(C LC,SUM(V,18),0),COLOR0000CC;
YYV:=IF(C LC,SUM(V,18),0),COLOR00CC00;
SS0:=IF(C LC,HHV(REF(V,1),18),0);
SS1:=IF(C LC,HHV(REF(V,1),18),0);
CCI:=((C-MA(C,14))/(0.015*AVEDEV(C,14)))/4+50,COLORFFCCCC;
RSI:SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*150-30,COLORCC9900;
K9:=SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),COLOR00CCCC;
D9:=SMA(K9,3,1),COLOR00CC00;
J:=3*K9-2*D9,COLORFF3399,LINETHICK1;
VAR01:=DYNAINFO(17)*REF(MA(V,5),1);
VAR02:=DYNAINFO(7)=CANDDYNAINFO(10)=AMOUNT;
预V1:=IF(DYNAINFO(7)=CANDDYNAINFO(10)=AMOUNT,VAR01,VAR02);
预量:=IF(V =预V1,V,预V1);
VA:=IF(C REF(C,1),预量,-预量);
:预量/MA(REF(V,1),5),NODRAW,COLORFFCC00;
YY:=IF(C LCANDC OAND(HHV(REF(H,1),18)/LLV(REF(L,1),18)) 1.1AND
SUM(C LC,18) SUM(C LC,18)ANDOBV18 0ANDSS0 SS1AND量比 2
ANDHHV
(CCI,10) 110ANDHHV(RSI,10) 100ANDHHV(J,10) 110,1,0);
突破横盘:IF(FILTER(YY,5)ANDYY=1,60,0),LINETHICK2,COLOR0000FF;
突破:IF(C LCANDC OANDSUM(C LC,18) SUM(C LC,18)ANDOBV18 0
ANDSS0 SS1ANDMA(C,5) MA(C,10)AND量比 1.6ANDHHV(CCI,10) 100
ANDHHV
(RSI,10) 100ANDHHV(J,10) 100,50,0),COLOR00AAAA;
突破0:=IF(FILTER(突破=50,5)AND突破=50,50,0);
高:IF(LC=HHV(LC,10)ANDREF(H,1)=HHV(REF(H,1),10)AND
(CROSS(110,CCI)ORCROSS(100,RSI)OR
CROSS(110,J)),70,100),COLOR00FF00;
STICKLINE(突破0=50,58,55,14,0),COLOR00CCCC;
STICKLINE(突破0=50,57,56,12,0),COLOR009999;
STICKLINE(突破0=50,45,48,4,0),COLOR0077AA;
STICKLINE(突破0=50,54,50,10,0),COLOR0088DD;
STICKLINE(突破0=50,55,48,6,0),COLOR00AAFF;
STICKLINE(突破0=50,53,52,4,0),COLOR000000;
STICKLINE(突破0=50,53,50,1,0),COLOR0077EE;
STICKLINE(突破0=50,60,55,7,0),COLOR8800CC;
STICKLINE(突破0=50,60,63,4,0),COLOR7700AA;
IF(突破0=50,57,DRAWNULL),LINETHICK4,POINTDOT,COLOR00FF00;
STICKLINE(突破0=50,26,20,12,0),COLORFFFFFF;
STICKLINE(突破0=50,33,25,14,0),COLOR8800CC;
STICKLINE(突破0=50,46,32,16,0),COLORAA00DD;
STICKLINE(突破0=50,37,34,8,0),COLOR00AAFF;
STICKLINE(突破0=50,50,44,2,0),COLOR000000;
STICKLINE(突破0=50,49,49,1,0),COLOR0000EE;
DRAWICON(突破0=50,39,9);
HJ_1:=MA(CLOSE,5);
HJ_2:=MA(CLOSE,10);
HJ_3:=MA(CLOSE,20);
HJ_4:=MA(CLOSE,30);
HJ_5:=MA(CLOSE,60);
HJ_6:=MA(CLOSE,120);
HJ_7:=MA(CLOSE,240);
HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100
HJ_9:=FILTER(HJ_8,10);
HJ_10:=BARSLAST(HJ_9);
HJ_11:=REF(HIGH,HJ_10+2);
HJ_12:=REF(HIGH,HJ_10+1);
HJ_13:=REF(HIGH,HJ_10);
HJ_14:=MAX(HJ_11,HJ_12);
HJ_15:=MAX(HJ_14,HJ_13);
HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100
HJ_17:=HJ_10
HJ_18:=(OPEN-HJ_15)/HJ_15*100
HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100
HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100
HJ_21:=VOL/MA(VOL,5)
HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100
HJ_23:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 =5AND
(CLOSE-OPEN)/(HIGH-CLOSE) 3ANDVOL/MA(VOL,5)
HJ_25:=HJ_16ANDHJ_17ANDHJ_18ANDHJ_19ANDHJ_20ANDHJ_21ANDHJ_22;
暴利:FILTER(HJ_25,15);
MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
PL1:=(((CLOSE-MA54)/MA54) 0.1);
PL2:=(((CLOSE-MA10)/MA10) 0.3);
偏离率:=(((PL1=1)AND(PL2=1))*0.2);
平台突破:=((((偏离率=0)AND(REF(偏离率,1)=0.2))AND(REF((COUNT((偏离率=
0.2),10)=10),1)=1))*-0.1);
妖股突破:平台突破=-0.1;
飞天:MA(CLOSE,25)+MA(CLOSE,25)*20/100,COLORRED,LINETHICK2;
强势线:MA(CLOSE,25)+MA(CLOSE,25)*6/100,COLORYELLOW,LINETHICK2;
支撑
线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORFF
CC00,LINETHICK2;
压力线:MA(HIGH,5),COLORMAGENTA;
MA10:MA(CLOSE,10),COLORYELLOW,LINETHICK0;
MA54:MA(CLOSE,54),COLORFFCCCC,LINETHICK0;
PL1:=(((CLOSE-MA54)/MA54) 0.1);
PL2:=(((CLOSE-MA10)/MA10) 0.3);
偏离率:=(((PL1=1)AND(PL2=1))*0.2);
平台突破:=((((偏离率=0)AND(REF(偏离率,1)=0.2))AND
(REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
DRAWTEXT(平台突破,L, 突破★ ),COLORFFCC00;
N1:=STRCAT(CON2STR(YEAR,0), 年
Y1:=STRCAT(CON2STR(MONTH,0), 月
R:=STRCAT(CON2STR(DAY,0), 日
SJ:=STRCAT(STRCAT(N1,Y1),R);
DRAWTEXT_FIX(C 0,0.8,0.28,0,SJ),COLORYELLOW;
MA5:MA(C,5);
MA8:MA(C,8);
MA10:MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30);
MA60:MA(C,60);
MA120:MA(C,120);
MA250:MA(C,250);
{卖点}
VAR6:=REF(CLOSE,1);
VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSEVAR6),6,1)*100;
STICKLINE(CROSS(84,VAR7),CLOSE,OPEN,2.8,0),COLORGREE
N;
卖出:=CROSS(84,VAR7);
DRAWTEXT(卖出,H*1.001, ),COLORGREEN;
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;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
何氏:=REF(J,1) 10AND
REF(MACD,1) REF(MACD,2)ANDMACD REF(MACD,1)
ANDMACD 0AND
CCI REF(CCI,1)AND(REF(CCI,2) -100OR
REF(CCI,3) -100);
{DRAWTEXT(何氏抄底,L*0.999, ↖买 ),COLORYELLOW;}
STICKLINE(何氏抄底,CLOSE,OPEN,3.2,0),COLORYELLOW;
{何氏妖股}月DIF:= MACD.DIF#MONTH
月DEA:= MACD.DEA#MONTH
周DIF:= MACD.DIF#WEEK
周DEA:= MACD.DEA#WEEK
日DIF:= MACD.DIF
日DEA:= MACD.DEA
日:=CROSS(日DIF,日DEA);
周金叉:=CROSS(周DIF,周DEA);
月金叉:=CROSS(月DIF,月DEA);
金叉:=IF(CROSS(周DIF,周
DEA),MACD+0.1,0),COLORWHITE,LINETHICK2;
共振:=IF((日DIF 日DEAAND周DIF 周DEAAND
月金叉)OR(周DIF 周DEAAND月DIF 月DEA
AND日金叉)ANDC/REF(C,1) 1.08
OR(月DIF 月DEAAND日DIF 日DEAAND周金
叉)OR(日金叉AND周金叉AND月金
叉),MACD+0.2,0),COLORF00FF0,LINETHICK3;
STICKLINE(金叉共振AND
C/REF(C,1) 1.05,O,REF(C,1)*1.05,3.2,0),COLOR0077FF;
STICKLINE(金叉共振AND
C/REF(C,1) 1.05,O,REF(C,1)*1.05,2.5,0),COLOR0099FF;
STICKLINE(金叉共振AND
C/REF(C,1) 1.05,O,REF(C,1)*1.05,1.9,0),COLOR00BBFF;
STICKLINE(金叉共振AND
C/REF(C,1) 1.05,O,REF(C,1)*1.05,1.2,0),COLOR00DDFF;
STICKLINE(金叉共振AND
公式解读:
源码如下:
WH01:=(HHV(C,10)-LLV(C,10))/LLV(C,10)*100
WH02:=SUM(VOL,10)/CAPITAL*100
WH03:=REF(WH01,1);
WH04:=HHVBARS(HIGH,55) 20 OR C=HHV(H,55);
WH05:=WH02
C REF(HHV(H,10),1);
WH05 AND REF(NOT(WH05),1);
放量:=VOL/REF(MA(VOL,5),1)
MA60:=MA(C,60);
H60:=HHV(H,60);
L60:=LLV(L,60);
最高价均价比:=(H60-MA60)/MA60;
最低价均价比:=(MA60-L60)/MA60;
横盘箱体:=REF(最高价均价比,1) 0.1 AND REF(最低价均价 比,1)
新高:=H=HHV(H,60);
箱体放量突破:放量AND 横盘箱体AND 新高;