Rss & SiteMap

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

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

标题:[求助]

1楼
zxlwrz123 发表于:2016/9/21 10:56:15
if c>enterprice*(1+x) and holding>0 then sell(1,0,marketr);//多头止盈
if c<enterpric *(1-x1) and holding<0 then sell(1,0,marketr);//止损多头
if c<enterprice*(1+x) and holding<0 then sellshort(1,0,marketr);///空头止盈
if c>enterprice*(1-x1) and holding>0 then sellshort(1,0,marketr);//止损空头
图片点击可在新窗口打开查看

能不能在止盈止损后,再不交易,直到收盘平仓?


2楼
jinzhe 发表于:2016/9/21 11:13:36
variable:bj=0;
if c>enterprice*(1+x) and holding>0 then begin
   bj:=1;
   sell(1,0,marketr);//多头止盈
end
 
if c<enterpric *(1-x1) and holding<0 then begin
    bj:=1;
    sell(1,0,marketr);//止损多头
end
if c<enterprice*(1+x) and holding<0 then begin
   bj:=1;
   sellshort(1,0,marketr);///空头止盈
end
if c>enterprice*(1-x1) and holding>0 then begin
   bj:=1;
   sellshort(1,0,marketr);//止损空头
end
 
if time=closetime(0) then bj:=0;
3楼
zxlwrz123 发表于:2016/9/21 13:40:22
谢谢
4楼
netlife88 发表于:2016/9/21 15:49:11
你这个根据啥 写的 可以看下源码吗
共4 条记录, 每页显示 10 条, 页签: [1]


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