NNH:=BARSLAST(H=HHV(H,7)) ,NODRAW; NNL:=BARSLAST(L=LLV(L,7)) ,NODRAW; NN:=IF(REF(G,NNH)>REF(D,NNH) AND NNH<=4,NNH,IF(REF(G,NNL)<REF(D,NNL) AND NNL<=4,NNL,5)) ,NODRAW; N:=IF(ISLASTBAR AND NN>0,NN,5) ,NODRAW; HH:=REF(H,N)=HHV(H,6); LL:=REF(L,N)=LLV(L,6); FG01:BACKSET(HH,N+1)>BACKSET(HH,N),NODRAW;//只設(shè)置前面第6個 FD01:BACKSET(LL,N+1)>BACKSET(LL,N) ,NODRAW; FG02:=FG01=FD01 AND G>D,NODRAW; FD02:FG01=FD01 AND G<D,NODRAW; TTTT:BARSLAST(FD01),NODRAW; FG0:=FG01 AND IF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,7))>=5,5,BARSLAST(FD01)))) AND FD02=0 ,NODRAW; FD0:=FD01 AND IF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,7))>=5,5,BARSLAST(FG01)))) AND FG02=0 ,NODRAW; GT:BARSLAST(FG0),NODRAW; DT:BARSLAST(FD0),NODRAW; |
|