sA7:=EMA(C,7);
sA14:=EMA(CLOSE,14);
sA21:=EMA(CLOSE,21);
sA34:=EMA(CLOSE,34);
sA42:=EMA(CLOSE,42);
sA54:=EMA(CLOSE,54);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
rYI:=EMA(C,120)>=REF(EMA(C,120),1);
rYI1:=EMA(C,240)>=REF(EMA(C,240),1);
rYI2:=EMA(C,360)>=REF(EMA(C,360),1);
rYI3:=EMA(C,90)>=REF(EMA(C,90),1);
坑底s:(CROSS(sA7,sA14) OR CROSS(sA7,sA21) OR CROSS(sA7,sA34) OR CROSS(sA7,sA42) OR
CROSS(sA7,sA54) OR CROSS(sA14,sA21) OR CROSS(sA14,sA34) OR CROSS(sA14,sA42) OR
CROSS(sA14,sA54) OR CROSS(sA21,sA34) OR CROSS(sA21,sA42) OR CROSS(sA34,sA54) OR
CROSS(sA14,sA21) OR CROSS(sA21,sA34) OR CROSS(sA34,sA42) OR CROSS(sA42,sA54))
AND DEA>0 AND rYI AND rYI1 AND rYI2 AND rYI3 ;