Rss & SiteMap

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

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

标题:请教代码编写

1楼
just1 发表于:2013/5/2 16:58:22
b=1时平多单
b=1 且 mm>10的时候开n%仓位的空单
b=1 且 mm<10的时候开m%仓位的空单

a=1时平空单
a=1 且 mm>10 开n%多单
a=1 且 mm<10 开m%多单


平仓平全部  开仓根据mm的位置按不同比例开仓
2楼
jinzhe 发表于:2013/5/2 17:28:12

if b=1 then sell(1,0,market);

if b=1 and mm>10 then buyshort(1,n%,market);

if b=1 and mm<10 then buyshort(1,m%,market);

 

if a=1 then sellshort(1,0,market);

if a=1 and mm>10 then buy(1,n%,market);

if a=1 and mm<10 then buy(1,m%,market);

 

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


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