在股票操作中有一种理论,叫箱体结构,本人搜集了一些,同时结合了一些经典指标,制作了一个短中长箱体买卖指标,其中有一部分是有未来函数的,已用大括号括上了,而找线公式本身就是有未来的,所以无法省去,好在只是一种参考,不做为买卖的最终依据,纯属娱乐,也算是我回报理论的“大作”吧,当然版权所有,违者看情况吧。
源码:
var1a1:=llv(low,21);
var2a2:=hhv(high,21);
ak1:=ema((((close - var1a1) / (var2a2 - var1a1)) * 100),5);
ak:=ema((((close - var1a1) / (var2a2 - var1a1)) * 50),13);
ab:=cross(ak1,ak);
drawtext((ab = 1),c,'○牛窝'),coloryellow;
swj1:=peak(1,1,1);
swj2:=trough(2,1,1);
预测高值:(swj1-swj2)*2+swj2;
预测低值:(swj1-swj2)/2.7+swj2;
箱顶5:peak(close,5,1)*1.01,colorgreen;
箱底10:trough(close,10,1)*1.02,colordd00ff;
箱顶3:peak(close,3,1)*1.01,color0000ff;
箱底3:trough(close,3,1)*1,colorcyan;
a7:=c-ref(c,1);
a8:=100*ema(ema(a7,6),6)/ema(ema(abs(a7),6),6);
short:=7; long:=19;
rma:=ema(close,short);
nma:=ema(close,long);
up:=drawline(l=llv(l,barslast(cross(nma,rma))+1),llv(l,barslast(cross(nma,rma))+1),h=hhv(h,barslast(cross(rma,nma))+1),hhv(h,barslast(cross(rma,nma))+1),0);
down:=drawline(h=hhv(h,barslast(cross(rma,nma))+1),hhv(h,barslast(cross(rma,nma))+1),l=llv(l,barslast(cross(nma,rma))+1),llv(l,barslast(cross(nma,rma))+1),0);
drawtext(((llv(a8,2)=llv(a8,7) and count(a8<0,2) and cross(a8,ma(a8,2))) and ref(down,1)<ref(down,2) and up>ref(down,1))=0,c-0.04,'起'),colorred;
{n01:=1;
drawtext((ma(预测高值,1)>ref(ma(预测高值,n01),1) and ma(预测低值,1)<ref(ma(预测低值,n01),1)) or((ma(预测高值,1)<ref(ma(预测高值,n01),1) and ma(预测低值,1)>ref(ma(预测低值,n01),1))) and ((llv(a8,2)=llv(a8,7) and count(a8<0,2) and cross(a8,ma(a8,2))) and ref(down,1)<ref(down,2) and up>ref(down,1)),c-0.05,'虎'),colorred;
f:=100*(c-ref(c,1))/ref(c,1);
今小昨:=if(c<ref(o,1) and f<0,1,0);
p3:=今小昨;
今小前:=if(c<ref(o,2) and f<0,1,0);
p2:=今小前;
drawtext(((troughbars(3,3,1)=0 and high>low+0.01) and (troughbars(3,3,1)=0 and high>low+0.01)),箱顶5,'m'),colorred;
drawtext(p3=0 and ref(p3,1)=1 and p2=0 and ref(p2,1)=1 and cross(zig(3,3) ,ref(zig(3 ,3),1)),箱顶5,'m'),colorred;
varc1:=(zig(3,5)>ref(zig(3,5),1)) and (ref(zig(3,5),1)<=ref(zig(3,5),2)) and (ref(zig
(3,5),2)<=ref(zig(3,5),3));
drawtext((varc1=1),箱顶5,'d'),color0000ff;
vard1:=(zig(3,5)<ref(zig(3,5),1)) and (ref(zig(3,5),1)>=ref(zig(3,5),2)) and (ref(zig
(3,5),2)>=ref(zig(3,5),3));
drawtext((vard1=1),箱顶5+0.1,'md'),color00ff00;
买入:=(((llv(a8,2)=llv(a8,7) and count(a8<0,2) and cross(a8,ma(a8,2))) and ref(down,1)<ref(down,2) and up>ref(down,1))=0,c);
起点线:买入,colordd00ff;
}
var1:=if(year>=2034 and month>9,0,1);
江恩线:=ema(close,144), colorblue,linethick2;
var2:=if(year<=2003 and month<4,0,1);
var3:=if(year=2003 and month=5,0,1);
var4:=if(year<2003,0,1);
var5:=if(year=2002 and month=6 and day=28,1,0);
var6:=if(year=2002 and month=3 and day=21,1,0);
var7:=if(year=2001 and month=12 and day=5,1,0);
var8:=if(year=2001 and month=6 and day=14,1,0);
var9:=if(year=2001 and month=1 and day=11,1,0);
vara:=if(year=2000 and month=11 and day=23,1,0);
varb:=if(year=2000 and month=8 and day=22,1,0);
varc:=if(year=2000 and month=4 and day=21,1,0);
vard:=if(year=1999 and month=6 and day=30,1,0);
vare:=if(year=1999 and month=4 and day=9,1,0);
varf:=if(year=1998 and month=11 and day=17,1,0);
var10:=if(year=1998 and month=6 and day=4,1,0);
var11:=if(year=1997 and month=5 and day=12,1,0);
var12:=if(year=1996 and month=12 and day=11,1,0);
var13:=if(year=1994 and month=9 and day=13,1,0);
var14:=if(year=1993 and month=2 and day=16,1,0);
var15:=if(year=1992 and month=5 and day=26,1,0);
var16:=if(year=2003 and month=3 and day=4,1,0);
var17:=if(year=2003 and month=4 and day=16,1,0);
var18:=(cross(100,"kdj.j"(9,3,3)) or cross("kdj.k"(9,3,3),"kdj.j"(9,3,3))) and "kdj.d"(9,3,3)>75;
var19:=if(year>1990 and year<2003,0,1);
var1a:=if(year=2003 and month=1 and day=3,1,0);
var1b:=if(year=2002 and month=6 and day=6,1,0);
var1c:=if(year=2002 and month=1 and day=29,1,0);
var1d:=if(year=2001 and month=10 and day=22,1,0);
var1e:=if(year=2001 and month=2 and day=22,1,0);
var1f:=if(year=2000 and month=9 and day=26,1,0);
var20:=if(year=1999 and month=12 and day=28,1,0);
var21:=if(year=1999 and month=5 and day=17,1,0);
var22:=if(year=1999 and month=2 and day=9,1,0);
var23:=if(year=1998 and month=8 and day=18,1,0);
var24:=if(year=1998 and month=3 and day=26,1,0);
var25:=if(year=1997 and month=2 and day=20,1,0);
var26:=if(year=1994 and month=7 and day=29,1,0);
var27:=if(year=2000 and month=5 and day=15,1,0);
var28:=if(year=1996 and month=1 and day=19,1,0);
var29:=if(year=1992 and month=11 and day=20,1,0);
var2a:=if(year=2003 and month=3 and day=26,1,0);
var2b:=if(year=2003 and month=5 and day=13 and close>200,1,0);
var2c:=ma(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),5)*var19;
var2d:=5;
var2e:=cross(var2c,var2d);
var2f:=var1a or var1b or var1c or var1d or var1e or var1f or var20 or var21 or var22 or var23 or var24 or var25 or var26 or var27 or var28 or var29 or var2a or var2b or var2e;
var30:=(var18 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc or vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17){ and close>200};
drawicon(var2f,low-low*1/100,1);
drawicon(var2f and close>江恩线,low,1);
drawicon(var30,high,2);
drawtext(var2f and close<江恩线,low,'秘密买点!'), coloryellow;
drawtext(var2f and close>江恩线,low,'强势买点!'), colorred;
drawtext(var30,high+1,'秘密抛点'), color00ff00;
aaa2:=sum(if( close>ref(close,1),vol*c,0),0);
aaa3:=sum(if( close<ref(close,1),vol*c,0),0);
aaa4:=sum(if( close=ref(close,1),vol*c,0),0);
bb1:=0;
b1万元:=dvol*dclose/100;
b1差:=b1万元-ref(b1万元,1);
b2万元:=dvol*dclose/100;
b2比:=b2万元/ref(b2万元,1);
净流入万元:=(aaa2-aaa3-0.5*aaa4);
pm:=ma(净流入万元,1);
pma:=pm/ref(pm,1)>1;
pmb:=ref(pma,1)<1 and pma;
密码:(ema(ma(b1万元,2),2))/100000,coloryellow,nodraw;
二日比:=密码/ref(密码,1);
选股:pmb and 密码>ref(密码,1) and 二日比>1,colorred,nodraw;
drawnumber(选股=1 ,l,密码),coloryellow;
drawicon(选股,l*0.975,1);
上一指标公式:趋势追涨波浪峰副图附图指标下载 通达信趋势贴图
下一指标公式:优选一品主力副图指标下载 通达信源码主力
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文箱形顶底指标副图主图版下载 通达信箱形顶底主图仅供学习研究。