通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
{仙人指路}
XV1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
XV2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
XV3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
XV4:=(XV1+2*XV2+3*XV3)/6;
XV5:=MA(XV4,3);
XV8:=IF(YEAR =2008ANDMONTH 0,0,1);
XV9:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
XVA:=SMA(XV9,3,1);
XVB:=SMA(XVA,3,1);
XVC:=3*XVA-2*XVB;
XVD:=LLV(LOW,5);
XVE:=HHV(HIGH,5);
XVF:=EMA((CLOSE-XVD)/(XVE-XVD)*100,4)*2;
XV10:=EMA(0.667*REF(XVF,1)+0.333*XVF,2);
XV11:=3*XVF-2*XV10;
XV12:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
XV13:=POW(MA(LOW,5),2)+MA(LOW,5);
XV14:=POW(MA(HIGH,5),2)+MA(HIGH,5);
XV15:=(XV12-LLV(XV13,64))/(HHV(XV14,64)-LLV(XV13,64))*150+65-10;
XV16:=SMA(XV15,3,1)*1.5-100;
XV17:=SMA(XV16,3,1);
XV18:=3*XV16-2*XV17;
XV19:=(HIGH+LOW+CLOSE*2)/4;
XV1A:=EMA(XV19,13);
XV1B:=STD(XV19,13);
XV1C:=(XV19-XV1A)*100/XV1B;
XV1D:=EMA(XV1C,5);
XV1E:=EMA(XV1D,13);
XV1F:=EMA(XV1D,13)+200-100;
XV20:=EMA(XV1F,10);
XV21:=3*XV1F-2*XV20;
XV22:=XVA+XVF+XV16+XV1F;
XV23:=XVB+XV10+XV17+XV20;
XV24:=XVC+XV11+XV18+XV21;
XV25:=(HIGH+LOW+CLOSE)/3;
XV26:=AMOUNT/VOL/100;
XV27:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
XV28:=(XV25-MA(XV25,34))/(0.015*AVEDEV(XV25,34));
XV29:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
XV2A:=(HIGH+LOW+CLOSE+XV25)/4;
XV2B:=EMA(XV2A,24);
XV2C:=STD(XV2A,24);
XV2D:=(XV2A-XV2B)/XV2C*100;
XV2E:=(XV25-MA(XV25,24))/(0.015*AVEDEV(XV25,24));
XV2F:=EMA(XV2D,5);
XV30:=(XV26-MA(XV26,21))/(0.015*AVEDEV(XV26,21));
XV31:=(XV27-MA(XV27,90))/(0.015*AVEDEV(XV27,90));
XV32:=((XV2F+XV2E+XV28)/3+165)/4;
XV33:=(EMA(EMA(EMA(XV32,15),10),5)-25)*2+XV29;
XV34:=(XV22+XV23+XV24*30)/32/5-15;
XV35:=EMA(XV34,13);
XV36:=(XV32+XV34)/2/1.1;
XV37:=XV36*XV8;
XV38:=EMA((XV33+XV35)/2,2)*XV8;
XV3A:=CROSS(XV37,0)*XV8ANDCOUNT(XV5 -12,2) =1ORCROSS(XV37,XV38)ANDCOUNT(XV5 -12,2)
仙人指路:XV3AOR(CROSS(XV37,XV38)ANDCOUNT(XV5 -10,2) =1ORCROSS(XV37,0)ANDCOUNT(XV5 -10,2)) =1,stick3d,colorred;
N:=10;
量:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
量1:=EMA(量,3);
量2:=EMA(量,5);
量3:=EMA(量,7);
Y:=MA(量1,6);
Y1:=MA(Y,2);
Y2:=MA(Y,4);
Y3:=MA(Y,6);
强弱分界:(Y1+Y2+Y+Y3)/4,COLORGREEN,LINETHICK2;
IF(强弱分界 量3,强弱分界,DRAWNULL),COLORRED,LINETHICK2;
STICKLINE(量1 =量2,量3,量1,2,0),COLOR000055;
STICKLINE(量1 =量2,量3,量1,1.8,0),COLOR0000BB;
STICKLINE(量1 =量2,量3,量1,1.4,0),COLOR0000CC;
STICKLINE(量1 =量2,量3,量1,1,0),COLOR0000DD;
STICKLINE(量1 =量2,量3,量1,0.5,0),COLOR0000FF;
STICKLINE(量1 =量2,量3,量1,2,0),COLOR000055;
STICKLINE(量1 =量2,量3,量1,1.8,0),COLORFF3300;
STICKLINE(量1 =量2,量3,量1,1.4,0),COLORFF5500;
STICKLINE(量1 =量2,量3,量1,1,0),COLORFF7700;
STICKLINE(量1 =量2,量3,量1,0.5,0),COLORFF9900;
T1:=量2 =量3AND量1 REF(量1,1);
T2:=量2 量3AND量1 REF(量1,1);
STICKLINE(T1,量1,量3,2,0),COLORFFBB11;
STICKLINE(T1,量1,量3,1.8,0),COLORFFCC22;
STICKLINE(T1,量1,量3,1.4,0),COLORFFDD33;
STICKLINE(T1,量1,量3,1,0),COLORFFEE44;
STICKLINE(T1,量1,量3,0.5,0),COLORFFFF55;
STICKLINE(T2,量1,量3,2,0),COLOR338FDD;
STICKLINE(T2,量1,量3,1.8,0),COLORFF00FF;
STICKLINE(T2,量1,量3,1.4,0),COLOR00DDFF;
STICKLINE(T2,量1,量3,1,0),COLOR00AAFF;
STICKLINE(T2,量1,量3,0.5,0),COLOR00BBFF;
大涨:=CLOSE/REF(CLOSE,1) =1.09OR((H-L)/REF(C,1) 0.1ANDC=H),LINETHICK0,COLOR00FFFF;
STICKLINE(大涨,量1,量3,2,0),COLOR00FFFF;
大跌:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1) -0.098OR((H-L)/REF(C,1) 0.1ANDC=L),LINETHICK0,COLOR00FF00;
STICKLINE(大跌,量1,量3,2,0),COLOR00FF00;
HH:=HHV(量1,N);
LL:=LLV(量1,N);
LC:=REF(C,1);
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;
低0:=IF(LLV(CCI,10) 0ANDLLV(RSI,10) 0ANDC=LLV(C,10)ANDL=LLV(L,10),40,0);
低:=IF(FILTER(低0=40,5),50,0);
DRAWICON(低=50,量1-0.05,9);
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);
线:=EMA(A1,5),LINETHICK2,COLOR6600FF;
A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;
A3:=EMA(C,5);
A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
线:=(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;
A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
DRAWTEXT(FILTER(REF(黑马线,1) 90ANDA2 0,7),量1+0.5, 跑 ),COLOR00FF00;
DRAWTEXT(CROSS(A1,黑马线)AND黑马线 A5,量3-1.5, 21D
P1:=20,32,28;
P2:=32,35,32;
P3:=35,38,35;
VARA2:=LLV(LOW,10);
VARA3:=HHV(HIGH,25);
警戒线1:=P1/10;
减仓线1:=P2/10;
卖出线1:=P3/10;
动力线1:=EMA((CLOSE-VARA2)/(VARA3-VARA2)*4,4);
警惕:IF(CROSS(动力线1,警戒线1),量2+3,DRAWNULL),POINTDOT,LINETHICK5,COLORF00FF0;
逢高减磅:IF(CROSS(动力线1,减仓线1),量2+2,DRAWNULL),POINTDOT,LINETHICK5,COLORF0F000;
NG1:=20;
VARG2:=((3*SMA((((CLOSE-LLV(LOW,NG1))/(HHV(HIGH,NG1)-LLV(LOW,NG1)))*100),5,1))-(2*SMA(SMA((((CLOSE-LLV(LOW,NG1))/(HHV(HIGH,NG1)-LLV(LOW,NG1)))*100),5,1),3,1)));
秘密买点:IF((VARG2 =3),量2+5,强弱分界),COLORWHITE;
绝密买点:IF((VARG2 =0),量2+4,强弱分界),COLORRED;
STICKLINE(VARG2 0,量2,量2+4,0.5,0),COLORRED;
FFF:=REF((H-MAX(C,O))/ABS(C-O) 2ANDC O,1)AND((MIN(C,O)-L)/ABS(C-O) 2ANDC O);
抄点:STICKLINE(FFF,0,10,3,0),COLORLICYAN;
X1:=(CLOSE+LOW+HIGH)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
VAR2:=EMA(EMA(X1,1),13);
VAR3:=EMA(VAR2,21);
XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3);
XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3);
TEMPG:=MAX(HIGH,XOPEN);
XHIGH:=EMA(MAX(TEMPG,XCLOSE),3);
TEMP:=MIN(LOW,XOPEN);
XLOW:=EMA(MIN(TEMP,XCLOSE),3);
O1:=IF(XOPEN XCLOSE,XOPEN,XCLOSE);
C1:=IF(XOPEN XCLOSE,XCLOSE,XOPEN);
{K线}
STICKLINE(XOPEN =XCLOSE,XHIGH,XLOW,0,0),COLORCYAN;
STICKLINE(XOPEN =XCLOSE,C1,O1,4,0),COLORFF6600;
STICKLINE(XOPEN =XCLOSE,C1,O1,3,0),COLORFF6600;
STICKLINE(XOPEN =XCLOSE,C1,O1,2.5,0),COLORFF9900;
STICKLINE(XOPEN =XCLOSE,C1,O1,1.5,0),COLORFF9900;
STICKLINE(XOPEN =XCLOSE,C1,O1,0.9,0),COLORFFCC00;
STICKLINE(XOPEN =XCLOSE,C1,O1,0.3,0),COLORFFCC00;
STICKLINE(XOPEN XCLOSE,XHIGH,XLOW,0,0),COLORRED;
STICKLINE(XOPEN XCLOSE,C1,O1,4,0),COLOR000099;
STICKLINE(XOPEN XCLOSE,C1,O1,3,0),COLOR000099;
STICKLINE(XOPEN XCLOSE,C1,O1,2.5,0),COLOR0000CC;
STICKLINE(XOPEN XCLOSE,C1,O1,1.5,0),COLOR0000CC;
STICKLINE(XOPEN XCLOSE,C1,O1,0.9,0),COLOR0000FF;
STICKLINE(XOPEN XCLOSE,C1,O1,0.3,0),COLOR0000FF;
AC:=CLOSE;
转强:=MA(HIGH,6);
转弱:=MA(LOW,6);
B:=CLOSE*0;
转折线:IF(B=-1,MA(HIGH,6),MA(LOW,6)),LINETHICK2,COLORYELLOW;
DRAWTEXTABS(10,3, 第一根红K不能国内与黄线有连接 ),LINETHICK2,COLORMAGENTA;
公式解读:
[源码注释]通达信公式动态公式解读输出创业板:如果模糊匹配品种代码,返回1,否则返回0
看跌吞没形态的使用方法
看跌吞没形态必须由两条蜡烛线组成,其中第二根蜡烛线的实体必须吞没第一根蜡烛线的实体,但是不一定要吞没前者的上下影线。
看跌吞没形态的二个实体必须是颜色相反,前阳后阴。如果前面那根蜡烛线是十字线,也可以是阴线,这是唯一的例外。
二、看跌吞没形态意味增强的一些条件。
1.看跌吞没形态的第一根蜡烛线实体非常小,而第二天的实体非常大。
2.看跌吞没形态出现在超长期或者非常急剧的跌势以后。
3.在看跌吞没形态中,第二根阴线伴有超额的交易量。
4.在看跌吞没形态中,向前吞没的实体不止一个。
如果出现上述情况之一,可以强烈的预示上升趋势即将结束,新的下降趋势即将到来。
三,实例
如下图,一根大阴线吞没了三根阳线,意味着前面由锤子和看涨吞没形态引发的涨势的终结,并且意味着一波强劲跌势的开始。
再看下图,由一个强劲的看涨吞没形态形态开始的一波升势,终结于一个强劲的看跌吞没形态,这个形态向前吞没了五根阳线,意味着极度的市场恐慌情绪。
一个看跌吞没形态终结了由一个看涨孕线开始的上升趋势。
如下图,图中出现了两个看跌吞没形态形态,前面那一个阻止了强劲的升势,价格走势出现盘整态势,这告诉我们,看跌形态的出现,并不意味着跌势的开始,仅仅意味着升势的终结。
下面这个看跌吞没形态向前吞没了多个k线。
公式编写要求:
去除沪深股票只选创业板股票的指标。
公式编写方法:
创业板:IF(CODELIKE( 300 ),1,0);