指标编写问答93学习的宝藏
466.问:后面两个分别是-阳包阴(外侧日)和包孕线(内侧日)组合
答(重剑无锋):
阳包阴:
aa:=ref(c,1)<ref(o,1)and ( ref(o,1) -ref(c,1))/ref(c,2)>0.02;{确定昨天阴线实体大小}
bb:=o<=ref(c,1) and c>ref(o,1);{确定今天阳线将昨天阴线全部吞没}
阳包阴:aa and bb;
包孕线:
aa1:=ref(c,1)<ref(o,1) and ref((o-c),1)/ref(c,2)>=0.03 ;{确定昨天阴线实体大小}
bb1:=l>ref(l,1)andc>o and h<ref(o,1);{确定今天阳线在昨天阴线实体内}
包孕线:aa1 and bb1;
467.问:
请写这个:
1:前天跌幅大于3%;
2:昨天收一涨.跌幅小于1%的小阴或小阳,小阴的开盘价,小阳的收盘价要在前天的收盘价附近;
3:今天涨幅大与3%,实体进入前天的阴线实体的三分之一以上;
答(重剑无锋):
早晨之星
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.01;{昨天跌幅小于1%的小阴或小阳,小阴的开盘价,
小阳的收盘价要在前天的收盘价附近}
cc3:=c>ref(c,1)*1.03 and c>( ref(o,2) -ref(c,2))/3*2+ref(c,2);{今天涨幅大与3%,实体进
入前天的阴线实体的三分之一以上}
早晨之星:aa3 and bb3 and cc3
468.问:
想写这样的:前三天为早晨之星之星形态,今天的K线收在昨天那个阳线的实体之内
答(重剑无锋):
后面两根k线也是一个包孕线组合,传统意义是看跌,这样组合后信号很少了,
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%,实体进
入前天的阴线实体的三分之一以上}
早晨之星:=aa3 and bb3 and cc3;
bb4:=c<o and c>ref(h,2) and l>ref(o,1) and c<ref(c,1) and o<ref(c,1);
组合:ref(早晨之星,1) and bb4
469.问:
阳后双阴阳怎样表达
答(重剑无锋):
阳后双阴阳
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
470.问:
连续两或三天下影线的长度大于实体的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;{连续两或三天满足条件}
信号多,但方向不明,好像还是空头强些
页:
[1]