周DIF:= macd.DIF#WEEK
周DEA:= MacD.DEA#WEEK
周maCD:= MACD.MACD#WEEK
AA4:=周DIF REF(周DIF,1);
周K:= kdj.K#WEEK
周D:= kdJ.D#WEEK
周J:= KDJ.J#WEEK
AA2:=周K REF(周K,1);
AA6:=周J REF(周J,1);
YH1:=C MA(C,2) AND REF(C,1) MA(C,2) OR C MA(C,13) AND REF(C,1) MA(C,13) OR C MA(C,29) AND REF(C,1) MA(C,29) AND AA4;
YH2:=C MA(C,2) AND REF(C,1) MA(C,2) OR C MA(C,6) AND REF(C,1) MA(C,6) OR C MA(C,26) AND REF(C,1) MA(C,26) AND AA2;
买入:YH1 AND YH2,COLORRED;{原XG}
{卖出------------------------永不倒移植}
VAR55:=EMA(EMA(EMA(CLOSE,8),13),62);
VAR56:=((REF(HIGH,1) + REF(LOW,1)) / 2);
VAR57:=(MA(CLOSE,20) + (2 * stD(CLOSE,20)));
VAR58:=((SMA(MAX((CLOSE - REF(CLOSE,1)),0),7,1) / SMA(Abs((CLOSE - REF(CLOSE,1))),7,1)) * 100);
卖出1:=FILTER(crOSS(79,VAR58),4);
MA21:=REF(CLOSE,1);
ZX:=((SMA(MAX((CLOSE - MA21),0),6,1) / SMA(ABS((CLOSE - MA21)),6,1)) * 100);
卖出2:=CROSS(84,ZX),COLORFF00FF;
卖出3:=CROSS(90,rsi);
卖出:{=}卖出1 OR 卖出2 OR 卖出3,COLORGREEN;{永不倒:对应四季变天图的跑步小黄人};
XA_1:=(CLOSE-MA(AMOUNT,13)/MA(vol,13)/100)/(MA(AMOUNT,13)/MA(VOL,13)/100)*100;
XA_2:=MA(MA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3),3);
XA_3:=3*MA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3)-2*XA_2;
XA_4:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100/2+22;
波段宝剑2:(IF(XA_1 AND (CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100 XA_4-2,1,0) AND CROSS(CLOSE,REF(MA(DMA((HIGH+LOW+CLOSE*2)/4.15,0.9),3),1)) AND XA_3 30)*0.5,COLORMAGENTA;
{超短稳赢}
TJ1:=REF(O/C 1.04,1);
TJ2:=O =REF(C,1) AND C REF(H,1);
TJ3:=IF(O expma(C,10),O/EXPMA(C,10) 1.05,O*0.97 EXPMA(C,10) AND C*1.03 EXPMA(C,10));
TJ4:=EXPMA(C,10) EXPMA(C,60) AND EXPMA(C,10)/EXPMA(C,60) 1.25;
超短稳赢买点:TJ1 AND TJ2 AND TJ3 AND TJ4,COLORWHITE;