Rss & SiteMap

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

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

标题:如何在图表程序化交易里实现绝对止损

1楼
青风 发表于:2015/10/21 9:31:38

在图表程序化交易中,开仓后,只要亏损5个点位就无条件止损。

请问:如何用语句实现?

谢谢。

2楼
jinzhe 发表于:2015/10/21 9:36:14

if holding>0 and close<enterprice-5 then sell(1,0,market);

if holding<0 and close>enterprice+5 then sellshort(1,0,market);

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


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