Rss & SiteMap

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

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

标题:反手公式怎么表示

1楼
zhou6120 发表于:2016/10/28 0:12:56
if HOLDING<=-1 and c>=ENTERPRICE+n3  then
SELLSHORT(1,ss,MARKET);


if HOLDING>=1 and c<=ENTERPRICE-n3  then
SELL(1,ss,MARKET);



亏N3个点平仓止损,反手开单,怎么表示。请教,谢谢。
2楼
jinzhe 发表于:2016/10/28 9:09:22

if holding>0 and c<enterprice-3 then begin

   sell(1,0,market);

   buyshort(holding=0,1,market);

end

 

if holding<0 and c>enterprice+3 then begin

   sellshort(1,0,market);

   buy(holding=0,1,market);

end

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


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