通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信仙人指路副图指标公式
GLL:=-6;
VARY13:=HHV(HIGH,21);
VARY14:=LLV(LOW,21);
D:=Ema((CLOSE-VARY14)/(VARY13-VARY14)*100,5),,COLORREDLINETHICK2;
K:=EMA((CLOSE-VARY14)/(VARY13-VARY14)*100,20),,LINETHICK2COLORFF9933;
底:=5,,POINTDOTLINETHICK1COLORGREEN;
IF(crOSS(K,D)ANDD>55,100,115),COLORCYAN,LINETHICK2;
JM:=IF(YEAR>=2006ANDMONTH>12,0,1);
VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=stD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR16:=EMA(VAR15,13);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR1E:=AMOUNT/vol/100;
VAR1F:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=EMA(VAR25,5);
VAR28:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21));
VAR29:=(VAR1F-MA(VAR1F,90))/(0.015*AVEDEV(VAR1F,90));
VAR2A:=(({VAR29+VAR28+}VAR27+VAR26+VAR20)/3+165)/4;
VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2+VAR21;
VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2D:=EMA(VAR2C,13);{13}
VAR2E:=(VAR2A+VAR2C)/2/1.1;
DXM:=VAR2E*JM,COLORRED,LINETHICK1;
DX1:EMA(DXM,1),COLORFF3366,LINETHICK2;
DX2:=EMA(DX1,12),COLOR889900,LINETHICK2;
ZX:EMA((VAR2B+VAR2D)/2,2),COLORDDDDDD,LINETHICK2;
炒波段:=EMA(ZX,34),COLOR889900;
STICKLINE(ZX-REF(ZX,1)>0,ZX,0,10,0),COLORWHITE,LINETHICK1,POINTDOT;
STICKLINE(ZX-REF(ZX,1)<0,ZX,0,10,0),COLORFF9999,POINTDOT;
红灯:STICKLINE(ZX>100,120,110,10,0),COLORRED;
bias1W:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2W:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3W:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;
MN:=MA(MM,3),COLORCC0033,LINETHICK1;{
IF(MN<GLL,0,-35,),COLORGREEN,LINETHICK2;}
{A962:STICKLINE(MN<-9,0,-35,2,0),COLORYELLOW,;
A1272:STICKLINE(MN<-12,0,-35,2,0),COLORRED;}
J:=CROSS(DX1,0)ANDCOUNT(MN<-12,2)>=1ORCROSS(DX1,ZX)ANDCOUNT(MN<-12,2)>=1;
箭1272:=STICKLINE(J,100,0,3,0),COLORWHITE;
DRAWICON(J,100,1);
{DRAWICON(CROSS(DX1,DX2)ANDDX2>80OR(CROSS(60,mms)ANDZX>50)OR(CROSS(MMM,MMS)ANDMMM>50),110,3)};{卖}
DRAWICON(CROSS(DX1,ZX)ANDCOUNT(MN=1OR(CROSS(DX1,0)ANDCOUNT(MN=1)
{OR(CROSS(DX1,DX2)ANDCOUNT(MN=1)},-5,3);{弱};{强}
DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*10;
DEA:=EMA(DIFF,12);
STICKLINE(((CROSS(100,DX1)ORCROSS(ZX,DX1)ANDZX>80))>0,0,ZX,3,0)COLORRED;
{STICKLINE(HHV(ZX,1)>100,100,105,10,1),POINTDOT,LINETHICK3,,COLORBLUE;}
{QQ6:=COUNT((CROSS(DX1,0)ANDZX<10)>0,2)>=1;
DRAWICON(QQ6ANDCOUNT(MN=1,-20,2);}{XRZL3中的低买点}
{买}
{QQ1:=ZX<ZX买入;
QQ2:=DIFF-DEA>=0;
QQ3:=CROSS(DIFF,DEA);
QQ4:=COUNT(CROSS(DX1,ZX),20)>=1;
QQ5:=QQ1ANDQQ3ANDQQ4;
DRAWTEXT(QQ5>0,-10,'★'),COLORYELLOW,LINETHICK1;};
A1:=EMA(C,12)-EMA(C,25);
A2:=EMA(A1,6);
获利回吐:(A2>=0)*A2,COLORWHITE,LINETHICK0;
空头回补:(A2<0)*A2,COLORYELLOW,LINETHICK0;
坚绝做空:(A1<0)*A1,COLORGREEN,LINETHICK0;
买入持股:(A1>=0)*A1,COLORRED,LINETHICK0;
STICKLINE(A2>=0,A2,0,3.2,0),COLOR555555;
STICKLINE(A2>=0,A2,0,2.9,0),COLOR777777;
STICKLINE(A2>=0,A2,0,2.4,0),COLOR999999;
STICKLINE(A2>=0,A2,0,1.8,0),COLORBBBBBB;
STICKLINE(A2>=0,A2,0,1.1,0),COLORDDDDDD;
STICKLINE(A2>=0,A2,0,0.3,0),COLORFFFFFF;
STICKLINE(A2<0,A2,0,3.2,0),COLORFF5500;
STICKLINE(A2<0,A2,0,2.9,0),COLORFF7700;
STICKLINE(A2<0,A2,0,2.4,0),COLORFF9900;
STICKLINE(A2<0,A2,0,1.8,0),COLORFFBB00;
STICKLINE(A2<0,A2,0,1.1,0),COLORFFDD00;
STICKLINE(A2<0,A2,0,0.3,0),COLORFFFF00;
STICKLINE(A1<0,A1,0,3.2,0),COLORCC0066;
STICKLINE(A1<0,A1,0,2.9,0),COLOREE0066;
STICKLINE(A1<0,A1,0,2.4,0),COLORFF0066;
STICKLINE(A1<0,A1,0,1.8,0),COLORFF2266;
STICKLINE(A1<0,A1,0,1.1,0),COLORFF4466;
STICKLINE(A1<0,A1,0,0.3,0),COLORFF6666;
STICKLINE(A1>=0,A1,0,3.2,0),COLOR000055;
STICKLINE(A1>=0,A1,0,2.9,0),COLOR000077;
STICKLINE(A1>=0,A1,0,2.4,0),COLOR000099;
STICKLINE(A1>=0,A1,0,1.8,0),COLOR0000BB;
STICKLINE(A1>=0,A1,0,1.1,0),COLOR0000DD;
STICKLINE(A1>=0,A1,0,0.3,0),COLOR0000FF;
SAR持币:IF(SAR(10,2,20)>=H,0,DRAWNULL),CIRCLEDOT,COLORGREEN;
SAR持股:IF(SAR(10,2,20)<=L,0,DRAWNULL),CIRCLEDOT,COLOR000099;
[源码注释]通达信公式动态翻译结果
输出NOTEXT顶:250,画深灰色
输出NOTEXT底:-150,画深灰色
TYP赋值:(最高价+最低价+收盘价)/3
输出CCI:(TYP-TYP的14日简单移动平均)/(0.015*TYP的14日平均绝对偏差),画白色
C2赋值:(TYP-TYP的28日简单移动平均)/(0.015*TYP的28日平均绝对偏差)
C3赋值:(TYP-TYP的68日简单移动平均)/(0.015*TYP的68日平均绝对偏差)
输出CCI2:C2的2日指数移动平均,画黄色
输出CCI3:C3的2日指数移动平均,画洋红色
指标公式知识:
十种均线顶部卖出时机
1、5日均线下穿10日均线,且10日均线高位走平或向下,将有一段下跌行情;
2、10日均线下穿30日均线,且30日均线高位走平或向下,将有一段中级下跌行情;
3、60日均线走平或向下不会有大行情,弱市反弹几乎没有超过60日均线的;
4、5日均线与10日均线高位区死叉,必须逃顶或止损;
5、股价收阴并下破5日或10日均线,必须止损;
6、5日、10日均线下穿20日均线形成三角形,永久离场信号;(死亡三角形)夕阳西下。
注:当均量线也形成此类三角形,是绝对的顶部;
7、5日(10日)均线在高位经过上升、走平之后开始下滑,若此时股价收阴下破5日或10日均线,必须逃顶;
8、在日k线一直保持在10日均线之上时,可以一路持有,一旦股价以长阴或盘势跌破10日均线.应立即出货;
9、反弹走势中,如果收上影线较长且伴有较大成交量K线(无论阴阳),),表示反弹结束,且往往受阻于某一条重要均线如30或60日均线等,属于放量冲关不成,因此必回调;上影天量,金蝉脱壳!(也称:避雷针、断头铡刀、晒太阳)
10、一阴破三线,(即一阴跌破5日、10日、20日均线,)图穷匕现、绝顶的头部。
每日通达信公式解答:
股票公式编写要求:
今日开盘价大于昨日开盘价的选股公式。
股票公式编写结果:
o>ref(o,1);
评论(0)