通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
TYP:=(h+l+2*c)/4;
x:=WMA(TYP,3);
II1:=DMA(TYP,BETA(35));
1:SLOPE(ii1*3-REF(ii1,5),3)+C,colorffff00,layer0,LINETHICK2;
LS26:=EMA(CLOSE,2)-EMA(CLOSE,150);
LS27:=EMA(LS26,100);
LS28:=2*(LS26-LS27);
LS29:=POW(LS28,3)*0.1+POW(LS28,1);
线:IF(LS280.1,LS29,0)*5;
量价线:(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
X1:LLV(HIGH,240);
X2:REF(LLV(CLOSE,480),1);
X3:REF(HHV(CLOSE,480),1);
N1:=16;
N2:=26;
N3:=9;
SAT:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26);
能量:=IF(SAT 1,1,SAT)*100,COLORYELLOW,LINETHICK0;
换手:=/CAPITAL*100,COLORWHITE,LINETHICK0;
①量:=Ema(换手,N1)-EMA(换手,N2);
②量:=EMA(①量,N3);
①价:=EMA(CLOSE,N1)-EMA(CLOSE,N2);
②价:=EMA(①价,N3);
柱能:=(①价-②价)*2;
坑:IF(②价0,(①价-②价)*2,0,2.5,0),COLORRED;
STICKLINE((①价-②价)*20,(①价-②价)*2,0,2.5,0),COLOR6F51E3;
STICKLINE((①价-②价)*2 REF((①价-②价)*2,1)AND(①价-②价)*2②量,①量,②量,1,1),COLORYELLOW;
STICKLINE(①量②价,①价,②价,1,0),COLORBLUE;
STICKLINE(①价 ②价AND①价 REF(①价,1),①价,②价,1,0),COLORMAGENTA;
STICKLINE(①价0,0.078,0.06,0,EXTERNSTR(0,2)),COLORFF00FF,LINETHICK2;
DA3:=YEARANDMONTHANDDAY;
AAA:=STRCAT(CON2STR(YEAR,0), 年
AAB:=STRCAT(CON2STR(MONTH,0), 月
AA33:=STRCAT(CON2STR(DAY,0), 日
AA4:=STRCAT( 【 ,IF(WEEKDAY=1, 星期一 ,IF(WEEKDAY=2, 星期二 ,
IF(WEEKDAY=3, 星期三 ,IF(WEEKDAY=4, 星期四 ,IF(WEEKDAY=5, 星期五 ,
IF(WEEKDAY=6, 六 , 日 )))))));
AA:=STRCAT(STRCAT(STRCAT(AAA,AAB),STRCAT(AA33,AA4)), 】
SA:DRAWTEXT_FIX(DA3,0,1,0,AA),COLORGREEN;
TY:=H;DRAWTEXT_FIX(C O,0.01,0.9,0, 好股网 ),COLOR99EEEE;
TY2:=L;
A1:=REF(TY,10)=HHV(TY,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY2,10)=LLV(TY2,2*10+1);
B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
前期高:REF(H,BARSLAST(HD)),COLOR00FF00,NODRAW;
STICKLINE(H,前期高,前期高,2,0),COLORMAGENTA;
前期低:REF(L,BARSLAST(LD)),COLORRED,NODRAW;
STICKLINE(L,前期低,前期低,2,0),COLORBLUE;
{DRAWNUMBER(FILTER(C1,10),HIGH,H),DRAWABOVE;
DRAWNUMBER(FILTER(C2,10),L,L);}
半分位:=(O+C)/2;
昨半分位:=REF(半分位,1);
STICKLINE(ISLASTBAR,昨半分位,昨半分位,2,0),COLORWHITE;
{DRAWNUMBER(ISLASTBAR,昨半分位,昨半分位);}
C2A:=REF(C,1),NODRAW;
:=REF(C,1)*1.1-C=(10-0.01*100/C2A)ANDL=C,1,0),NODRAW;
STICKLINE(跌停,OPEN,CLOSE,1,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
ZT:=C/REF(C,1) 1.097;
XH:=FILTER(ZT,13);
BH:=BARSLAST(ZT);
CZ:=REF(H,BH)-REF(L,BH);
{STICKLINE(C,(REF(L,BH)+CZ*0.5),(REF(L,BH)+CZ*0.5),2,0),COLORRED;
STICKLINE(C,REF(L,BH),REF(L,BH),2,0),COLORBLUE;}
{DRAWTEXT(ZT,L*0.98, 涨停 ),COLORF00FF0;}
VARZT:=BARSLAST(C/REF(C,1) 1.097);
{STICKLINE(VARZT=2,L*0.97,L*0.98,0,0),COLOR0000FF;}
DRAWTEXT(VARZT=3,H*1.02, 3天 ),COLORYELLOW;
{STICKLINE(VARZT=4,H*1.03,H*1.02,0,0),COLOR9966FF;}
DRAWTEXT(VARZT=5,H*1.02, 5天 ),COLORYELLOW;
{STICKLINE(VARZT=7,L*0.97,L*0.98,0,0),COLOR00FFFF;}
DRAWTEXT(VARZT=8,H*1.02, 8天 ),COLORYELLOW;
{STICKLINE(VARZT=12,H*1.03,H*1.02,0,0),COLORFF33FF;}
DRAWTEXT(VARZT=13,H*1.02, 13天 ),COLORYELLOW;
{STICKLINE(VARZT=20,L*0.97,L*0.98,0,0),COLOR0066FF;}
DRAWTEXT(VARZT=21,H*1.02, 21天 ),COLORYELLOW;
{STICKLINE(VARZT=33,H*1.03,H*1.02,0,0),COLOR9932CD;}
DRAWTEXT(VARZT=34,H*1.02, 34天 ),COLORYELLOW;
{STICKLINE(VARZT=54,L*0.97,L*0.98,0,0),COLOR006600;}
DRAWTEXT(VARZT=55,H*1.02, 55天 ),COLORYELLOW;
{STICKLINE(VARZT=88,H*1.03,H*1.02,0,0),COLOR00FF00;}
DRAWTEXT(VARZT=89,H*1.02, 89天 ),COLORYELLOW;
{STICKLINE(VARZT=143,L*0.97,L*0.98,0,0),COLORCCFFFF;}
DRAWTEXT(VARZT=144,H*1.02, 144天 ),COLORYELLOW;
{STICKLINE(VARZT=232,H*1.03,H*1.02,0,0),COLORFF0033;}
DRAWTEXT(VARZT=233,H*1.02, 233天 ),COLORYELLOW;
{STICKLINE(VARZT=376,L*0.97,L*0.98,0,0),COLORFF9966;}
DRAWTEXT(VARZT=377,H*1.02, 377天 ),COLORYELLOW;
JJ:=(3*C+H+L+O)/6;
VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)
+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
TJ1:=VOL=HHV(VOL,10)ANDVOL 2*REF(VOL,1)ANDCLOSE VAR1ANDC REF(C,1);
LJL:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(LJL)=1ANDCLOSE REF(HIGH,1),1,
IF(BARSLAST(LJL)=2ANDCLOSE REF(HIGH,2),1,IF(BARSLAST(LJL)=3ANDCLOSE REF(HIGH,3),1,0)));
TP:=TJ2=1;
{STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),2,0),COLORYELLOW;}
TJ3:=IF(BARSLAST(LJL)=1ANDCLOSE REF(LOW,1),1,
IF(BARSLAST(LJL)=2ANDCLOSE REF(LOW,2),1,IF(BARSLAST(LJL)=3ANDCLOSE REF(LOW,3),1,0)));
STFZ:=TJ3=1;
CL:=STFZANDTP;
TJCL:=FILTER(CL,3);
DRAWTEXT(LJL,L*0.98, ↖黄金量 ),COLORYELLOW;
STICKLINE(LJL,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(LJL,H,L,0,0),COLORYELLOW;
B_1:=CLOSE =REF(HIGH,1)ANDLOW=200ANDH =顶点,O,C,3,0),COLORBLUE;
STICKLINE(CCI=3ANDL REF(H,1)ANDL REF(HH,1);
FT:=BACKSET(XG,T+1);
STICKLINE(FTANDXG=0,C,O,3,0),COLOR00FFFF;
STICKLINE(FT ANDXG=0,H,L,0,0),COLOR00FFFF;
STICKLINE(FTANDXG=0,LKL,LKL,4,0),COLORFFAA00;
STICKLINE(FT ANDXG=0,REFX(REF(HH,1),BARSNEXT(XG)),REFX(REF(HH,1),BARSNEXT(XG)),4,0),COLORFFAA00;};
公式解读:
公式编写要求:
求老师根据倍量拐点编写个选股公式倍量拐点公式源码〖量〗:VOL,NODRAW,VOLSTICK;STICKLINE(V =3*REF(V,1),V/3,V/3,3.9,0),COLORWHITE;STICKLINE(V =2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW;流通〖亿〗:CAPITAL/1000000,LINETHICK0;内外比:DYNAINFO(51),COLORYELLOW,NODRAW;单日:V/REF(V,1),COLORWHITE,NODRAW;五日量比:V/(REF(MA(V,5),1)/240*FROMOPEN),COLORYELLOW,NODRAW;5换:SUM(100*V/CAPITAL,5),LINETHICK0;10换:SUM(100*V/CAPITAL,10),LINETHICK0;20换:SUM(100*V/CAPITAL,20),LINETHICK0;要求1出现倍量的时候选出2均线5101520多头排列3流通盘小于20亿4收盘价小于15元5符合以上要求的股票输出1()
公式编写方法:
A1:=V/REF(V,1) 1.99;
A2:=MA(C,5) MA(C,10)ANDMA(C,10) MA(C,15)ANDMA(C,15) MA(C,20);
A3:=CAPITAL/1000000
A4:=C
XG:A1ANDA2ANDA3ANDA4;