   
等级: 超级版主 
- 注册: 
 - 2021-5-18
 
- 曾用名: 
 - FireScript
 
 
 
 | 
 
a17:=c15f and a15f ; 
a18:=c30f and a30f ; 
a19:=c60f and a60f ; 
 
 
VARIABLE:ct:=3*7*5; 
 
if a17 and mod(ct,3)=0 then  
begin  
buy(1,ss ,market); 
ct:=ct/3; 
end  
 
if a18 and mod(ct,5)=0 then  
begin  
buy(1,ss ,market); 
ct:=ct/5; 
end  
 
if a18 and mod(ct,7)=0 then  
begin  
buy(1,ss ,market); 
ct:=ct/7; 
end  
 
//这个对全局变量的重置 必须有,否则无法控制 
if  平仓条件 and  holding<>0 then  
begin  
//平仓语句 
ct:=3*7*5;         
END 
 
参考上面这个思路。上面这种思路,理论上无论这些条件无论怎样的出现顺序,是否反复出现 都能做好控制。 
 |   
 
 
 
 |