请教: 为何没任何信号出现? [金字塔]
- 咨询内容:
	
	请教: 为何没任何信号出现?
 ZZ1:=cross(c,ma(c,5));
 DD1:=cross(ma(c,5),c);
 开多条件:=ZZ1;//开多条件
 平多条件:=DD1;//平多条件
 开空条件:=DD1;//开空条件
 平空条件:=ZZ1;//平空条件
 ///////////////////////////////////////////////////////////////////////////////////////////////
 TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
 ATR:=MA(TR1,14);
 多开RATR:=valuewhen(开多条件 and holding=2,ATR);
 空开RATR:=valuewhen(开空条件 and holding=2,ATR);
 {
 1.开仓2手后自动设止损 X*RATR (X缺省为 1)
 2.开仓2手后盈利达到了 Y*RATR, 将2手止损改为保本(成本+2跳)
 3.保本后,盈利未达到 Z1*RATR前,忽略所有平仓信号,只有在盈利超过 Z1*RATR的平仓信号出现后才平仓1手。
 4.保本后,盈利未达到 Z2*RATR前,忽略所有平仓信号,只有在盈利超过 Z2*RATR的平仓信号出现后才平仓1手。
 }
 if openprofit<=-2*x*多开RATR then SELL(1,0,market);
 if openprofit>=y*多开RATR then begin
 if openprofit>=zyx1*多开RATR and openprofit<zyx2*多开RATR and 平多条件 and holding=2 then sell(holding=2,1,market);
 if openprofit>=zyx2*多开RATR and 平多条件 and holding=1 then sell(holding=1,1,market);
 end
 if openprofit<=-1*x*空开RATR then SELLSHORT(1,0,market);
 if openprofit>=y*空开RATR then begin
 if openprofit>=zyx1*空开RATR and openprofit<zyx2*空开RATR and 平空条件 and holding=2 then SELLSHORT(holding=2,1,market);
 if openprofit>=zyx2*空开RATR and 平空条件 and holding=1 then SELLSHORT(holding=1,1,market);
 end
 资产:asset,noaxis;
-  金字塔客服:
	
	坐等行家解惑.......... 
-  用户回复:
	
	X:=; 
 Y:=;
 ZYX1:=;
 ZYX2:=;这几个是多少? 
-  网友回复:
	
	X:=1; 
 Y:=2;
 ZYX1:=3;
 ZYX2:=4;
- 网友回复: 随便给的数字结果就是我这里一个交易信号都没有
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240  进行 有偿 编写!(不贵!点击查看价格!)
                        
相关文章
- 
                        没有相关内容
                       

 
                     会员登录/注册
会员登录/注册