通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信首板抓涨停预警指标公式
VAR1P:=(CLOSE-LLV(LOW,60.135))/(HHV(HIGH,60.135)-LLV(LOW,60))*80;
VAR2P:=SMA(VAR1P,7,1);
VAR3P:=SMA(VAR2P,5,1);
百万预警:IF(CROSS(VAR2P,VAR3P)ANDVAR2P<20,85,0),;
R:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);
K:=EMA(R,3);
D:=EMA(K,3);
SM:20,colorred;
陡峭度:=IF((BARSCOUNT(CLOSE)>7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7))-1),1);
N:=IF((陡峭度>0.35),6,65);
VAR1:=((-((100)*(HHV(HIGH,N)-CLOSE))/(HHV(HIGH,N)-LLV(LOW,N))))*((DATE<20070110));
VAR1A:=((-((100)*(HHV(HIGH,N)-CLOSE))/(HHV(HIGH,N)-LLV(LOW,N)))+100)*((DATE<20070110));
获利盘:=(WINNER(CLOSE))*(100);
获利线:=FORCAST(获利盘,7);
线:=(FORCAST(VAR1A,7))*((DATE<20070110));
满仓:=((线>REF(线,1))and(线<25)and(COUNT((线>REF(线,1)),5)=1)andIF((N=6),(获利盘<60),(获利盘<40))and(COUNT((获利线>20),20)>0))*(40);
STICKLINE(满仓,0,40,5,0),Color008000;
DRAWTEXT(满仓,45,'满仓'),ColorWHITE;
轻仓:=IF((获利盘>=60)and(线>REF(线,1))and(REF(线,1)<20)and(线<40)and(COUNT((线>REF(线,1)),5)=1)and(REF(N,1)=6),1,0);
STICKLINE(轻仓,20,D,4,1),ColorFF00FF;
DRAWTEXT(轻仓,45,'轻仓'),ColorFF00FF;
出击:=CROSS(线,20)andIF((COUNT(CROSS(K,D),3)=1)and(D<40),1,(线>D)or(K>D)and(D<60))andIF((N=6),(获利盘<70),(获利盘<40))and(COUNT((获利线>20),20)>0);
STICKLINE(出击,0,50,3,1),Color44BB00;
DRAWTEXT(出击,55,'出击'),colorred;
进一:CROSS(线,D)and(D>30)and(D>REF(D,1))and(D<80);
进二:CROSS(线,获利线)and(D>30)and(获利线>25)and(D>REF(D,1));
低进:=IF(进一and(D>获利线),进二,进一);
DRAWTEXT(低进,30,'低进'),ColorWHITE;
STICKLINE(低进,20,30,3,1),Color000080;
DRAWTEXT(进二,50,'高进'),Color800080;
STICKLINE(进二,30,50,3,1),coloryellow;
狂喜:=(30)*(CROSS(VAR1,(-2)));
STICKLINE(狂喜,0,20,3,1),coloryellow;
DRAWTEXT(狂喜,(-5),'要涨停'),coloryellow;
狂喜过望:=(50)*((VAR1=0));
恐慌:=(20)*(VAR1<-94);
STICKLINE(恐慌,0,(-20),5,0),ColorC1C1C1;
DRAWTEXT(恐慌,(-25),'恐慌'),ColorC1C1C1;
极度恐慌:=(-40)*(VAR1=(-100));
STICKLINE(极度恐慌,0,(-40),7,1),Color800000;
DRAWTEXT(极度恐慌,(-45),'极度恐慌'),ColorGREEN;
半仓:=(30)*(CROSS(VAR1,(-94))and(COUNT(恐慌,5)>0)and(N=REF(N,1))andIF((N=6),(获利盘<60),(获利盘<40))and(COUNT((获利线>20),20)>0));
STICKLINE(半仓,0,30,4,1),ColorFFFF00;
DRAWTEXT(半仓,35,'半仓'),ColorFFFF00;
加仓:=(30)*(CROSS(K,20)and(COUNT(半仓,5)>0));
STICKLINE(加仓,0,20,6,1),Color808080;
DRAWTEXT(加仓,25,'加仓'),Color808080;
背离:=(COUNT(恐慌,2)>0)and(CLOSE<REF(CLOSE,1))and(VAR1>REF(VAR1,1));
DRAWICON(背离,0,1),ColorFFFFFF;
M:=DYNAINFO(10)>1andDYNAINFO(7)<98andDYNAINFO(54)<100andDYNAINFO(38)<8000000;
N:=DYNAINFO(54);
DRAWTEXT(M,N,'');
MA60:=MA(CLOSE,60),COLORGREEN;
MA250:=MA(CLOSE,250),COLORMAGENTA,LINETHICK3;
PL1:=(((CLOSE-MA60)/MA60)<0.1);
PL2:=(((CLOSE-MA250)/MA250)<0.3);
偏离率:=(((PL1=1)AND(PL2=1)))*0.2;
突破:偏离率=0ANDREF(偏离率,1)=0.2ANDREF((COUNT((偏离率=0.2),10)=10),1);
[源码注释]通达信公式动态翻译结果
ZQ赋值:收盘价的有效数据周期数
YZ赋值:收盘价=计算涨停价 AND 最低价=最高价
XG赋值:(最近ZQ日一直存在YZ OR ZQ=1)
取反
每日通达信公式解答:
选股公式源码
RSV4:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
RSV5:=MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,5);
K4:=SMA(RSV4,3,1);
D4:=SMA(K4,3,1);
J4:=3*K4-2*D4;
CK4:=MA(K4,15);
CD4:=MA(D4,15);
CJ4:=MA(J4,15);
JJ1:=CJ4>REF(CJ4,1);
低点低吸:CROSS(-5,RSV5)ANDJJ1;
选股公式翻译
RSV4赋值:(收盘价-36日内最低价的最低值)/(36日内最高价的最高值-36日内最低价的最低值)*100
RSV5赋值:(45日内最低价的最低值-收盘价)/(45日内最高价的最高值-45日内最低价的最低值)*100的5日简单移动平均
K4赋值:RSV4的3日[1日权重]移动平均
D4赋值:K4的3日[1日权重]移动平均
J4赋值:3*K4-2*D4
CK4赋值:K4的15日简单移动平均
CD4赋值:D4的15日简单移动平均
CJ4赋值:J4的15日简单移动平均
JJ1赋值:CJ4>1日前的CJ4
输出低点低吸:-5上穿RSV5ANDJJ1
评论(0)