Rss & SiteMap

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

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

标题:[求助]平推如何编写

1楼
xiaosa2003 发表于:2015/5/8 9:36:53
例如浮盈>10000,以开仓价作为止损点?
2楼
jinzhe 发表于:2015/5/8 9:38:18

if openprofit>10000 and holding>0 then sell(1,0,limitr,enterprice);

if openprofit>10000 and holding<0 then sellshort(1,0,limitr,enterprice);

3楼
xiaosa2003 发表于:2015/5/8 9:49:10
你这个是浮盈大于1W,用开仓价平仓吧
我的意思是,如果浮盈大于1W后,价格回到开仓价平仓
4楼
jinzhe 发表于:2015/5/8 9:58:09

if hhv(openprofit,enterbars+1)>10000 and holding>0  and c<enterprice then sell(1,0,market);

if hhv(openprofit,enterbars+1)>10000 and holding<0  and c>enterprice then sellshort(1,0,market);

走完k线模式下的方法

 

如果是固定轮询模式则要改为l<enterprice 和 h>enterprice

5楼
xiaosa2003 发表于:2015/5/8 10:21:52
HHV 函数在逐K线模式下不能直接在IF控制语句之内引用。
看了帮助,没看懂
6楼
jinzhe 发表于:2015/5/8 10:25:23

说明你把我的这段代码嵌套进了一个if判断内

把这段话单独拿出来,不要放在if判断之内

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


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