龙头起涨波段操作有介入信号通达信公式 副图 源码附图
JBS:=C/REF(C,1)>1.05 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
必升:=FILTER(JBS,28)*100;
VAR1A:=IF((C/REF(C,1)>1.05 AND H/C<1.01 AND C>REF(C,1)),91,0);
VAR2A:=FILTER((VAR1A>90),45) AND FILTER((VAR1A>90),35) AND 必升>0;
抄:=VAR2A AND COUNT(VAR2A,60)=1;
STICKLINE(抄,75,66,1,0),COLORRED;
STICKLINE(抄,66,57,2,0),COLORMAGENTA;
STICKLINE(抄,57,48,3,0),COLORGREEN;
STICKLINE(抄,48,39,4,0),COLORBLUE;
STICKLINE(抄,30,21,6,0),COLORBROWN;
STICKLINE(抄,39,30,5,0),COLORCYAN;
STICKLINE(抄,21,12,7,0),COLORYELLOW;
STICKLINE(抄,12,3,8,0),COLORWHITE;
DRAWTEXT(抄,90,'抄'),COLORRED;
DRAWICON(抄,80,13);
{股票指标网}
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
Z:0,COLORBLACK;
进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLORGREEN;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;
VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);
VAR31:=EMA(VAR21,10);
VAR41:=HHV(HIGH,33);
VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);
拉高:IF(VAR51<REF(VAR51,1),VAR51,0),COLORYELLOW,NODRAW;
STICKLINE(VAR51<REF(VAR51,1),0,VAR51,3,0),COLORYELLOW;
出货:IF(VAR51>REF(VAR51,1),VAR51,0),COLORCYAN,NODRAW;
STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0 ),COLORCYAN;
SS:=MA(C,60)>REF(MA(C,60),1);
N:=10;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
龙头起涨:IF(CROSS(D1,K1),30,0),COLORFFCC66;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
JBS赋值:C/1日前的C>1.05 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12))
必升赋值:JBS的28过滤*100
VAR1A赋值:IF((C/1日前的C>1.05 AND H/C<1.01 AND C>1日前的C),91,0)
VAR2A赋值:FILTER((VAR1A>90),45) AND FILTER((VAR1A>90),35) AND 必升>0
抄赋值:VAR2A AND 统计60日满足VAR2A的天数=1
当满足条件抄时,在75和66之间画柱状线
当满足条件抄时,在66和57之间画柱状线
当满足条件抄时,在57和48之间画柱状线
当满足条件抄时,在48和39之间画柱状线
当满足条件抄时,在30和21之间画柱状线
当满足条件抄时,在39和30之间画柱状线
当满足条件抄时,在21和12之间画柱状线
当满足条件抄时,在12和3之间画柱状线
当满足条件抄时,在90和'抄'位置书写文字
当满足条件抄时,在80和13之间画图标
{股票指标网}
VAR1赋值:REF((最低价+OPEN+收盘价+最高价)/4,1)
VAR2赋值:SMA(最低价-VAR1的绝对值,13,1)/SMA(最低价-VAR1和0较大值,10,1)
VAR3赋值:VAR2的10日指数移动平均
VAR4赋值:33日内最低价最低值
如果最低价<=VAR4返回VAR3否则返回0
输出Z:0,COLORBLACK
输出进场:IF(VAR5>1日前的VAR5,VAR5,0),画红色,NODRAW
输出洗盘:IF(VAR5<1日前的VAR5,VAR5,0),COLORGREEN,NODRAW
STICKLINE(VAR5<1日前的VAR5,0,VAR5,3,0),COLORGREEN
STICKLINE(VAR5>1日前的VAR5,0,VAR5,3,0 ),COLOR000055
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.6,0 ),COLOR000077
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.1,0 ),COLOR000099
STICKLINE(VAR5>1日前的VAR5,0,VAR5,1.5,0 ),COLOR0000BB
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.9,0 ),COLOR0000DD
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.3,0 ),COLOR0000FF
STICKLINE(VAR5<1日前的VAR5,0,VAR5,3,0),COLOR005500
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.6,0),COLOR007700
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.1,0),COLOR009900
STICKLINE(VAR5<1日前的VAR5,0,VAR5,1.5,0),COLOR00BB00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.9,0),COLOR00DD00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.3,0),COLOR00FF00
VAR21:=SMA(最高价-VAR1的绝对值,13,1)/SMA(最高价-VAR1和0的较小值,10,1)
VAR31:=VAR21的10日指数移动平均
VAR41:=33日内最高价最高值
如果最高价>=VAR41返回VAR31否则返回0
输出拉高:IF(VAR51<1日前的VAR51,VAR51,0),画黄色,NODRAW
STICKLINE(VAR51<1日前的VAR51,0,VAR51,3,0),画黄色
输出出货:IF(VAR51>1日前的VAR51,VAR51,0),COLORCYAN,NODRAW
STICKLINE(VAR51>1日前的VAR51,0,VAR51,3,0 ),COLORCYAN
SS赋值:C的60日简单移动平均>REF(C的60日简单移动平均,1)
N赋值:10
A赋值:(3*收盘价+最低价+OPEN+最高价)/6
D1赋值:(20*A+19*1日前的A+18*2日前的A+17*3日前的A+16*4日前的A+15*5日前的A+14*6日前的A
+13*7日前的A+12*8日前的A+11*9日前的A+10*10日前的A+9*11日前的A+8*12日前的A
+7*13日前的A+6*14日前的A+5*15日前的A+4*16日前的A+3*17日前的A+2*18日前的A+
20日前的A)/211
D2赋值:D1的2日指数移动平均
D3赋值:D2的2日指数移动平均
K1赋值:D3的2日指数移动平均
输出龙头起涨:IF(D1上穿K1,30,0),COLORFFCC66