MA35 := EMA(C,35);
MA70 := EMA(C,70);
VAR1 := ((HHV(HIGH,21) - CLOSE) / (HHV(HIGH,21) - LLV(LOW,21))) * 100;
VAR2 := ((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100;
多方 := SMA(SMA(VAR2,2,1) + 3,2,1);
空方 := SMA(VAR1,3,1);
ZKK := MA(KDJ.K#WEEK,3);
ZDD := MA(KDJ.D#WEEK,3);
MV3 := EMA(V,3);
MA3 := EMA(C,3);
MV3角度 := ((ATAN(((MV3 / REF(MV3,1)) - 1) * 100)) * 180) / 3.1416;
MA3角度 := ((ATAN(((MA3 / REF(MA3,1)) - 1) * 100)) * 180) / 3.1416;
MV5 := EMA(V,5);
MA5 := EMA(C,5);
MV5角度 := ((ATAN(((MV5 / REF(MV5,1)) - 1) * 100)) * 180) / 3.1416;
MA5角度 := ((ATAN(((MA5 / REF(MA5,1)) - 1) * 100)) * 180) / 3.1416;
MV10 := EMA(V,10);
MA10 := EMA(C,10);
MV10角度 := ((ATAN(((MV10 / REF(MV10,1)) - 1) * 100)) * 180) / 3.1416;
MA10角度 := ((ATAN(((MA10 / REF(MA10,1)) - 1) * 100)) * 180) / 3.1416;
强弱度 := (((((MV3角度 + MA3角度) + MV5角度) + MA5角度) + MV10角度) + MA10角度) / 6;
QBD := CROSS(强弱度,50) AND ((COUNT(强弱度 > 50,7)) <= 3);
启爆点 := QBD AND (COUNT(QBD,4) = 1);
GJ := (MACD#WEEK / 10) + 40;
LC5 := REF(C,5);
ZFU := ((C / LC5) - 1) * 100;
WRG := ((GJ / REF(GJ,1)) - 1) * 100;
ZSH := ((C / REF(C,10)) - 1) * 100;
ZES := ((C / REF(C,20)) - 1) * 100;
SG := ((GJ / REF(GJ,6)) - 1) * 100;
ESG := ((GJ / REF(GJ,16)) - 1) * 100;
LEN := (ESG - ZES) + 30;
MEN := (SG - ZSH) + 30;
SEN := (WRG - ZFU) + 30;
TEN := (LEN + MEN) + SEN;
ENCH := (TEN > 90) AND (HHV(REF(TEN,1),14) <= TEN);
LJGJ := (((((LEN > 80) OR (MEN > 80)) OR (SEN > 80)) AND (LEN > 30)) AND (MEN > 30)) AND (SEN > 30);
TENMAVOL := HHV(REF(TEN,1),15);
TENMDAY := BARSLAST(TENMAVOL);
ZNTP := (TEN > TENMAVOL) AND (CLOSE > (REF(CLOSE,TENMDAY + 1)));
分析 := (LJGJ AND ENCH) AND ZNTP;
TJ3 := (COUNT(CROSS(ZKK,ZDD) AND CROSS(多方,空方),2)) = 2;
TJ4 := (启爆点 AND CROSS(多方,空方)) OR ((COUNT(启爆点 OR CROSS(多方,空方),2)) = 2);
TJ5 := CROSS(多方,空方) AND CROSS(ZKK,ZDD);
TJ6 := 启爆点 AND 分析;
TJ7 := (COUNT(启爆点 OR 分析,2)) = 2;
不买是傻子 : (((TJ3 OR TJ4) OR TJ5) OR TJ6) OR TJ7;
STICKLINE(不买是傻子,5,0,2,0),COLORRED;
DRAWTEXT(不买是傻子,4.5,77),COLORYELLOW;