指标编写问答95学习的宝藏
475.问:两阳夹两阴,两阳的涨幅要大于2%,两阴要在前一根阳线的实体只内,两阴量逐减,价渐低
答(重剑无锋):
aa5:=(ref(c,3)-ref(o,3))/ref(c,4)>0.02;{阳线实体涨幅大于2%}
bb5:=ref(c,2)<ref(o,2) and ref(o,2)<ref(c,3) and ref(c,2)>ref(o,3)
and ref(h,2)<ref(h,3) and ref(l,2)>ref(l,3);{阴线在前一根阳线的实体内}
cc5:=ref(c,1)<ref(o,1) and ref(c,1)<ref(c,2) and ref(o,1)<ref(c,3) and ref(c,1)>ref
(o,3)
and ref(h,1)<ref(h,3) and ref(l,1)>ref(l,3);{阴线在前前一根阳线的实体内,价渐低}
dd5:=c>o*1.02 and l>ref(l,3) and c>ref(hhv(c,2),1);{阳线实体涨幅大于2%}
阳后双阴阳:aa5 and bb5 and cc5 and dd5
476.问:
连续两或三天下影线的长度大于实体的1.5倍;
答(重剑无锋):
是并列锤子线组合吧:
aa7:=(min(c,o)-l)>abs(c-o)*1.5 and (min(c,o)-l)>(h-max(c,o))*2;{下影线的长度大于实体的
1.5倍}
bb7:count(count(aa7,2)>=2,2)>=1 and aa7;{连续两或三天满足条件}
信号多,但方向不明,好像还是空头强些
477.问:
如何写曙光再现又称好友反攻,插入线
答(重剑无锋):
AA8:=REF(C,1)/REF(O,1)<=0.97 AND (MIN(C,O)-L)<(REF(O,1)-REF(C,1))/3;
BB8:=C/O>1.01 AND
O<REF(C,1) AND
C>=(ref(C,1)+(REF(O,1)-REF(C,1))/3) and H<ref(O,1);
曙光再现:AA8 AND BB8
478.问:
隐蔽日出击+阳包阴+包孕线+两阳夹一阴+早晨之星
能不能将这选股原码分析家的编一套?
答(重剑无锋):
6K组合
aa:=ref(c,1)<ref(o,1)and ( ref(o,1) -ref(c,1))/ref(c,2)>0.015;{确定昨天阴线实体大小}
bb:=o<=ref(c,1) and c>ref(o,1);{确定今天阳线将昨天阴线全部吞没}
yby:=aa and bb;
aa1:=ref(c,1)<ref(o,1) and ( ref(o,1) -ref(c,1))/ref(c,2)>=0.03 ;{确定昨天阴线实体大小
}
bb1:=l>ref(l,1)andc>o and h<ref(o,1);{确定今天阳线在昨天阴线实体内}
byx:=aa1 and bb1;
A1:=REF(C,2)>REF(O,2) and ( ref(c,2) -ref(o,2))/ref(c,2)>0.02;
A2:=REF(C,1)<REF(O,1)*1.005 and ref(c,1)<ref(c,2);
A3:=C>O*1.023 AND C>REF(C,1)*0.99;
lyjyy:=A1AND A2 AND A3;
aa3:=ref(c,2)<ref(o,2) and ( ref(o,2) -ref(c,2))/ref(c,3)>=0.03 ;{前天阴线实体大于-3%}
bb3:=abs(ref(c,1)-ref(o,1))<( ref(o,2) -ref(c,2))/3 and (ref(h,1)<( ref(o,2) -ref
(c,2))/3+ref(c,2))
and abs(ref(c,2)-ref(c,1))/ref(c,3)<=0.04;{昨天跌幅小于1%的小阴或小阳,小阴的开盘价,
小阳的收盘价要在前天的收盘价附近}
cc3:=c>ref(c,1)*1.03 and c>( ref(o,2) -ref(c,2))/3*2+ref(c,2);{今天涨幅大与3%,实体进
入前天的阴线实体的三分之一以上}
zczx:=aa3 and bb3 and cc3;
aa4:=(h-max(c,o))>3*(min(c,o)-l) and (h-l)>abs(c-o)*3.5 and (h-l)/ref(c,1)>=0.03;
bb4:=c>ref(h,1) and ref(aa,1) and o<ref(h,1) and c>o;
jbtp:=aa4 and bb4;
AA8:=REF(C,1)/REF(O,1)<=0.97 AND (MIN(C,O)-L)<(REF(O,1)-REF(C,1))/3;
BB8:=C/O>1.01 AND
O<REF(C,1)AND
C>=(ref(C,1)+(REF(O,1)-REF(C,1))/3) and H<ref(O,1);
sgzx:=AA8 AND BB8;
yby or byx or lyjyy or zczx or jbtp or sgzx
479.问:
1,低位放量涨停 换手较大,3%以上。
2,第二天在前一天的收盘价上方振荡,换手率比前一交易日放大。
3,第三天股价回落到第二天收盘价3%以下,同时换手率不能低于第二日的一半时出现选股信号
答(重剑无锋):
你的条件太苛刻了,去掉了低位和换手率这两个条件只有63个信号(96-05)
看看源码:
aa9:=c>=ref(c,1)*1.094 and c/o>1.04 and h=c and l>ref(l,1) ;
{放量涨停}
bb9:=l<ref(c,1) and (h-c+o-l)<(c-o)and c>o and (c-o)<(h-l)*0.6
and (c-o)>(h-l)*0.2 and c>ref(c,1);{第二天在前一天的收盘价上方振荡,有上下引线}
cc9:=l<=ref(c,1)*0.97 and l>ref(o,2);{第三天股价回落到第二天收盘价3%以下}
ref(aa9,2) and ref(bb9,1)andcc9
480.问:
帮忙写一个:
1、连续3天换手率》3%;
2、3天总涨幅《=10%;
答(重剑无锋):
a:=v/capital*100>3;
aa:=count(a,3)=3;{连续3天换手率》3%}
bb:=c/ref(c,2)<=1.1 and c/ref(c,2)>1;{3天总涨幅《=10%}
aa and a and bb
这个不是K线组合,
{3天总涨幅《=10%》三天里可以有许多组合。
页:
[1]