Rss & SiteMap

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

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

标题:多单的回撤止盈怎么写》?

1楼
量化马甲 发表于:2014/7/11 15:12:46
多单的利润从最高点回落20%后止盈,这个该怎么写啦?后台交易系统。
2楼
jinzhe 发表于:2014/7/11 15:19:50

if (hhv(topenrpfit,tenterbars+1)-topenprofit)/hhv(topenprofit,tenterbars+1)>=0.2 and 持仓判断 then 平多语句;

3楼
量化马甲 发表于:2014/7/11 15:33:13
到止盈全部平仓,这样写正确吗

if (hhv(topenprofit,tenterbars+1)-topenprofit)/hhv(topenprofit,tenterbars+1)>=0.2 and tbuyholdingex('',cu1,1)>1 then begin
tsell(1,tbuyholdingex('',cu1,1),mkt,0,0,'',cu1);
end
4楼
jinzhe 发表于:2014/7/11 15:41:30
5楼
量化马甲 发表于:2014/7/11 15:43:11
空单的止盈,是这样写吗
if (hhv(topenprofit,tenterbars+1)-topenprofit)/hhv(topenprofit,tenterbars+1)>=0.2 and tsellholdingex('',cu1,1)>0 then begin
tsellshort(1,tsellholdingex('',cu1,1),mkt,0,0,'',cu1);
end
6楼
jinzhe 发表于:2014/7/11 15:47:08
也一样,就是当前浮赢比最大浮赢降低了20%
共6 条记录, 每页显示 10 条, 页签: [1]


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