飞狐江恩“股票箱及江恩箱”主图指标公式 - 股票短线技术交流,短 江恩指标
fh:=high;
fl:=low;
sell:=0*fh;
buy:=sell;
signal:=sell;
boxh:sell,linethick0;
boxl:sell,linethick0;
variable:hc=0,lc=0,bt=fh[1],bb=fh[1];
for i=1 to datacount do begin
if hc>1 then begin
if lc>2 and bt<=fh[i] then begin
buy[i]:=1;
for j=i-1 downto i-hc do begin
boxh[j]:=fh[i-hc];
boxl[j]:=fl[i-lc];
end;
hc:=0;lc:=0;
end;
if bt>fh[i] then begin
if lc>2 then begin
if bb>=fl[i] then begin
sell[i]:=1;
for j=i-1 downto i-hc do begin
boxh[j]:=fh[i-hc];
boxl[j]:=fl[i-lc];
end;
hc:=-1;lc:=0;
end else begin
boxh[i]:=fh[i-hc];
boxl[i]:=fl[i-lc];
end;
end;
hc:=hc+1;
if lc>1 then begin
if bb<fl[i] then begin
lc:=lc+1;
if lc=3 then begin
signal[i-hc+1]:=1;
for j=i downto i-hc+1 do begin
boxh[j]:=fh[i-hc+1];
boxl[j]:=fl[i-lc+1];
end;
end;
end else lc:=0;
end else
if lc=1 then begin
if bb<fl[i] then begin
lc:=lc+1;
end else lc:=0;
end;
if lc=0 and hc>1 then begin
bb:=fl[i];
lc:=lc+1;
end;
end else begin hc:=0; lc:=0; end;
end else
if hc=1 then begin
if bt>fh[i] then
hc:=hc+1
else begin hc:=0;lc:=0; end;
end;
if hc=0 then begin
bt:=fh[i];
hc:=hc+1;
end;
end;
partline(boxh and boxh=ref(boxh,1),boxh),linedot,coloryellow;
partline(boxl and boxl=ref(boxl,1),boxl),linedot,coloryellow;
stickline((signal||refx(buy||sell,1))&&boxh,boxh,boxl,0.1,0),linedot,coloryellow;
drawicon(buy,low*0.98,4);
drawicon(sell,high*1.02,5);
DRAWNUMBER(refx(buy||sell,1)&&boxh,boxh,100*(boxh-boxl)/boxl,2) colorgreen;
DRAWNUMBER(refx(buy||sell,1)&&boxh,boxl,boxh-boxl ,2) colorwhite;
A1:=boxh and boxh=ref(boxh,1);
A2:=REFX(REF(A1=0,1) AND A1=1,1);
A3:=REFX(REF(A1=1,1) AND A1=0,1);
DRAWLINE(A2,boxl,A3,boxh,0),colorff9900;
DRAWLINE(A2,boxh,A3,boxl,0),colorgreen;
partline(boxh and boxh=ref(boxh,1),(boxh-boxl)/2+boxl),colorff9900;
stickline((signal||refx(buy||sell,1))&&boxh,boxh,boxl,0.1,0),linedot,coloryellow;
ZZ:=BACKSET(refx(buy||sell,1),BARSLAST(signal)/2);ZX:=REFX(REF(ZZ=0,1) AND ZZ=1,1);
DRAWLINE(signal,boxh,zx,boxl,0),linedot,colorgreen;
DRAWLINE(signal,boxh,refx(buy||sell,1),(boxh-boxl)/2+boxl,0),linedot,colorgreen;
DRAWLINE(signal,boxl,zx,boxh,0),linedot,colorff9900;
DRAWLINE(signal,boxl,refx(buy||sell,1),(boxh-boxl)/2+boxl,0),linedot,colorff9900;
DRAWLINE(signal,boxh,ISLASTBAR AND boxh>boxl,boxl,0),colorgreen;
DRAWLINE(signal,boxh,ISLASTBAR AND boxh>boxl,(boxh-boxl)/2+boxl,0),linedot,colorgreen;
DRAWLINE(signal,boxl,ISLASTBAR AND boxh>boxl,boxh,0),colorff9900;
DRAWLINE(signal,boxl,ISLASTBAR AND boxh>boxl,(boxh-boxl)/2+boxl,0),linedot,colorff9900;
ZA:=BACKSET(ISLASTBAR AND boxh>boxl,BARSLAST(signal)/2);ZB:=REFX(REF(ZA=0,1) AND ZA=1,1);
DRAWLINE(signal,boxh,zb,boxl,0),linedot,colorgreen;
DRAWLINE(signal,boxl,zB,boxh,0),linedot,colorff9900;
更多阅读
绝对比美黑马赢家的黑马营通达信主图、双核及系列选股公式源码 宜兴环保黑马营
1、回马枪B公式源码:当日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);疯牛线:=EXPMEMA(当日成本,3);龙头线:=EXPMEMA(当日成本,8);慢牛线:=EXPMEMA(当日成本,25);生命线:=EXPMEMA(当日成本,79);牛熊线:=
刘翔新婚妻子与前男友相恋始末及肉麻情信曝光图 肉麻的情话
刘翔新婚妻子与前男友相恋始末及肉麻情信曝光文/一床情书翔翔,你还记得大明湖畔的冬日娜吗?--题记刘翔葛天结婚,冬日娜哭晕在厕所,然而通过9月9日的发酵,估计新婚的刘翔和葛天也会哭,因为关于葛天整容、炫富、年龄造假、脾气大、脏话
楼顶花园设计说明及一楼顶花园装修图案例,教你如何布置家庭屋顶 屋顶花园案例分析
楼顶花园设计说明及一楼顶花园装修图案例,教你如何布置家庭屋顶花园设计!用简单便宜的建材,装出宜人的生活环境,喜欢花花草草的同学,一定喜欢装扮自己家的屋顶,或者是阳台,多出一个休闲活动的宜人空间,真是羡慕死人了!更多>>客厅装修效果
通达信四方力道+利多方舟K线主图指标公式-通达信公式-股旁网 通达信股旁网多功能
通达信四方力道+利多方舟K线主图指标公式2011-01-09 股旁网 分类:通达信公式 标签: 主图 四方力道 利多方舟M5:MA(CLOSE,5),COLORWHITE;M10:MA(CLOSE,10),COLORYELLOW;M20:MA(CLOSE,20),COLORRED;M60:MA(CLOSE,60),COLORGREEN;{四方
图 金星是太阳系八大行星之一,按离太阳由近及远的次序排列.. 太阳系的八大行星排列
金星是太阳系八大行星之一,按离太阳由近及远的次序排列为第二颗。在中国古代又称为长庚、启明或太白。公转周期是224.71地球日。夜金星[行星] - 简介金星绕轴自转的方向与太阳系内大多数的行星是相反的金星是一颗类地行星,因为其质量