以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  阳线上穿均线MA1时买入开仓  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=80913)

--  作者:qq代人发帖
--  发布时间:2015/7/14 13:39:28
--  阳线上穿均线MA1时买入开仓
怎么表示阳线上穿均线MA1时买入开仓,阴线下穿均线MA1时卖出开仓??

--  作者:jinzhe
--  发布时间:2015/7/14 13:42:05
--  

if isup and cross(close,ma1) then buy(holding=0,1,makret);

if isdown and cross(ma1,close) then buyshort(holding=0,1,market);