以文本方式查看主题

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

--  作者:pxmygl
--  发布时间:2014/9/1 8:59:09
--  开平
 

持多时,某K收减开>5点, 之后的8K内(不超8K, 可少于8K),原平仓点(开后最高点减P)加1点(P变大1点)平

如何写?


--  作者:jinzhe
--  发布时间:2014/9/1 9:40:58
--  
if barslast(c-o>5)>=8 and holding>0 then  sell.......;