通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信仙人指路选股指标公式
VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR4:=(VAR1+2*VAR2+3*VAR3)/6;
VAR5:=MA(VAR4,3);
VAR6:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
VAR7:=SMA(SMA(VAR6,2,1)+3,2,1);
STICKLINE(VAR7<20,-30,-40,10,1),COLORFFFF00;
VAR9:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VARA:=SMA(VAR9,3,1);
VARB:=SMA(VARA,3,1);
VARC:=3*VARA-2*VARB;
VARD:=LLV(LOW,5);
VARE:=HHV(HIGH,5);
VARF:=EMA((CLOSE-VARD)/(VARE-VARD)*100,4)*2;
VAR10:=EMA(0.667*REF(VARF,1)+0.333*VARF,2);
VAR11:=3*VARF-2*VAR10;
VAR12:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VAR13:=POW(MA(LOW,5),2)+MA(LOW,5);
VAR14:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VAR15:=(VAR12-LLV(VAR13,64))/(HHV(VAR14,64)-LLV(VAR13,64))*150+65-10;
VAR16:=SMA(VAR15,3,1)*1.5-100;
VAR17:=SMA(VAR16,3,1);
VAR18:=3*VAR16-2*VAR17;
VAR19:=(HIGH+LOW+CLOSE*2)/4;
VAR1A:=EMA(VAR19,13);
VAR1B:=STD(VAR19,13);
VAR1C:=(VAR19-VAR1A)*100/VAR1B;
VAR1D:=EMA(VAR1C,5);
VAR1E:=EMA(VAR1D,13);
VAR1F:=EMA(VAR1D,13)+200-100;
VAR20:=EMA(VAR1F,10);
VAR21:=3*VAR1F-2*VAR20;
VAR22:=VARA+VARF+VAR16+VAR1F;
VAR23:=VARB+VAR10+VAR17+VAR20;
VAR24:=VARC+VAR11+VAR18+VAR21;
VAR25:=(HIGH+LOW+CLOSE)/3;
VAR26:=AMOUNT/VOL/100;
VAR27:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
VAR28:=(VAR25-MA(VAR25,34))/(0.015*AVEDEV(VAR25,34));
VAR29:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR2A:=(HIGH+LOW+CLOSE+VAR25)/4;
VAR2B:=EMA(VAR2A,24);
VAR2C:=STD(VAR2A,24);
VAR2D:=(VAR2A-VAR2B)/VAR2C*100;
VAR2E:=(VAR25-MA(VAR25,24))/(0.015*AVEDEV(VAR25,24));
VAR2F:=EMA(VAR2D,5);
VAR30:=(VAR26-MA(VAR26,21))/(0.015*AVEDEV(VAR26,21));
VAR31:=(VAR27-MA(VAR27,90))/(0.015*AVEDEV(VAR27,90));
VAR32:=((VAR2F+VAR2E+VAR28)/3+165)/4;
VAR33:=(EMA(EMA(EMA(VAR32,15),10),5)-25)*2+VAR29;
VAR34:=(VAR22+VAR23+VAR24*30)/32/5-15;
VAR35:=EMA(VAR34,13);
VAR36:=(VAR32+VAR34)/2/1.1;
VAR38:=EMA((VAR33+VAR35)/2,2);
VAR39:=EMA(VAR38,34);
STICKLINE(VAR36>VAR38,VAR36,VAR38,6,1),COLORYELLOW;
STICKLINE(VAR36>VAR39,VAR36,VAR39,3,0),COLORRED;
STICKLINE(VAR36<VAR39,VAR36,VAR39,6,1),COLORFF0033;
STICKLINE(VAR36<VAR38ANDVAR36>VAR39,VAR36,VAR38,3,1),COLORWHITE;
STICKLINE(VAR36<VAR39,120,125,6,1),COLORFF0033;
STICKLINE(VAR36>VAR39,120,125,3,0),COLORRED;
VAR3A:=CROSS(VAR36,0)ANDCOUNT(VAR5<-12,2)>=1ORCROSS(VAR36,VAR38)ANDCOUNT(VAR5<-12,2)>=1;
STICKLINE(VAR3A,100,0,3,0),COLORFF0033;
VAR3C:=(HIGH+LOW+CLOSE*2)/4;
VAR3D:=EMA(VAR3C,21);
VAR3E:=STD(VAR3C,21);
VAR3F:=((VAR3C-VAR3D)/VAR3E*100+200)/4;
VAR40:=(EMA(VAR3F,5)-25)*1.56;
VAR41:=EMA(VAR40,2)*1.22;
AJD:EMA(VAR41,2),COLORGREEN;
AJJ:3*VAR41-2*AJD;
STICKLINE(AJJ>100,120,125,8,0),COLORWHITE;
100;
YS1:=(HIGH+LOW+CLOSE*2)/4;
RK3:=EMA(YS1,10);
RK4:=STD(YS1,10);
RK5:=(YS1-RK3)*100/RK4;
RK6:=EMA(RK5,5);
RK7:=EMA(RK6,10);
涨:=EMA(RK6,10)+100/2-5;
跌:=EMA(涨,4);
天晴了:=IF(CROSS(涨,跌)AND跌<-10,20,0);
DRAWICON(天晴了ANDIF(EMA((CLOSE+HIGH+LOW)/3,10)>REF(EMA((CLOSE+HIGH+LOW)/3,10),1),EMA((CLOSE+HIGH+LOW)/3,10),0),0,1);
EXP1:EMA(CLOSE,5);
EXP2:EMA(CLOSE,13);
EXP3:EMA(CLOSE,21);
EXP4:EMA(CLOSE,55);
杨柳:=O>C*1.02ANDO>REF(C,1)*1.04ANDV=HHV(V,60);
YLD:=CONST(HHV(杨柳,13))=杨柳;
YLHD:=REF(H,BARSLAST(YLD));
仙人指路:=H/C>1.03AND(H-MAX(O,C))/MAX(O,C)*100>3ANDSUM((C-REF(C,1))/REF(C,1)*100,5)<15ANDATAN((EXPMA(C,12)/REF(EXPMA(C,12),1)-1)*100)*180/3.1416>45ANDH=HHV(H,3)ANDC>REF(C,1);
DRAWTEXT(仙人指路,L-L*0.1,'仙人指路'),COLORLIRED;
AA:=VOL/MA(REF(VOL,1),5);
HS:=DYNAINFO(8)*10000/FINANCE(46),NODRAW;
倒拔杨柳:=O>C*1.02ANDO>REF(C,1)*1.04ANDV=HHV(V,30);
DRAWTEXT(倒拔杨柳,(O-C)/2+C,'倒拔杨柳'),COLORRED;
[源码注释]通达信公式动态翻译结果
SZX赋值:(收盘价和开盘价的较大值/收盘价和开盘价的较小值-1)*100<=1 AND 最高价>收盘价和开盘价的较大值 AND 最低价<收盘价和开盘价的较小值
输出XG:3日前的收阳线 AND 最近3日一直存在SZX AND 最近3日一直存在成交量(手)<1日前的成交量(手)
指标公式知识:
假阴真阳的正确玩法
“假阴真阳”的正确玩法:无论哪种类型的假阴真阳实盘操作中必须关注次日的股价走向,只有当股价超越其开盘价后方可介入。这样玩失误会小些。请看案例:
简述:1.图中圈起的“假阴真阳”是洗盘后的测试十字星结构。这种结构的“假阴真阳”基因是比较好玩的一种;2.两图中都走出“价升量缩”结构(B柱小于A柱),那么后市走好是大概率事件。
每日通达信公式解答:
股票公式编写要求:
第一根k线为阳,第二根、第三根、第四根k线为涨跌幅小于1%的十字星,三根十字星为逐日缩量的选股公式。
股票公式编写结果:
SZX:=(MAX(C,O)/MIN(C,O)-1)*100<=1 AND H>MAX(C,O) AND L<MIN(C,O);
XG:REF(C>O,3) AND EVERY(SZX,3) AND EVERY(V<REF(V,1),3);
评论(0)