本策略有加仓和均线过虑具体如下:
开空条件:
1、价格在股指日线20日均线下方
2、1分钟K线5周期向下交30周期均线时开仓做空1手
加仓:
1、当盈利的情况下,出现连续三根阴线,则加空1手
2、当盈利的情况下,出现下降三法形态,则加空1手(如图)
平仓条件:
1、首次开仓止损6个点
2、不管第一次加仓还是第二次加仓,加仓后止损移到开仓均价
3、收盘清仓时间为15:12
tt:=time<151200;
ma5:=ma(c,5);
ma30:=ma(c,30);
mm:=stkindi('','ma.ma1(20)',0,6);
if cross(ma30,ma5) and l<mm then buyshort(holding=0,1,marketr);
if holding=-1 and openprofit>0 and all(isdown,3) then buyshort(1,1,marketr);
if holding=-2 and openprofit>0 and 向下法则 then buyshort(1,1,marketr);
if holding=-1 and h>enterprice+6*mindiff then sellshort(1,0,marketr);
if holding<-1 and h>=AVGENTERPRICE then sellshort(1,0,marketr);
if time>=151200 then sellshort(1,0,marketr);
需要用户对于上图里面的向下法则做更多的说明