以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  开盘价在40均线开多,在40均线之下反手开空  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=93919)

--  作者:qq代人发帖
--  发布时间:2016/3/3 15:40:47
--  开盘价在40均线开多,在40均线之下反手开空
开盘价在40均线开多,在40均线之下反手开空

--  作者:jinzhe
--  发布时间:2016/3/3 15:44:10
--  

if open>ma(c,40) then begin

    sellshort(1,0,marketr);

    buy(holding=0,1,marketr);

end

 

if open<ma(c,40) then begin

    sell(1,0,marketr);

    buyshort(holding=0,1,marketr);

end