?SHORT:=7; LONG:=19; RMA:=EMA(CLOSE,SHORT); NMA:=EMA(CLOSE,LONG); A5:=IF(FINANCE(3)=4 OR FINANCE(3)=3,1.2,1.1); A6:=C=H AND C>(REF(C,1)*A5-0.01); A7:=C-REF(C,1); A8:=100*EMA(EMA(A7,2),2)/EMA(EMA(ABS(A7),2),2); A9:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST (CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV( H,BARSLAST(CROSS(RMA,NMA))+1),0); UP:=IF(A9=DRAWNULL,0,A9); 莊:REF(NOT(A6),1) AND A6 AND C=HHV(C,100) AND REF(C<O,1) AND A8>=MA(A8,2) AND UP>=0; |
|