最佳答案
A1:=MA(CLOSE,N);A2:=MA(CLOSE,N1);A3:=MA(CLOSE,N2);A4:=MA(CLOSE,N3);XG:=CLOSE>A1 AND A1>A2 AND A2>A3 AND A3>A4 AND CLOSE>OPEN;sc:=if(xg=1,BARSLAST(xg),0);dj:=ref(l,sc);IF(xg=1,dj,DRAWNULL),COLORRED,LINETHICK2;
A1:=MA(CLOSE,N);A2:=MA(CLOSE,N1);A3:=MA(CLOSE,N2);A4:=MA(CLOSE,N3);XG:=CLOSE>A1 AND A1>A2 AND A2>A3 AND A3>A4 AND CLOSE>OPEN;sc:=if(xg=1,BARSLAST(xg),0);dj:=ref(l,sc);IF(xg=1,dj,DRAWNULL),COLORRED,LINETHICK2;