Rss & SiteMap

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

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

标题:单笔最大亏损

1楼
skylands 发表于:2014/11/20 17:00:51
如果想将单笔最大亏损控制在15000元,那么固定轮询模式下如下代码是否正确?
多头最大单亏:=holding>0 and openprofit<-15000;
空头最大单亏:=holding<0 and openprofit<-15000;
sell(ref(多头最大单亏,1),holding,limitr,open-mindiff);
sellshort(ref(空头最大单亏,1),holding,limitr,open+mindiff);
2楼
FexTel 发表于:2014/11/20 17:05:35
1,可以这样写
共2 条记录, 每页显示 10 条, 页签: [1]


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