Rss & SiteMap

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

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

标题:怎么止盈后2次开仓?

1楼
qq835560665 发表于:2014/4/30 16:04:46
有什么公式可以在止盈后2次开仓?
2楼
jinzhe 发表于:2014/4/30 16:16:34
止盈后开2次仓?还是2手仓?开反手仓?开仓要不要条件还是止盈后无条件开仓?
[此贴子已经被作者于2014/4/30 16:16:49编辑过]
3楼
qq835560665 发表于:2014/4/30 16:45:45

止盈后朝原本有利的方向 运动了x%后开仓,盈利x点后平仓。

4楼
jinzhe 发表于:2014/4/30 16:55:10

止盈之后还有持仓,然后判断这个持仓是否仍然盈利?

5楼
qq835560665 发表于:2014/4/30 17:09:35

止盈之后就没有仓位了。因为有时候止盈完之后会损失有利的行情,就想止损后朝有利方向继续运动了就再开回仓位。

6楼
jinzhe 发表于:2014/4/30 17:20:48

variable:n=0;
variable:m=0;//用全局变量来控制平仓之后的重新开仓,避免对原有的正常开仓进行处理

if type(1)=2 and (h-exitprice)/exitprice>0.0x  and n=0 and holding=0 then  begin
  buy(holding=0,1,market);
  n:=1;
 end
 
if (h-enterprice)>x and n=1  and holding>0 then  begin
 sell(1,0,market);
 n:=0;
end
if type(1)=4 and (exitprice-l)/exitprice>0.0x and m=0  and holding=0 then begin
  buyshort(holding=0,1,market);
  m:=1;
end
if (enterprice-l)>x  and m=1 and holding<0  then begin
 sellshort(1,0,market);
 m:=0;
end

[此贴子已经被作者于2014/4/30 17:21:24编辑过]
7楼
qq835560665 发表于:2014/4/30 17:38:19
谢谢您!
共7 条记录, 每页显示 10 条, 页签: [1]


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