以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  两个题  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=69686)

--  作者:开多开空
--  发布时间:2014/9/8 10:11:44
--  两个题

a:开盘后无下影线超1, 无阴实体超1, 开盘后的最低点上升8点开多

b:可否在条件某成立时, 标文字和价格在该价格的具价位置上, 如开仓后最高价减5点=2500点时, 标在最后周期的2500点的位置


--  作者:pyd
--  发布时间:2014/9/9 9:13:49
--  

1, 无阴实体怎么定义?谁超谁1点?

2,hh:hhv(h,enterbars+1);
drawtext(enterbars>0 and hh-l>=5,l,NUMTOSTR(hh-5,2));


--  作者:开多开空
--  发布时间:2014/9/9 11:46:57
--  
 

1.没有o-c>1的阴线


--  作者:pyd
--  发布时间:2014/9/9 13:23:17
--  
t1:(o<o and o-l<1) or (o>c and c-l<1) or (o=c and o-l<1);
t2:o-c>1;
t3:h-llv(l,enterbars+1)>=8;
if t1 and not (t2) and t3 then buy(holding=0,1,market);