MA1:=MIN(MA(C,5),MIN(MA(C,10),MIN(MA(C,20),MIN(MA(C,30),MA(C,60)))));
MA2:=MAX(MA(C,5),MAX(MA(C,10),MAX(MA(C,20),MAX(MA(C,30),MA(C,60)))));
TJ:=MA1>MA(C,120) AND MA(C,120)>MA(C,250)
AND MA(C,120)/MA(C,250)<1.002 AND MA(C,120)/MA2
n:=0.02;
上方:=ma(c,5)>ma(c,120) and ma(c,10)>ma(c,120) and ma(c,20)>ma(c,120) and ma(c,30)>ma(c,120) and ma(c,60)>ma(c,120);
多头:=ma(c,120)>ma(c,250);
前5条最大:max(ma(c,60),max(ma(c,30),max(ma(c,20),max(ma(c,10),ma(c,5)))));
选:上方 and 多头 and (前5条最大-ma(c,120))/前5条最大
太阳鸟和新黄浦是符合这个条件的
?????