VARQS1:=MA(CLOSE,5);
VARQS2:=CLOSE;
MID:=MA(CLOSE,55);
MID1:=MA(CLOSE,99);
A0:=FORCAST(MID1,99);
VARQS3:=A0*0.91;
VARQS4:=A0*0.854;
VARQS5:=A0*0.764;
VARQS6:=A0*0.618;
VARQS7:=A0*0.48;
VARQS8:=A0*0.382;
EM1:=EMA(C,5);
EM2:=EMA(C,7);
EM3:=EMA(C,11);
TJ:=BETWEEN(EM2,EM1,EM3);
DRAWICON(TJ=0,L,15);
DF:=(C-REF(C,1))/REF(C,1)*100<-5;
AA:=BARSLAST(DF);
箱顶:REF(O,AA),DOTLINE,COLORFF00FF;
DRAWICON(CROSS(C,箱顶),L*0.99,15);
VARQS9:=IF(LOW<MID1*1.3,REF(MID1,BARSLAST(LOW<MID AND REF(CLOSE,1)>REF(MID,1))),VARQS2);
VARQS10:=IF(LOW<MID1*1.1,REF(VARQS3,BARSLAST(LOW<MID AND REF(CLOSE,1)>REF(MID,1))),VARQS2);
VARQS11:=IF(LOW<VARQS10*0.95,REF(VARQS4,BARSLAST(LOW<VARQS10 AND REF(CLOSE,1)>=REF(VARQS10,1))),VARQS2);
VARQS12:=IF(LOW<VARQS11*0.95,REF(VARQS5,BARSLAST(LOW<VARQS11 AND REF(CLOSE,1)>=REF(VARQS11,1))),VARQS2);
VARQS13:=IF(LOW<VARQS12*0.95,REF(VARQS6,BARSLAST(LOW<VARQS12 AND REF(CLOSE,1)>=REF(VARQS12,1))),VARQS2);
VARQS14:=IF(LOW<VARQS12*0.9,REF(VARQS7,BARSLAST(LOW<VARQS13 AND REF(CLOSE,1)>=REF(VARQS13,1))),VARQS2);
VARQS15:=IF(LOW<VARQS12*0.9,REF(VARQS8,BARSLAST(LOW<VARQS13 AND REF(CLOSE,1)>=REF(VARQS13,1))),VARQS2);
底1:IF(LOW>VARQS10*1.25,VARQS2,VARQS10),CIRCLEDOT;
底5:IF(LOW>VARQS14*1.25,VARQS2,VARQS14),CIRCLEDOT;
大底6:IF(LOW>VARQS15*1.25,VARQS2,VARQS15),CIRCLEDOT;
VARQS16:=FORCAST(LOW,55);
FORCAST(VARQS16,99),CIRCLEDOT;