手机端
当前位置:爱约股 > 公式技巧 > 根据买卖指标写个金叉后n天内有又死叉的选股公式

根据买卖指标写个金叉后n天内有又死叉的选股公式

选股条件:当红线金叉绿线后N天内又死叉的选股公式 公式源码: VARTIME:=IF(YEAR>=2050 AND MONTH>=11 AND DAY>=07,0,1); VARDTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=06,1,0); DRAWTEXT(VARDTIME,115,''),COLOR008000; DRAWTEXT(VARDTIME,100,''),COLOR008000; DRAWTEXT(VARDTIME,85,''),COLOR008000; DRAWTEXT(VARDTIME,70,''),COLOR008000; DRAWTEXT(VARDTIME,45,''),COLOR008000; QW1:=(HIGH+LOW+CLOSE*2)/4*VARTIME; QW3:=EMA(QW1,10)*VARTIME; QW4:=STD(QW1,10)*VARTIME; QW5:=(QW1-QW3)*100/QW4*VARTIME; QW6:=EMA(QW5,5)*VARTIME; RK7:=EMA(QW6,10)*VARTIME; 涨:EMA(QW6,10)+100/2-5,LINETHICK1,COLORRED; 跌:EMA(涨,4),LINETHICK1,COLORFFFF34; 买1:EMA(跌,4)*VARTIME,COLORWHITE; 买2:EMA(买1,4)*VARTIME,COLORGREEN; 买M3:=EMA(买2,4)*VARTIME,COLORYELLOW; 买M4:=EMA(买M3,4)*VARTIME,COLORCC9900; -10,POINTDOT,COLOR888888,LINETHICK2; 80,POINTDOT,COLOR888888,LINETHICK2; VAR811:=SUMBARS(VOL,FINANCE(7)*100)*VARTIME; VAR822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL)*VARTIME; VAR883:=(CLOSE-VAR822)/VAR822*100*VARTIME; VAR884:=HHV(VAR883,VAR811)*VARTIME; VAR885:=LLV(VAR883,VAR811)*VARTIME; VAR886:=(VAR883-VAR885)/(VAR884-VAR885)*100*VARTIME; K:=SMA(VAR886,3,1)*VARTIME; D:=SMA(K,3,1)*VARTIME; J:=3*K-2*D;

爱约股解答:

VARTIME:=IF(YEAR>=2050 AND MONTH>=11 AND DAY>=07,0,1);

QW1:=(HIGH+LOW+CLOSE*2)/4*VARTIME; 

QW3:=EMA(QW1,10)*VARTIME; 

QW4:=STD(QW1,10)*VARTIME; 

QW5:=(QW1-QW3)*100/QW4*VARTIME; 

QW6:=EMA(QW5,5)*VARTIME; 

涨:=EMA(QW6,10)+100/2-5; 

跌:=EMA(涨,4); 

买1:=EMA(跌,4)*VARTIME; 

买2:=EMA(买1,4)*VARTIME;

COUNT(CROSS(涨,买2),N)>0 AND CROSS(买2,涨); 

TAG:
分享至:

相关推荐