通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信止跌指标公式
止跌发射:REF(C,1)/REF(C,2)<=0.93AND
BETWEEN(C/REF(C,1),1.03,0.97)AND
CLOSE/REF(CLOSE,8)<=0.8AND
BETWEEN(REF(C,2)/REF(C,3),1.04,0.96)AND
BETWEEN(REF(C,3)/REF(C,4),1.04,0.96),LINETHICK0,COLORYELLOW;
STICKLINE(止跌发射,0,2,2,0),COLORRED;
DRAWTEXT(止跌发射,1.5,'止跌发射'),COLOR00FFFF;
选股:止跌发射,COLORWHITE;
DRAWBAND(选股,RGB(255,0,0),0,RGB(255,0,0));
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
KDB:=IF(COUNT(VAR3<=14,2),30,0);
VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VARB:=100-ABS(VARA);
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=VAR11-CLOSE;
VAR13:=REF(CLOSE,1);
VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100;
VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100;
VAR16:=BARSCOUNT(CLOSE);
VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1A:=(SMA(VAR19,4,1)-50)*2;
VAR1B:=SMA(VAR1A,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=IF(VAR17<=25ANDVAR18<-95ANDVAR1F>20ANDVAR1B<-30ANDVAR1E<30ANDVAR12>=-0.25ANDVAR14<25ANDVAR15<30ANDVAR16>50,70,0);
FTD:=VAR20;
ITO:=IF(VARB<90,VARB,100);
T6:=FTD>50ANDITO<90;
FUTI:=T6ANDCOUNT(T6,30)=1;
QFD:=IF(CROSS(VAR3,KDB)ANDVOL>1.5*MA(VOL,5),1,0);
XG:(FUTIORQFD)ANDC>REF(C,1)*1;
二、通达信涨停预警指标公式
开盘换手:DYNAINFO(15)/DYNAINFO(4)/FINANCE(46)*100;
开盘量比:DYNAINFO(15)/DYNAINFO(4)/100/DYNAINFO(16);
竞价量:DYNAINFO(15)/DYNAINFO(4)/1000000;
开盘首量:(REF(VOL,FROMOPEN+1))#DAY/10000;
封单额:DYNAINFO(58)*C/100;
流通Z:FINANCE(46)/100000000;
BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));
STICKLINE((C>=ZTPRICE(REF(C,1),BK)ANDC=H),C,O,2.7,0),COLORFF00FF;{粉色}
STICKLINE((C<=DTPRICE(REF(C,1),BK)ANDC=L),C,O,2.7,0),COLOR80FF00;{绿色};
ZT:=IF(NAMELIKE('ST')ORNAMELIKE('*ST'),C=ZTPRICE(REF(C,1),0.05),
IF(CODELIKE('688')OR(CODELIKE('300')ANDDATE>=1200824),C=ZTPRICE(REF(C,1),0.2),
C=ZTPRICE(REF(C,1),0.1)));
XG:REF(ZT,3)ANDBARSLASTCOUNT(C<O)=3;
ZT:=IF(NAMELIKE('ST')ORNAMELIKE('*ST'),ZTPRICE(REF(C,1),0.05),
IF(CODELIKE('688')OR(CODELIKE('300')ANDDATE>=1200824),ZTPRICE(REF(C,1),0.2),
ZTPRICE(REF(C,1),0.1)));
REF(EXIST(C=ZT,2),1);
BGTYU:=IF(DATE<=1590301,1,0);
GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,MA((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))));
底线:1.003,LINETHICK2;
高线:1.03,COLORRED,LINETHICK2;
起动线:EMA((CLOSE/VBNH),20),COLORYELLOW,POINTDOT;
主力线:EMA((CLOSE/VBNH),60),COLORMAGENTA,LINETHICK2;
散户线:EMA((CLOSE/VBNH),120),COLORGREEN,LINETHICK2;
买进:CROSS(EMA((CLOSE/VBNH),120),1.0029),COLORRED,NODRAW;
超强:CROSS(EMA((CLOSE/VBNH),120),1.004),COLORWHITE,NODRAW;
拉升:CROSS(EMA((CLOSE/VBNH),20),1.02),COLORLIBLUE,NODRAW;
DRAWICON(CROSS(EMA((CLOSE/VBNH),60),EMA((CLOSE/VBNH),120)),EMA((CLOSE/VBNH),60)*1,1);
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),EMA((CLOSE/VBNH),60)),EMA((CLOSE/VBNH),120)*1,2);
DRAWICON(CROSS(EMA((CLOSE/VBNH),20),1.02),1.02+0.005,18);
STICKLINE(CROSS(EMA((CLOSE/VBNH),20),1.02),1.02,1.025,5,0),COLORMAGENTA;
STICKLINE(EMA(C,10)>EMA(C,60),1.03,1.034,2.0,0),COLORRED;
STICKLINE(EMA(C,10)<EMA(C,60),1.03,1.025,2.0,0),COLORGREEN;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),20),1.02),1.02,'拉升'),COLORYELLOW;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),20),1.04),1.04,'可能涨停'),COLORYELLOW;
STICKLINE(EMA((CLOSE/VBNH),120)>1.003,1.03,1.039,2.0,0),COLORMAGENTA;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.0029),1.028,'↖买进'),COLORRED;
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),1.0029),1.0326*1,9);
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.0029),1.036,'观察分时量'),COLORYELLOW;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.004),1.005,'超强'),COLORYELLOW;
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),1.004),1.003*1,9);
[源码注释]通达信公式动态翻译结果
BGTYU赋值:如果日期<=1590301,返回1,否则返回0
GHYJKU赋值:(收盘价*BGTYU)/(成交额(元)的(收盘价*BGTYU)的有效数据周期数日累和/成交量(手)*100的(收盘价*BGTYU)的有效数据周期数日累和)位于1.05和0.95之间
VBNH赋值:如果GHYJKU=0,返回(收盘价*BGTYU)的(收盘价*BGTYU)的有效数据周期数日简单移动平均,否则返回(成交额(元)的(收盘价*BGTYU)的有效数据周期数日累和/成交量(手)*100的(收盘价*BGTYU)的有效数据周期数日累和)
输出底线:1.003,线宽为2
输出高线:1.03,画红色,线宽为2
输出起动线:(收盘价/VBNH)的20日指数移动平均,画黄色,POINTDOT
输出主力线:(收盘价/VBNH)的60日指数移动平均,画洋红色,线宽为2
输出云数据指标:(收盘价/VBNH)的120日指数移动平均,画绿色,线宽为2
输出买进:(收盘价/VBNH)的120日指数移动平均上穿1.0029,画红色,NODRAW
输出超强:(收盘价/VBNH)的120日指数移动平均上穿1.004,画白色,NODRAW
输出拉升:(收盘价/VBNH)的20日指数移动平均上穿1.02,画淡蓝色,NODRAW
当满足条件(收盘价/VBNH)的60日指数移动平均上穿(收盘价/VBNH)的120日指数移动平均时,在(收盘价/VBNH)的60日指数移动平均*1位置画1号图标
当满足条件(收盘价/VBNH)的120日指数移动平均上穿(收盘价/VBNH)的60日指数移动平均时,在(收盘价/VBNH)的120日指数移动平均*1位置画2号图标
当满足条件(收盘价/VBNH)的20日指数移动平均上穿1.02时,在1.02+0.005位置画18号图标
当满足条件(收盘价/VBNH)的20日指数移动平均上穿1.02时,在1.02和1.025位置之间画柱状线,宽度为5,0不为0则画空心柱., 画洋红色
当满足条件收盘价的10日指数移动平均>收盘价的60日指数移动平均时,在1.03和1.034位置之间画柱状线,宽度为2.0,0不为0则画空心柱.,画红色
当满足条件收盘价的10日指数移动平均<收盘价的60日指数移动平均时,在1.03和1.025位置之间画柱状线,宽度为2.0,0不为0则画空心柱.,画绿色
当满足条件(收盘价/VBNH)的20日指数移动平均上穿1.02时,在1.02位置书写文字,画黄色
当满足条件(收盘价/VBNH)的20日指数移动平均上穿1.04时,在1.04位置书写文字,画黄色
当满足条件(收盘价/VBNH)的120日指数移动平均>1.003时,在1.03和1.039位置之间画柱状线,宽度为2.0,0不为0则画空心柱.,画洋红色
当满足条件(收盘价/VBNH)的120日指数移动平均上穿1.0029时,在1.028位置书写文字,画红色
当满足条件(收盘价/VBNH)的120日指数移动平均上穿1.0029时,在1.0326*1位置画9号图标
当满足条件(收盘价/VBNH)的120日指数移动平均上穿1.0029时,在1.036位置书写文字,画黄色
当满足条件(收盘价/VBNH)的120日指数移动平均上穿1.004时,在1.005位置书写文字,画黄色
当满足条件(收盘价/VBNH)的120日指数移动平均上穿1.004时,在1.003*1位置画9号图标
推荐阅读:通达信止盈止损指标公式
精准计数周期:=90;
基准点前N天:=0;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
支撑:REFDATE(V2,DATE),DOTLINE,LINETHICK1,COLORLIRED;
阻力:REFDATE(V3,DATE),DOTLINE,LINETHICK1,COLORGREEN;
DRAWTEXT(ISLASTBAR,阻力,'阻力'),COLORGREEN;
DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLORLIRED;
N:=5;
A1:=REF(H,N)=HHV(H,2*N+1);
B1:=FILTER(A1,N);
C1:=BACKSET(B1,N+1);
D1:=FILTER(C1,N);{高点}
A2:=REF(L,N)=LLV(L,2*N+1);
B2:=FILTER(A2,N);
C2:=BACKSET(B2,N+1);
D2:=FILTER(C2,N);{低点}
E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;
E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}
H1:=(D1ANDNOT(D2ANDE1>=E2))ORISLASTBARORBARSCOUNT(C)=1;
L1:=(D2ANDNOT(D1ANDE1<E2));
H2:=D1ANDNOT(D2ANDE1>=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1ANDCOUNT(L1,X1)>0,LLVBARS
(IF(L1,L,10000),X1));
G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);{过滤后低点}
T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
U1:=T1>REF(T1,1);{前一低}
T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);
U2:=T2>REF(T2,1);{前二低}
短期支撑:DRAWLINE(U2,L,U1,L,1),COLORREDLINETHICK2;
DRAWICON(U1,L*0.99,9);
DRAWICON(U2,L*0.99,9);
AA1:=DRAWTEXT(CLOSE>=REF(CLOSE,1)*1.094,HIGH,'涨停'),COLORRED;
STICKLINE(V/REF(V,1)>1.9,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(AA1,C,O,3,0),COLORMAGENTA,LINETHICK1;
STICKLINE(AA1,H,L,0,0),COLORMAGENTA,LINETHICK1;
价涨不破:=LLV(L,3)>=REF(L,3);
三日量缩:=HHV(VOL,3)<REF(VOL,3);
高量柱:=C/REF(C,1)>=1.03ANDVOL=HHV(VOL,35);
倍量柱:=C/REF(C,1)>=1.03ANDVOL>=REF(VOL,1)*1.91;
梯量柱:=VOL>REF(VOL,1)ANDREF(VOL,1)>REF(VOL,2)ANDC/REF(C,1)>=1.03;
高黄金柱:=REF(高量柱,3)AND价涨不破AND三日量缩;
倍黄金柱:=REF(倍量柱,3)AND价涨不破AND三日量缩;
梯黄金柱:=REF(梯量柱,3)AND价涨不破AND三日量缩;
STICKLINE(高黄金柱,LLV(L,3),LLV(L,3),25,1),COLORYELLOW;
STICKLINE(倍黄金柱,LLV(L,3),LLV(L,3),25,1),COLORYELLOW;
STICKLINE(梯黄金柱,LLV(L,3),LLV(L,3),25,1),COLORYELLOW;
DRAWTEXT(高黄金柱,L*0.99,'↖成立')COLORYELLOW;
DRAWTEXT(倍黄金柱,L*0.99,'↖成立')COLORYELLOW;
DRAWTEXT(梯黄金柱,L*0.99,'↖成立')COLORYELLOW;
A=ZIG(2,5);
fxdd=A>REF(A,1)ANDREF(A,2)>REF(A,1);
gddz=IF(fxdd,REF(LOW,1),0);
支撑位:=IF(gddz=0,REF(LOW,BARSLAST(fxdd)+1),REF(LOW,1));
zcw:=IF(支撑位=REF(支撑位,1),支撑位,DRAWNULL);
B=ZIG(1,5);
fxgd=B<REF(B,1)ANDREF(B,2)<REF(B,1);
ggdz=IF(fxgd,REF(HIGH,1),0);
压力位:=IF(ggdz=0,REF(HIGH,BARSLAST(fxgd)+1),REF(HIGH,1));
ylw:=IF(压力位=REF(压力位,1),压力位,DRAWNULL);
scmd1:=BARSLAST((支撑位>REF(支撑位,1)OR支撑位<REF(支撑位,1))ANDCLOSE>支撑位);
scmd2:=BARSLAST(压力位>REF(压力位,1)OR压力位<REF(压力位,1));
IF(scmd1<scmd2)
mmsj:LOW-zcw;
ELSE
mmsj:HIGH-ylw;
IF((支撑位>REF(支撑位,1)OR支撑位<REF(支撑位,1))ANDCLOSE>支撑位)
{
DRAWTEXT(1,-0.2,'介入'),colorred;
VERLINE(1,1),colorred;
}
IF(压力位>REF(压力位,1)OR压力位<REF(压力位,1))
{
DRAWTEXT(1,0.2,'止盈'),coloryellow;
VERLINE(1,1),coloryellow;
}
IF(mmsj<0ANDREF(mmsj,2)>0ANDscmd2>2)
{
DRAWTEXT(1,0.2,'止损'),coloryellow;
VERLINE(1,1),coloryellow;
VAR1:=REF(CLOSE,2);
趋势线:SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,LINETHICK2,COLORLIBLUE;
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
逢高派发:STICKLINE(趋势线>85,78,85,1.2,0),COLORYELLOW;
极高风险:STICKLINE(趋势线>90,78,85,1.8,0),COLORRED;
DRAWICON(趋势线>95,100,2);
吸:=IF(趋势线<12,23,12),COLORWHITE,LINETHICK2;
强买:=IF(VAR3<12,30,12),COLORMAGENTA,LINETHICK2;
{轻仓大底}
长期线:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,COLOR9900FF,LINETHICK3;
短期线:=-100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6))+100,COLORRED;
中期线:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,COLORYELLOW,LINETHICK2;
STICKLINE(中期线<12,23,12,2,0),COLORYELLOW;
STICKLINE(长期线<12,23,12,2,0),COLORRED;
{强势拉升}
上趋势:=MA(LOW,20)*1.2,COLOR0080FF,LINETHICK2;
次上趋势:=MA(LOW,20)*1.1,COLORYELLOW;
次下趋势:=MA(HIGH,20)*0.9,COLORWHITE;
下趋势:=MA(HIGH,20)*0.8,COLORGREEN,LINETHICK1;
ZD:=(C-REF(C,1))/REF(C,1)*100;
HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势ANDC<次上趋势,2,IF(C<下趋势,0,1))),NODRAW;
底距:=(C-下趋势)/下趋势*100,NODRAW;
{一目了然}
MA多:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100,COLORFFB5FF,LINETHICK2;
多方:EMA(MA多,5),COLORYELLOW,LINETHICK2;
XX:=IF(多方<45,多方,DRAWNULL),COLORGREEN,LINETHICK3;
三成:=IF(多方<25AND多方>=20,50,25),COLORWHITE,LINETHICK2;
六成:=IF(多方<20AND多方>=15,35,25),COLORLIRED,LINETHICK3;
全仓:IF(多方<15,37,25),COLORRED,LINETHICK5;
STICKLINE(多方>75,68,60,1.2,0),COLORYELLOW;
STICKLINE(多方>80,68,60,1.2,0),COLORRED;
DRAWICON(多方>85,55,2);
{砸锅卖田}
趋线:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLORAABBDD,NODRAW;
AA:=((REF(趋线,1)<REF(趋线,2)AND趋线<-30)AND趋线>=REF(趋线,1))OR(REF(CROSS(-30,趋线),1)ANDCROSS(趋线,-30))OR趋线=-30;
卖田:=IF(AA,65,12),COLORYELLOW,LINETHICK2;
BB:=((REF(趋线,1)<REF(趋线,2)AND趋线<-20AND趋线>-25)AND趋线>=REF(趋线,1))OR(REF(CROSS(-20,趋线),1)ANDCROSS(趋线,-20));
见底:=IF(BB,58,12),COLORRED,LINETHICK2;
CC:=((REF(趋线,1)<REF(趋线,2)AND趋线<-25AND趋线>-30)AND趋线>=REF(趋线,1))OR(REF(CROSS(-25,趋线),1)ANDCROSS(趋线,-25));
浅底:IF(趋线<-20,60,12),LINETHICK3,COLORF0F000;
DRAWTEXT(CROSS(-20,趋线),80,'浅底'),COLORF0F000;
IF(趋线<-25,80,12),LINETHICK2,COLORF00FF0;
DRAWTEXT(CROSS(-25,趋线),90,'深底'),COLORF00FF0;
IF(趋线<-30,35,12),LINETHICK4,COLORWHITE;
DRAWTEXT(CROSS(-30,趋线),55,'砸锅'),COLORGRAY;
{走势铁底}
M:=88;
N1:=6;
VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);
MA13:=(MA(VAR0A,13)*0.99),LINETHICK2;
KK:=(MA(VAR0A,13)*0.999);
TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));
生命:=(HHV(VAR1A,12)),LINETHICK4,COLOR0080FF;
VARX1:=EMA(AMOUNT/VOL/100,3);
控盘成本:=EMA(VARX1,M),LINETHICK2;
低吸伏击:=EMA(VARX1,M)*0.85,LINETHICK2,COLORFFFF00;
走势铁底:=低吸伏击*0.87,LINETHICK3,COLORFF00FF;
距底:=(C-低吸伏击)/低吸伏击*100,NODRAW;
机会:IF(趋势强度<=1AND中期线<12AND距底>0AND距底<5,55,25),COLORGREEN,LINETHICK2;
低吸:IF(C<低吸伏击AND中期线<12AND趋势强度=1,58,25),COLORYELLOW,LINETHICK3;
伏击:IF(L<走势铁底,66,25),COLORLIRED,LINETHICK3;
{俊俊建仓}
VARZ1:=1;
VARZ2:=REF(LOW,1)*VARZ1;
VARZ3:=SMA(ABS(LOW-VARZ2),3,1)/SMA(MAX(LOW-VARZ2,0),3,1)*100*VARZ1;
VARZ4:=(2*C+H+L)/4;
VARZ5:=LLV(LOW,60);
VARZ6:=(2*CLOSE+HIGH+LOW)/4;
VARZ8:=LLV(LOW,34);
VARZ11:=HHV(HIGH,34);
VARZ12:=EMA((VARZ6-VARZ8)/(VARZ11-VARZ8)*100,13);
VARZ13:=EMA(0.667*REF(VARZ12,1)+0.333*VARZ12,2);
VARZ0:=HHV(HIGH,60);
AAA:=EMA((VARZ4-VARZ5)/(VARZ0-VARZ5)*100,5);
BBB:=EMA(AAA,5);
上线:=IF(AAA>=BBB,100,100),COLOR00FF00,LINETHICK3;
下线:=IF(AAA<BBB,0,0),COLOR00FFCC,LINETHICK3;
中线:=IF(AAA<BBB,50,50),LINETHICK1,COLOR0033FF;
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA
(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
DDK:=DRAWICON(趋势<=3AND趋势强度<=1,63,1);
{临界点}
C1:=((MA(C,30)-L)/MA(C,60))*200;
临界点:=IF(C1>30,68,45),LINETHICK3,COLORRED;
{主力进场:下方红绿柱}
VR2:=REF(LOW,1);
VR3:=SMA(ABS(LOW-VR2),3,1)/SMA(MAX(LOW-VR2,0),3,1)*100;
VR4:=EMA(IF(CLOSE*1.3,VR3*10,VR3/10),3);
VR5:=LLV(LOW,30);
VR6:=HHV(VR4,30);
VR7:=IF(MA(CLOSE,58),1,0);
主力:=EMA(IF(LOW<=VR5,(VR4+VR6*2)/2,0),3)/618*VR7,COLORMAGENTA,NODRAW;
VR9:=IF(主力>100,100,主力);
主力进场:=STICKLINE(VR9>0,0,VR9,3,0),COLORMAGENTA;
洗:=STICKLINE(主力<REF(主力,1),0,VR9,3,0),COLORGREEN;
盘:=STICKLINE(VR9<REF(VR9,1),0,VR9,3,0),COLORGREEN;
{超级短底}
短底:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+
(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3,NODRAW;
炒短:=IF(短底<-10AND主力>REF(主力,1),60,12),COLORLIRED,LINETHICK2;
{成本线}
VBR1:=IF(DATE>=10201201,0,1);
VBR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
VBR3:=EMA(CLOSE,3);
VBR4:=(2*CLOSE+LOW+HIGH)/4*VBR1;
VBR5:=VBR2-VBR3;
风险线:=EMA(VBR4,45)*1.15;
必卖线:=EMA(VBR4,55)*1.3,COLORRED;
底线:=EMA(VBR4,40)*0.85,COLORWHITE,LINETHICK2;
铁底线:=EMA(VBR4,88)*0.7,COLORRED;
成本线:=EMA(VBR4,55),COLORGREEN,LINETHICK2;
价值中枢:=(成本线+底线)/2,COLORFFFF00;
铁底:IF(C<铁底线AND炒短,73,25),COLORBLUE,LINETHICK3;
大底天:BARSLAST(CROSS(12,长期线)),NODRAW;
85,POINTDOT;
70,POINTDOT;
75,COLORGREEN;
中枢:45,COLORRED,LINETHICK2;
25,COLORGREEN,LINETHICK2;
30,COLORLIRED;
评论(0)