请教老师:如何限定每天只开、平一次 [金字塔]
- 咨询内容:
	
	请教老师:如何限定每天只开、平一次,在策略里加 TOTALDAYTRADE<=1语句好像不起作用。
	
 -  金字塔客服:
	
	
这个要用全局变量的
variable:bj=0;
if 开多条件 and holding=0 and bj=0 then begin
buy(1,1,marketr);
bj:=1;
end
if holding>0 and bj=1 and 平多条件 then begin
sell(1,0,marketr);
end
if time=closetime(0) then bj:=0;
 - 用户回复: 这么复杂
 
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198  进行 有偿 编写!(不贵!点击查看价格!)
                        
相关文章
- 
                        没有相关内容
                       
 

                    
会员登录/注册