Rss & SiteMap

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

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

标题:再次入场问题

1楼
系统使用者 发表于:2017/7/25 12:09:36
平多:=aspect=1;
平空:=aspect=0;
开多条件:=aspect=0 and Jtrend=1;
开空条件:=aspect=1 and Jtrend=-1;

if holding>0 and 平多 then sell(1,SS,marketr);  
if holding<0 and 平空 then sellshort(1,SS,marketr);
if holding<=0 and 开多条件 then buy(1,SS,marketr); 
if holding>=0 and 开空条件 then buyshort(1,SS,marketr);
遇到这样的问题,开空后对应平空,当在次符合开多的时候,不在当K出现开多信号,反而出现在前面的平空位置出现开多。
如何解决在次开多代码?
2楼
wenarm 发表于:2017/7/25 12:33:22

不太明白你说的什么。

 

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


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