马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
626.问:
大阳线后的跳空钜量阴线
答(一鸣):
因为公式中的定义比较模糊,使用者可视自己的需求更改数据,以免有遗珠之憾
{大阳线后的跳空钜量阴线}
v/ma(v,10)>=2 and c<o and l>ref(h,1) and ref(c,1)/ref(o,1)>=1.05
and ref(c,1)>=ref(h,2)*1.03;
627.问:
大阳线以后的跳空十字阴星,钜量后,阳线过阴星
答(一鸣):
c>o and c>ref(h,1) and ref(l,1)>ref(h,2) and ref(c,1)<ref(o,1)
and ref(v,1)/ref(ma(v,10),1)>=2 and abs(ref(c,1)/ref(o,1)-1)<=0.05
and ref(h,1)>ref(o,1) and ref(l,1)<ref(c,1) and ref(c,2)/ref(o,2)>=1.05;
628.问:
请写以zq1=1为起点往右每五天做一标记,并统计这五天的换手率公式.
b:=ma(c,30);
jc:=refx(cross(b,ma(b,2)+0.0001) or cross(ma(b,2),b+0.0001) ,1);
zq1:BARSLAST(jc=1)+1,LINETHICK1;
答(股市浪子):
{五天换手率}
gb:=SYSPARAM(1);
b:=MA(CLOSE,30);
jc:=REFX(CROSS(b,MA(b,2)+0.0001) or CROSS(MA(b,2),b+0.0001) ,1);
zq1:=BARSLAST(jc=1)+1,LINETHICK1;
hs:=VOL/CAPITAL*100;
s1:=SUMBARS(JC,1);
位置:=gb-s1[gb]+1,LINETHICK;//
//gb-位置,LINETHICK;
VERTLINE(zq1 and BARPOS=位置),COLORGRAY;
DRAWICON(zq1 and BARPOS=位置,0,10);
tj1:=zq1>(1*5-1) and BARPOS=位置+1*5-1;VERTLINE(tj1),COLORGRAY;mv1:=IF(tj1,SUM(HS,5),0),LINETHICK;//
STICKLINE(tj1,0,mv1,4,0),colorcyan;DRAWNUMBER(tj1,mv1+5,mv1,2),coloryellow,ALIGN;
tj2:=zq1>(2*5-1) and BARPOS=位置+2*5-1;VERTLINE(TJ2),COLORGRAY;mv2:=IF(TJ2,SUM(HS,5),0),LINETHICK;//
STICKLINE(TJ2,0,mv2,4,0),colorcyan;DRAWNUMBER(tj2,mv2+8,mv2,2),coloryellow,ALIGN;
tj3:=zq1>(3*5-1) and BARPOS=位置+3*5-1;VERTLINE(TJ3),COLORGRAY;mv3:=IF(TJ3,SUM(HS,5)-mv1-mv2,0),LINETHICK;//
STICKLINE(TJ3,0,mv3,4,0),colorcyan;DRAWNUMBER(tj3,mv3+5,mv3,2),coloryellow,ALIGN;
tj4:=zq1>(4*5-1) and BARPOS=位置+4*5-1;VERTLINE(TJ4),COLORGRAY;mv4:=IF(TJ4,SUM(HS,5),0),LINETHICK;//
STICKLINE(TJ4,0,mv4,4,0),colorcyan;DRAWNUMBER(tj4,mv4+8,mv4,2),coloryellow,ALIGN;
tj5:=zq1>(5*5-1) and BARPOS=位置+5*5-1;VERTLINE(TJ5),COLORGRAY;mv5:=IF(TJ5,SUM(HS,5),0),LINETHICK;//
STICKLINE(TJ5,0,mv5,4,0),colorcyan;DRAWNUMBER(tj5,mv5+5,mv5,2),coloryellow,ALIGN;
tj6:=zq1>(6*5-1) and BARPOS=位置+6*5-1;VERTLINE(TJ6),COLORGRAY;mv6:=IF(TJ6,SUM(HS,5),0),LINETHICK;//
STICKLINE(TJ6,0,mv6,4,0),colorcyan;DRAWNUMBER(tj6,mv6+8,mv6,2),coloryellow,ALIGN;
tj7:=zq1>(7*5-1) and BARPOS=位置+7*5-1;VERTLINE(TJ7),COLORGRAY;mv7:=IF(TJ7,SUM(HS,5),0),LINETHICK;//
STICKLINE(TJ7,0,mv7,4,0),colorcyan;DRAWNUMBER(tj7,mv7+5,mv7,2),coloryellow,ALIGN;
tj8:=zq1>(8*5-1) and BARPOS=位置+8*5-1;VERTLINE(TJ8),COLORGRAY;mv8:=IF(TJ8,SUM(HS,5),0),LINETHICK;//
STICKLINE(TJ8,0,mv8,4,0),colorcyan;DRAWNUMBER(tj8,mv8+8,mv8,2),coloryellow,ALIGN;
tj9:=zq1>(9*5-1) and BARPOS=位置+9*5-1;VERTLINE(TJ9),COLORGRAY;mv9:=IF(TJ9,SUM(HS,5),0),LINETHICK;//
STICKLINE(TJ9,0,mv9,4,0),colorcyan;DRAWNUMBER(tj9,mv9+5,mv9,2),coloryellow,ALIGN;
tj10:=zq1>(10*5-1) and BARPOS=位置+10*5-1;VERTLINE(TJ10),COLORGRAY;mv10:=IF(TJ10,SUM(HS,5),0),LINETHICK;//
STICKLINE(TJ10,0,mv10,4,0),colorcyan;DRAWNUMBER(tj10,mv10+8,mv10,2),coloryellow,ALIGN;
tj11:=zq1>(11*5-1) and BARPOS=位置+11*5-1;VERTLINE(TJ11),COLORGRAY;mv11:=IF(TJ11,SUM(HS,5),0),LINETHICK;//
STICKLINE(TJ11,0,mv11,4,0),colorcyan;DRAWNUMBER(tj11,mv11+5,mv11,2),coloryellow,ALIGN;
tj12:=zq1>(12*5-1) and BARPOS=位置+12*5-1;VERTLINE(TJ12),COLORGRAY;mv12:=IF(TJ12,SUM(HS,5),0),LINETHICK;//
STICKLINE(TJ12,0,mv12,4,0),colorcyan;DRAWNUMBER(tj12,mv12+8,mv12,2),coloryellow,ALIGN;
// i:=i+1;
//end;
{请写以zq1=1为起点往右每五天做一标记,并统计这五天的换手率公式.
答(wzlhm):
可以这样:
b:=ma(c,30);
jc:=refx(cross(b,ma(b,2)+0.0001) or cross(ma(b,2),b+0.0001) ,1);
zq1:BARSLAST(jc=1)+1,LINETHICK1;//以上是你的源码
a1:=FRACPART((zq1-1)/5)=0;
a2:=FRACPART((zq1)/5)=0;
hs:=v/capital*100;
lj:=sum(hs,5)*a2;
VERTLINE(a1),COLORYELLOW;
STICKLINE(zq1=1,0,15,3,0),COLORMAGENTA;
DRAWNUMBER(ref(a2,1),15,ref(lj,1),1),ALIGN2,COLORGREEN;
DRAWNUMBER(ISLASTBAR,15,sum(hs,barslast(a1)+1),1),COLORGREEN;
答(ghwy123):
还有一种方法:
tj:=mod(barslast(zq1=1),5)=0;
drawicon(tj,1,4);
|