Rss & SiteMap

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

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

标题:请教代码问题

1楼
just1 发表于:2013/5/6 13:26:03
So.J  13:23:43
请问如何编写 A=1时开多 B=1时开空 下单后20个点止盈 5个点止损  收盘自动平仓
2楼
jinzhe 发表于:2013/5/6 13:46:39

if a=1 and time<145500 then 开多语句;

if b=1 and time<145500 then 开空语句;

if holding>0 and c-enterprice>20*mindiff then 多头止盈语句;

if holding>0 and enterprice-c>5*mindiff then 多头止损语句;

if holding<0 and enterprice-c>20*mindiff then 空头止盈语句;

if holding<0 and c-enterprice>5*mindiff then 空头止盈语句;

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


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