在线检测未来函数

涨停板后 后面2阴做个预警选股公式

来源:Internet,编辑:股旁网,2012-07-08

编写条件:

请老师帮忙写一个涨停板后 涨停板k线包后面2阴做个预警选股公式

编写方法:

 大智慧

 
all(between(h,ref(h,barslast(1.1*ref(c,1)-c<0.005 or (strfind(stkname,'s',1)>0 and 1.05*ref(c,1)-c<0.005))),ref(l,barslast(1.1*ref(c,1)-c<0.005 or (strfind(stkname,'s',1)>0 and 1.05*ref(c,1)-c<0.005)))) and between(l,ref(h,barslast(1.1*ref(c,1)-c<0.005 or (strfind(stkname,'s',1)>0 and 1.05*ref(c,1)-c<0.005))),ref(l,barslast(1.1*ref(c,1)-c<0.005 or (strfind(stkname,'s',1)>0 and 1.05*ref(c,1)-c<0.005)))) and c<o ,2 ) and ref(1.1*ref(c,1)-c<0.005 or (strfind(stkname,'s',1)>0 and 1.05*ref(c,1)-c<0.005),2);
 
 
通达信
 
every(between(h,ref(h,barslast(1.1*ref(c,1)-c<0.005 or ((namelike('st') or namelike('*st') or namelike('sst')) and 1.05*ref(c,1)-c<0.005))),ref(l,barslast(1.1*ref(c,1)-c<0.005 or ((namelike('st') or namelike('*st') or namelike('sst')) and 1.05*ref(c,1)-c<0.005)))) and between(l,ref(h,barslast(1.1*ref(c,1)-c<0.005 or ((namelike('st') or namelike('*st') or namelike('sst')) and 1.05*ref(c,1)-c<0.005))),ref(l,barslast(1.1*ref(c,1)-c<0.005 or ((namelike('st') or namelike('*st') or namelike('sst')) and 1.05*ref(c,1)-c<0.005)))) ,2) and ref(1.1*ref(c,1)-c<0.005 or ((namelike('st') or namelike('*st') or namelike('sst')) and 1.05*ref(c,1)-c<0.005),2);

相关文章