Rss & SiteMap

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

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

标题:无法加仓的问题

1楼
tp2019 发表于:2019/5/18 20:31:42
请问为什么写,为什么加不了仓
bb:=cross(c,ma(c,300));
ss:=cross(ma(c,300),c);


trrr:if(holding>0,h-enterprice,0),noaxis;

if bb then 
begin
sellshort(holding<0,0,limitr,ht+1*mindiff);
 buy(holding=0,1,limitr,ht+1*mindiff);
end


if  trrr>20 and holding>0 then
begin
buy(1,1,market);
end



if ss  then 
begin
sell(holding>0,0,limitr,lt-1*mindiff);
buyshort(holding=0,1,limitr,lt-1*mindiff);
end
2楼
tp2019 发表于:2019/5/18 21:33:27
为什么我写这种语句,系统为什么不出信号??


if  openprofit>500  then
begin
sell(1,1,market);
sellshort(1,1,market);
end

if  openprofit<-200  then
begin
sell(1,1,market);
sellshort(1,1,market);
end
3楼
wenarm 发表于:2019/5/20 8:43:37

1楼,肯定是你加仓条件不成立。你在即在策略中输出显示

例如:  cond:trrr>20 and holding>0;

 

2楼:图表信号的平仓信号必须依赖于持有虚拟持仓。你只有平仓,没有开仓,平仓语句自然被过滤掉(无仓可平)。

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


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