Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:以上证指数20日均线为准,突破就平空做多,跌破就平多做空

1楼
just1 发表于:2013/4/24 16:54:25
以上证指数20日均线为准,突破就平空做多,跌破就平多做空,怎么设置自动交易呢请教下
2楼
jinzhe 发表于:2013/4/24 17:02:24

ma20:=stkindi('000001','ma.ma3',0,datatype);

if  cross(c,ma20) then begin

sellshort(holding<0,0,thisclose);

buy(holding=0,1,thisclose);

end

 

if cross(ma20,c) then begin

sell(holding>0,0,thisclose);

buyshort(holding=0,1,thisclose);

end

共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.02344 s, 3 queries.