马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
316.问:
EMABASE线,上穿,多空A线,为,1点.(反之,为,下跌,1点)
多空A线,上穿多空B线,为,2点.(反之,为,下跌,2点)
AMA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
BMA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48))/4;
EMABASEh+l+2*c)/4;
DRAWICON(cross(EMABASE,a) and cross(EMABASE,b),b,1);
这是上涨买入一点吧.
DRAWICON(cross(a,b) and EMABASE>a,a,4);
这是买入加仓二点
DRAWICON(cross(a,EMABASE) and cross(b,EMABASE),b,2);
下跌,一点
DRAWICON(cross(b,a) and EMABASE<a,a,5);
下跌2点
bu:=BARSLAST(c=hhv(c,20)) ;
se:=BARSLAST(c=llv(c,20));
a1:hhv(c,17),linethick0,colorffff54;
a2:llv(c,17),linethick0,color5454ff;
PARTLINE(bu<se,a2),linethick2,color5454ff;
PARTLINE(bu>se,a1),linethick2,colorffff54;
答(恒悦):
以红绿灯显示买3卖3
A:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
B:=(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48))/4;
EMABASE:=(h+l+2*c)/4;
b1:=cross(EMABASE,a) and cross(EMABASE,b);
b2:=cross(a,b) and EMABASE>a;
s1:=cross(a,EMABASE) and cross(b,EMABASE);
s2:=cross(b,a) and EMABASE<a;
bz1:=BARSLAST(b1);
bz2:=BARSLAST(b2);
sz1:=BARSLAST(s1);
sz2:=BARSLAST(s2);
b3:=max(bz1,bz2)<min(sz1,sz2) and cross(c,(ref(c,bz1)+ref(c,bz2))*0.55);
s3:=max(sz1,sz2)<min(bz1,bz2) and cross((ref(c,sz1)+ref(c,sz2))*0.45,c);
DRAWICON(b1,b,1);
DRAWICON(b2,a,4);
DRAWICON(b3,a,10);
DRAWICON(s1,b,2);
DRAWICON(s2,a,5);
DRAWICON(s3,a,11);
bu:=BARSLAST(c=hhv(c,20)) ;
se:=BARSLAST(c=llv(c,20));
a1:hhv(c,17),linethick0,colorffff54;
a2:llv(c,17),linethick0,color5454ff;
PARTLINE(bu<se,a2),linethick2,color5454ff;
PARTLINE(bu>se,a1),linethick2,colorffff54;
317.问:
上式我想调整买卖3点,的涨幅条件,该在公式那句做调整?
再加个过虑信号限制当多空A,B两线交叉,产生买,卖,增仓2点,后,EMABASE线,13天内,反复穿越,多空A,B两线,时,不 显示期间的买卖1点信号.维持2点增仓信号状态.以计算买卖3点信号当多空A.B两线交叉,产生买,卖增仓2点,后,两线维持平行走势,,多空A.B线未出现任何上下交 叉,而EMABASE线,13天内,反复穿越,多空A.B两线时,不显示买卖1点信号.,以2点信号为准.计算 买卖3点信号. 当,多空A.B两线交叉出现买卖2点信号,3天后,A.B两线再次出现交叉时,不显示信号,以前一次 信号为准,
天数计算规则:以信号第二天为起始日,信号当天不计算在内!
答(恒悦):
调整参数n就可以了
input:n(10,1,100);
A:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
B:=(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48))/4;
EMABASE:=(h+l+2*c)/4;
b1:=cross(EMABASE,a) and cross(EMABASE,b);
b2:=cross(a,b) and EMABASE>a;
s1:=cross(a,EMABASE) and cross(b,EMABASE);
s2:=cross(b,a) and EMABASE<a;
bz1:=BARSLAST(b1);
bz2:=BARSLAST(b2);
sz1:=BARSLAST(s1);
sz2:=BARSLAST(s2);
b3:=max(bz1,bz2)<min(sz1,sz2) and cross(c,(ref(c,bz1)+ref(c,bz2))*0.5*(1+n/100));
s3:=max(sz1,sz2)<min(bz1,bz2) and cross((ref(c,sz1)+ref(c,sz2))*0.5*(1-n/100),c);
DRAWICON(b1,b,1);
DRAWICON(b2,a,4);
DRAWICON(b3,a,10);
DRAWICON(s1,b,2);
DRAWICON(s2,a,5);
DRAWICON(s3,a,11);
bu:=BARSLAST(c=hhv(c,20)) ;
se:=BARSLAST(c=llv(c,20));
a1:hhv(c,17),linethick0,colorffff54;
a2:llv(c,17),linethick0,color5454ff;
PARTLINE(bu<se,a2),linethick2,color5454ff;
PARTLINE(bu>se,a1),linethick2,colorffff54;
318.问:
多条移动平均线粘合,如5、10、20、30、120、250日移动平均线粘合的技术指标!
答(恒悦):
公式中的粘合必须进行量化,否则无法编制
调整参数n为粘合程度,n值越小粘合的程度越高,即均线距离越近;
m为粘合周期。
答(恒悦):
' aa:=(ma(c,5)+ma(c,10)+ma(c,20)+ma(c,30)+ma(c,120)+ma(c,250))/6;
up:=aa*n/100+aa;
down:=aa-aa*n/100;
count(BETWEEN(ma(c,5),up,down) and BETWEEN(ma(c,10),up,down)
and BETWEEN(ma(c,20),up,down) and BETWEEN(ma(c,30),up,down)
and BETWEEN(ma(c,120),up,down) and BETWEEN(ma(c,250),up,down),m)=m;
n(2,1,500) m(10,1,100)
答(zero-zero):
a:=(3*c+l+o+h)/6;
m5:=MA(a,5);M10:=MA(a,10);M15:=MA(a,15);M20:=MA(a,20);M25:=MA(a,25);M30:=MA (a,30);
M60:=MA(a,60);
M90:=MA(a,90);M120:=MA(a,120);M150:=MA(a,150);M180:=MA(a,180);M210:=M(a,210);
M240:=MA(a,240);
a1:=HHV(CLOSE,n);
a2:=LLV(CLOSE,n*2/3);
a3:=(a1+a2)/2;
m20>a2 and m20<a3 and m30>a2 and m30<a3 and m60>a2 and m60<a3 and
m90>a2 and m90<a3 and m120>a2 and m120<a3 and m150>a2 and m150<a3 and
m180>a2 and m180<a3 and m210>a2 and m210<a3 and m240>a2 and m240<a3 and
m120>REF(m120,1) and ((a3-a2)/a2)<(n1/20)
答(灵如云):
m:=ma(c,5); m1:=ma(c,10); m2:=ma(c,20); m3:=ma(c,30); m12:=ma(c,120);
m25:=ma(c,250);
d:=max(max(max(max(max(m,m1),m2),m3),m12),m25);
x:=min(min(min(min(min(m,m1),m2),m3),m12),m25);
(d/x-1)*100<n;
319.问:
如果引用个股本身的不同周期应该怎么写?
STKINDI('1A0001','KDJ.k',0,7),coloreeee33;
STKINDI('1A0001','KDJ.d',0,7),coloryellow;
这是引用的大盘的kdj的2条线吧?
如果引用个股本身的不同周期应该怎么写?
答(恒悦):
STKINDI('','KDJ.k',0,7),coloreeee33;
STKINDI('','KDJ.d',0,7),coloryellow;
将代码置空就可以了
320.问:
一条曲线在向上时显示为红色,向下时显示绿色在拐头向上时显示为红色,向下时显示绿色
答(恒悦):
v1:=C*2-ref(C,3);
PARTLINE(v1>=ref(v1,1),v1),shift3,color5252ff;
PARTLINE(v1<ref(v1,1),v1),shift3,colorcyan;
|