通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、趋势指标公式无未来函数
CG:MA(C,21),COLOR00FF00,LINETHICK2;
FL:HHV(CG,3),COLORFF0000,LINETHICK2;
FS:CG-(FL-CG),COLORRED,LINETHICK2;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1);B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD));
Z:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD);
T2:=BARSLAST(HD)>BARSLAST(LD)ANDNOT(LD);
前期头
郤:IF(T1,A,A),COLORFF00FF,LINETHICK2,POINTDOT;
前期底
部:IF(T2,Z,Z),COLORWHITE,LINETHICK2,POINTDOT;
上收:=C;上开:=O;上高:=H;上低:=L;
止赢逃命:MA(REF(HHV(上
收,21),1),21),CIRCLEDOT,COLOR00FFFF,LINETHICK0;
全仓杀入:MA(REF(LLV(上
收,30),1),21),CIRCLEDOT,COLORRED,LINETHICK0;
明日买卖提示:EMA(CLOSE,3.5),COLORF00FF0;
STICKLINE(C<全仓杀入AND
C<=O,C,O,6,0),COLOR00FFFF;
STICKLINE(C>止赢逃命AND
C>O,C,O,6,0),COLORRED;
STICKLINE(C<全仓杀入AND
C<=O,C,O,6,0),COLOR00FFFF;
STICKLINE(C<全仓杀入AND
C<=O,H,L,2,0),COLOR00FFFF;
STICKLINE(C<全仓杀入AND
C>O,C,H,1,0),COLOR00FFFF;
STICKLINE(C<全仓杀入AND
C>O,O,L,3,0),COLORRED;
STICKLINE(C<全仓杀入AND
C<=O,C,L,3,0),COLORFF00FF;
STICKLINE(C<全仓杀入AND
C>O,C,O,6,2),COLORRED,LINETHICK3;
STICKLINE(C>止赢逃命AND
C<=O,C,O,6,2),COLOR00FF00,LINETHICK2;
STICKLINE(MA(C,60)>=REF(MA(C,60),12),MA(C,60),M
A(C,60),6,4),COLORFF00FF,LINETHICK4;
DRAWTEXT(CROSS(明日买卖提示,止赢逃命),明日买卖提
示-0.1,'——追涨'),COLOR00FF00;
DRAWTEXT(CROSS(止赢逃命,明日买卖提示),止赢逃命
+0.2,'-减仓-'),COLOR00FFFF;
DRAWTEXT(CROSS(明日买卖提示,全仓杀入),明日买卖提
示-0.1,'买进——-'),COLORFFFF00;
OK:=EMA(O,60);
CG:=EMA(C,60);
PDU:=IF(OK>REF(OK,1)ANDCG>REF(CG,1),1,0);
Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);
LIFE:=(EMA(C,60)+EMA(C,90))/2;
VAR1:=(2*C+H+L)/4;
SNOOK:=EMA(VAR1,99)*0.91;
A1:=(C-REF(C,1))/REF(C,1)*100;
MA5:=BARSLAST(A1>3);MA20:=IF(MA5>0,1,0);
BY34:=MA(C,5);
招财猫:MA(C,34),LINETHICK2,COLORYELLOW;
变易鼠:IF(BY34>招财猫,招财猫,BY34),COLORRED,LINETHICK2;
DRAWTEXT(((CLOSE/REF(CLOSE,1))>=1.095),(HIGH*1.04),'板
'),LINETHICK2,COLOR00FFFF;
总手:VOL;
N1:=5;
N2:=63;
MAVOL$1:MA(VOL,N1),colorwhite;
MAVOL$2:MA(VOL,N2),coloryellow;
STICKLINE(VOL
STICKLINE((VOL>MA(VOL,N1))AND(VOL<=MA(VOL,N2)),VOL,0,8,0),colorligreen;
STICKLINE((VOL>MA(VOL,N2)),VOL,0,8,0),colorred;
STICKLINE((VOL=HHV(VOL,60)),VOL,0,8,0),colorwhite;
来势线:EMA(CLOSE,7)-EMA(CLOSE,21),coloryellow;
福星:EMA(来势线,7),COLORSTICK,colorred;
VAR00:=CLOSE/REF(LLV(LOW,35),5)<1;
决策:IF(VAR00,0.5,0),STICK,colorblue;
必买:IF(TROUGHBARS(3,15,1)=0ANDHIGH>LOW+0.01,1,-1),coloryellow;
必卖:IF(PEAKBARS(3,15,1)=1,1,2),colorwhite,LINETHICK1;
趋势线:(EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,colorred;
逃顶线:EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR00FF00;
二、无未来函数暴涨指标
V1:=EMA(CLOSE,5);
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV2:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K2:=SMA(RSV2,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
压力位:=IF(CROSS(J2,J),H,REF(H,BARSLAST(CROSS(J2,J))));
xg:IF((CROSS(C,压力位)ORCROSS(V1,压力位))AND(C>1.05*REF(C,1)ORREF(C,1)>1.05*REF(C,2))
AND(V>1.5*REF(V,1)ORREF(V,1)>2*REF(V,2))ANDMA(V,5)>MA(V,60),20,0),colorred,LINETHICK2;
H1:EMA(SLOPE(CLOSE,34)*20+CLOSE,75),coloryellow;
H2:EMA(CLOSE,8),colorwhite;
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
MA5:MA(CLOSE,120);
MA6:MA(CLOSE,250);
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD)ANDNOT(HD);
T2:=BARSLAST(HD)>BARSLAST(LD)ANDNOT(LD);
波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;
VAR3:=LLV(H,240);
VAR4:=100*(C-VAR3)/VAR3;
VAR5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;
VAR6:=(C-LLV(L,530))/(HHV(C,530)-LLV(C,530))*100;
VAR7:=0;
VAR8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;
VAR9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;
VARA:=BARSCOUNT(C);
VARB:=VAR8<20ANDVAR9<23ANDVARA>35;
VARC:=VARBANDCOUNT(VARB,1)=1;
VARD:=EMA(C,21)-EMA(C,8);
VARE:=EMA(VARD,5);
VARF:=TROUGH(3,6,1)<4ANDCROSS(VARD,VARE);
VAR10:=IF(TROUGH(3,16,1)=0ANDH>L+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1)>=REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
买点1:=VAR10;
买点2:=(VAR11+VAR13+VAR15+VAR17);
卖点1:=(VAR12+VAR14+VAR16+VAR18),LINETHICK2;
DRAWTEXT(买点1>0,L-0.01,'▲'),COLORRED;
DRAWTEXT(买点2>0,L-0.01,'▲'),COLORFF00FF;
DRAWTEXT(卖点1>0,H+0.1,'卖'),COLOR33FF33;;
Var1:=H2-H1;
STICKLINE(Var1>=0,H2,H1,0.5,0),colorred;
STICKLINE(Var1<0,H2,H1,0.5,0),colorgreen;
生命线:MA(CLOSE,26),colorred,LINETHICK3;STICKLINE(C>=生命线ANDC>=O,C,O,7,0),colorred;
STICKLINE(C>=生命线ANDC>=O,H,L,0,0),colorred;dp:=IF(C=INDEXC,0,1);gj:=AMOUNT/V/100;
MA5:MA(C,5);
MA6:=MA(C,6);
MA10:MA(C,10);
MA20:MA(C,20);
A2:=REF(MA20,1);J1:=(MA20-A2)/A2*100;MJ1:=MA(J1,3);
MA30:MA(C,30);
MA55:MA(C,55);
MA120:MA(C,120);
乖离2:=(MA20-MA30)/MA30*100;
VAR1:=IF(BETWEEN(乖离2,-2,5),2,0);
MAX1:=MAX(MA20,MA30);
MAX2:=MAX(MAX1,MA55);
MIN1:=MIN(MA20,MA30);
MIN2:=MIN(MIN1,MA55);
K1:=(MAX2/MIN2-1)*100;
VAR2:=IF(K1<=8,1,0);
上火车轨:=MA20>MA30ANDMA20>REF(MA20,1)ANDMA30>REF(MA30,1)ANDMA20-MA30>REF((MA20-MA30),1);
STICKLINE(上火车轨,MA20,MA30,0,0),colorred;
神枪手:=DRAWTEXT(FILTER(上火车轨AND"macd.DIF"<0.15AND"MacD.DIF">REF("MACD.DIF",1)ANDMA(V,60)>REF(MA(V,60),1)ANDMA(V,5)>MA(V,10)ANDJ1>REF(J1,1)AND
(L<=MA20ANDC>MA20OR(CROSS(MA5,MA20))),5),L*0.98,'←神枪手');
神枪手选股:=FILTER(上火车轨AND"MACD.DIF"<0.15AND"MACD.DIF">REF("MACD.DIF",1)ANDMA(V,60)>REF(MA(V,60),1)ANDMA(V,5)>MA(V,10)ANDJ1>REF(J1,1)AND
(L<=MA20ANDC>MA20OR(CROSS(MA5,MA20))),5);
短线暴涨:DRAWTEXT(FILTER((VAR1ORVAR2)ANDMA10>REF(MA10,1)ANDCOUNT(MA30>REF(MA30,1),3)=3ANDMA30>MA55ANDCOUNT(CROSS(MA5,MA30),3)ANDJ1>MJ1ANDMA(V,5)>MA(V,60)
ANDMA(V,60)>REF(MA(V,60),1),5),MA55*0.99,'↑短线暴涨'),colorred;
DRAWTEXT(CROSS("kdj.K"(5,2,3),"kdJ.D"(5,2,3))AND"KDJ.D"(5,2,3)<30ANDJ1>MJ1ANDMA55>REF(MA55,1)ANDCOUNT(J1<1,3)>=1,L*0.995,'←买入'),coloryellow;
DRAWTEXT(CROSS("KDJ.D"(5,2,3),"KDJ.K"(5,2,3))AND"KDJ.D"(5,2,3)>65ANDJ1<MJ1ANDCOUNT(J1>1,3)>=1,H*1.005,'←卖出'),colorgreen;
DRAWTEXT(CROSS("KDJ.D"(18,9,6),"KDJ.K"(18,9,6))AND"KDJ.D"(18,9,6)>60AND"KDJ.J"(45,15,15)>90,H*1.03,'←顶'),colorred;
DRAWTEXT(CROSS(MA5,MA6)AND"KDJ.K"(5,3,3)>=50AND"KDJ.J"(5,3,3)<31,L*0.92,'←再买'),colormagenta;
XL1:=((LLV(LOW,3)=LLV(LOW,60))AND((CLOSE/REF(CLOSE,1))>=1.04));
XL2:=(((CLOSE-EMA(CLOSE,21))/EMA(CLOSE,21))*100);
XL3:=CROSS(XL2,(0-20));
DRAWTEXT(FILTER(((XL1>0)ANDLOW),5),(LOW-0.4),'●买点');
DRAWTEXT((XL3>0),(LOW-0.2),'●绝对底部');
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE-X6),0),7,1)/SMA(ABS((CLOSE-X6)),7,1))*100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
DRAWTEXT(X9,(HIGH*1.02),'●出货'),COLOR9000F5;
STICKLINE(C>1.098*REF(C,1),C,O,0,0),coloryellow;
[源码注释]通达信公式动态翻译结果
VAR1赋值:收盘价的5日简单移动平均
VAR2赋值:收盘价的10日简单移动平均
VAR3赋值:统计5日中满足VAR1>VAR2的天数=5 AND 统计3日中满足VAR1<1日前的VAR1的天数>=1
VAR4赋值:统计3日中满足VAR1/VAR2>0.98的天数>=1
VAR5赋值:VAR1-VAR2
VAR5>1日前的VAR5 AND VAR4 AND VAR3
推荐阅读:无未来函数买卖指标公式
MAA5:MA(C,5),COLORFF00FF,LINETHICK2;
MAA10:=MA(C,10);
MAA30:MA(C,30),COLORRED;
KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8<0,2)ANDCROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'买进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
趋势:FORCAST(C,13),COLORFFFFFF,LINETHICK1;
七:MA(C,7),COLOR00FFFF,LINETHICK2;
涨:IF(MA(CLOSE,7)>REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLORRED,LINETHICK2;
平:IF(MA(CLOSE,7)=REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLOR00FFFF,LINETHICK3;
跌:IF(MA(CLOSE,7)<REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLORGREEN,LINETHICK2;
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
乖离线:=((C-REF(COST(90),1))/20+250)*1.20;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
PP:=W4ANDCOUNT(W4,5)=1;
DRAWTEXT(PP,L-0.10,1);
VAR1:=(H+L)/2;
上唇:REF(SMA(VAR1,5,1),3),COLORGREEN,LINETHICK1;
牙齿:REF(SMA(VAR1,8,1),5),COLORRED,LINETHICK1,CROSSDOT;
下颚:REF(SMA(VAR1,13,1),8),COLORBLUE,LINETHICK4,POINTDOT;
DB:=-10;
RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100);
短期底部:=LLV(OPEN,30);
K:SMA(RSV,3,1);
D:SMA(K,3,1);
J:((3*K)-(2*D));
AA10:=MA(CLOSE,10);
AA12:=MA(CLOSE,12);
BB10:=((ATAN((AA10-REF(AA10,1)))*3.1416)*10);
BB12:=((ATAN((AA12-REF(AA12,1)))*3.1416)*10);
MA13:=MA(CLOSE,13);
VAR2:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);
VAR3:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);
VAR4:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);
VAR5:=(((VAR2+(2*VAR3))+(3*VAR4))/6);
VAR6:=MA(VAR5,3);
底部区间:IF((VAR6<DB),20,0),COLORFFFF00;
STICKLINE((CROSS(J,K)AND(底部区间>=20)),100,0,2,0),COLORFFFFFF;
买:STICKLINE((VAR6<=(0-15)),80,4.88,2,0),COLORFFFFFF;
VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5)/3)/CAPITAL));
VAR8:=(((CLOSE-VAR7)/VAR7)*100);
VAR9:=((((REF(VAR8,1)<(0-40))AND(VAR8>REF(VAR8,1)))AND(REF(VAR8,1)<REF(VAR8,2)))AND((VAR8-REF(VAR8,1))>2.5));
VARA:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);
VARB:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);
VARC:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);
VARF:=(((HIGH+LOW)+CLOSE)/3);
VAR10:=((VARF-MA(VARF,14))/(0.015*AVEDEV(VARF,14)));
VAR11:=(((((MA(AMOUNT,5)/MA(VOL,5))/100)-((MA(AMOUNT,110)/MA(VOL,110))/100))/((MA(AMOUNT,5)/MA(VOL,5))/100))<(0-0.273));
VAR12:=(((CLOSE-MA(CLOSE,30))/MA(CLOSE,30))<(0-0.125));
VAR13:=(VAR11ANDVAR12);
VAR14:=((((VARA>=(0-45))AND(VARA<=(0-10)))AND(VARB<=(0-15)))AND(VARC<=(0-20)));
VAR15:=(COUNT(VAR14,1)>=1);
VAR16:=(VAR13ANDVAR15);
VAR1C:=EMA(CLOSE,34);
VAR1E:=MA((VAR1C*0.82),5);
VAR20:=(((((MA(AMOUNT,5)/MA(VOL,5))/100)-((MA(AMOUNT,125)/MA(VOL,125))/100))/((MA(AMOUNT,5)/MA(VOL,5))/100))<(0-0.4));
VAR21:=HHV(HIGH,500);
VAR22:=LLV(LOW,500);
VAR23:=HHV(HIGH,250);
VAR24:=LLV(LOW,250);
VAR25:=HHV(HIGH,125);
VAR26:=LLV(LOW,125);
VAR27:=MA(((((((VAR21*0.45)+(VAR23*0.5))+VAR22)+VAR24)+VAR26)/5),35);
VAR2C:=VAR27;
VAR31:=((CLOSE-REF(MA(CLOSE,20),11))<(0-2));
VAR42:=(SMA(((AMOUNT/VOL)/100),13,1)*1.15);
VAR43:=(SMA(((AMOUNT/VOL)/100),13,1)*0.85);
VAR44:=(CLOSE-REF(MA(CLOSE,20),11));
VAR45:=(((((((((((((CLOSE<VAR1E)ANDVAR20)AND(CLOSE<VAR43))OR(((CLOSE<VAR1E)ANDVAR31)ANDVAR20))OR((CLOSE<VAR1E)AND(CLOSE<VAR43)))OR(((CLOSE<VAR1E)ANDVAR20)AND(CLOSE<VAR43)))OR(VAR20AND(CLOSE<VAR2C)))OR((VAR20ANDVAR31)AND(VAR44<(0-1.5))))OR(VAR20AND(CLOSE<VAR1E)))OR(VAR20AND(VAR44<(0-1.5))))OR(VAR31AND(CLOSE<VAR43)))OR((CLOSE<VAR2C)AND(VAR44<(0-1.5))))OR((CLOSE<VAR1E)ANDVAR31));
VAR4F:=(VAR11ANDVAR12);
VAR50:=((((VAR2>=(0-45))AND(VAR2<=(0-7)))AND(VAR3<=(0-11)))AND(VAR4<=(0-14)));
VAR51:=(COUNT(VAR50,1)>=1);
VAR52:=(VAR4FANDVAR51);
VAR53:=(((((VAR20AND(CLOSE<VAR1E))ANDVAR31)AND(CLOSE<VAR2C))ANDVAR45)ANDVAR52);
VAR54:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);
VAR55:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);
VAR56:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);
VAR57:=REF(CLOSE,1);
VAR58:=((SMA(MAX((CLOSE-VAR57),0),5,1)/SMA(ABS((CLOSE-VAR57)),5,1))*100);
VAR59:=(((HIGH+LOW)+CLOSE)/3);
VAR5A:=((VAR59-MA(VAR59,14))/(0.015*AVEDEV(VAR59,14)));
VAR5B:=((((((VAR54>=(0-15.8))AND(VAR54<=(0-12.2)))AND(VAR55<=(0-20.8)))AND(VAR56<=(0-27.5)))AND(VAR58<=11.7))AND(VAR5A<=(0-145)));
VAR62:=(REF(CLOSE,2)*0.865);
VAR63:=(REF(CLOSE,13)*0.772);
VAR64:=MIN(VAR62,VAR63);
VAR65:=((100*VOL)/CAPITAL);
DRAWTEXT(C=CANDCURRBARSCOUNT=129,100,''),COLORD8D8BF;
猎鹰出击:IF(((((VAR9ORVAR16)ORVAR53)ORVAR5B)OR((((CLOSE-VAR64)/CLOSE)<0.03)AND((SUM(VAR65,5)/5)<1.8))),120,0),LINETHICK2;
MACD:(VAR6*5),COLORSTICK,LINETHICK2;
短买:STICKLINE((CROSS(K,D)AND(BB10>1)),70,0,2,0),COLORCC99FF;
{底部预警:STICKLINE(VAR6<=0ANDVAR6>=-10,0,-20,5,0),COLOR88B7EA;}
VAR61:=EMA(HHV(HIGH,500),21);
VAR71:=EMA(HHV(HIGH,250),21);
VAR81:=EMA(HHV(HIGH,90),21);
VAR91:=EMA(LLV(LOW,500),21);
VARA1:=EMA(LLV(LOW,250),21);
VARB1:=EMA(LLV(LOW,90),21);
VARC1:=EMA((((((((VAR91*0.96)+(VARA1*0.96))+(VARB1*0.96))+(VAR61*0.558))+(VAR71*0.558))+(VAR81*0.558))/6),21);
VARD1:=EMA((((((((VAR91*1.25)+(VARA1*1.23))+(VARB1*1.2))+(VAR61*0.55))+(VAR71*0.55))+(VAR81*0.65))/6),21);
VARE1:=EMA((((((((VAR91*1.3)+(VARA1*1.3))+(VARB1*1.3))+(VAR61*0.68))+(VAR71*0.68))+(VAR81*0.68))/6),21);
VARF1:=EMA((((((VARC1*3)+(VARD1*2))+VARE1)/6)*1.738),21);
VAR101:=REF(LOW,1);
VAR111:=((SMA(ABS((LOW-VAR101)),3,1)/SMA(MAX((LOW-VAR101),0),3,1))*100);
VAR121:=EMA(IF(((CLOSE*1.35)<=VARF1),(VAR111*10),(VAR111/10)),3);
VAR131:=LLV(LOW,30);
VAR141:=HHV(VAR121,30);
VAR151:=IF(MA(CLOSE,58),1,0);
VAR161:=((EMA(IF((LOW<=VAR131),((VAR121+(VAR141*2))/2),0),3)/618)*VAR151);
VAR171:=((IF((VAR161>50),50,VAR161)/20)*15);
底部吸筹:STICKLINE((VAR171>0),0,VAR171,1,1),COLORFF00FF;
DRAWTEXT(((CROSS(K,D)AND((AA10-REF(AA10,1))>0))AND(K<=49)),80,'–抄底');
DRAWTEXT(CROSS(90,J),108,'。逃'),COLORFFFF00;
DRAWTEXT(CROSS(J,(0-5)),(0-4),'。低吸'),COLOR33FF33;
SG:=EMA(HHV(HIGH,1),8);
X1:=EMA(CLOSE,8);
X30:=((X1<REF(X1,1))AND(CLOSE<X1));
X31:=IF(((SG<REF(SG,1))ORX30),1,0);
全仓出击:=((((COUNT((X31=1),4)=3)AND(X31=0))AND(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1))>0.085))*89);
DRAWTEXT((全仓出击>=89),89,'–大胆杀入'),COLOR0066FF;
DRAWTEXT((CROSS(J,0)AND(VAR6<=(0-7))),80,'–导弹发射'),COLORFF00FF;
MA5:=MA(CLOSE,4);
X7:=EMA(EMA(EMA(HIGH,9),9),9);
海底:=(X7*0.92);
海底二:=(X7*0.933);
中轨道:=MA(CLOSE,2);
DRAWTEXT(((CROSS(中轨道,MA5)AND(LOW<=海底))AND(CLOSE>=海底二)),25,'-底部'),COLOR0099FF;
每日公式解答:
股票公式编写要求:
上升趋势中股价回调,但5日均线与10日均线非吻不死叉的选股公式。
股票公式编写结果:
VAR1:=MA(C,5);
VAR2:=MA(C,10);
VAR3:=COUNT(VAR1>VAR2,5)=5ANDCOUNT(VAR1<REF(VAR1,1),3)>=1;
VAR4:=COUNT(VAR1/VAR2>0.98,3)>=1;
VAR5:=VAR1-VAR2;
VAR5>REF(VAR5,1)ANDVAR4ANDVAR3;
评论(0)