Rss & SiteMap

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

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

标题:老师:平仓条件帮我写下,谢谢

1楼
xhbsy007 发表于:2017/2/7 19:45:56
老师:下面平仓条件帮我写下,谢谢!


恒指

平多:=开多后盈利X 点
平空:=开空后盈利X点


2楼
jinzhe 发表于:2017/2/8 8:57:16

pd:=close-enterprice>=x;

pk:=enterprice-close>=x;

3楼
xhbsy007 发表于:2017/2/8 10:51:12
谢谢

4楼
xhbsy007 发表于:2017/2/8 11:39:39
老师:再加个条件 开多  开空 后    亏损X 点平仓
5楼
jinzhe 发表于:2017/2/8 12:57:12

holding>0 and enterprice-c>=x

holding<0 and c-enterprice>=x

6楼
xhbsy007 发表于:2017/2/8 14:44:14
老师:帮我写个完整的,弄不起来。



平空:sellshort(enterprice-close>=X AND holding<0, 0,marketr);
平多:     sell(close-enterprice>=X AND holding>0, 0,marketr );

开多止损:sellshort(enterprice-c>=X AND holding>0, 0,marketr);
开空止损:     sell( c-enterprice>=X AND holding<0, 0,marketr );

7楼
jinzhe 发表于:2017/2/8 14:48:12
平空:sellshort(enterprice-close>=X AND holding<0, 0,marketr);
平多:sell(close-enterprice>=X AND holding>0, 0,marketr );

开空止损:sellshort(enterprice-c>=X AND holding<0, 0,marketr);
开多止损:sell( c-enterprice>=X AND holding>0, 0,marketr );
8楼
xhbsy007 发表于:2017/2/8 15:20:36
盈利平仓  跟止损 怎么代码一样的?
9楼
jinzhe 发表于:2017/2/8 15:22:05
平空:sellshort(enterprice-close>=X AND holding<0, 0,marketr);
平多:sell(close-enterprice>=X AND holding>0, 0,marketr );

开空止损:sellshort(c-enterprice>=X AND holding<0, 0,marketr);
开多止损:sell( enterprice-c>=X AND holding>0, 0,marketr );
10楼
xhbsy007 发表于:2017/2/8 15:33:49
谢谢

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


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