A7:=C-REF(C,1);
: G) @6 s, E8 O: YA8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
' \* Y' a( h6 `. ESHORT:=7; LONG:=19;% e! `# A0 W3 N5 D- a# I8 Q- z
RMA:=EMA(CLOSE,SHORT);
& T6 n, R" W2 ]4 LNMA:=EMA(CLOSE,LONG);! ~% e9 |1 V" L/ o: e
UPRAWLINE(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);+ ^9 U1 |+ d1 W& x$ l1 v# h
DOWN:DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);( M9 d2 A' l# O# R5 H7 ?+ e' }
买进LLV(A8,2)=LLV(A8,7) AND COUNT(A8=REF(DOWN,1),1)),4,2)COLOR0000FF,LINETHICK3;
4 w4 P0 w$ V8 ?8 N# h$ K低买:IF(((CROSS(趋势区,2.1))),5,0),STICK,COLORRED,LINETHICK3;1 I4 N/ B# U' B5 H. t
高卖:IF(((CROSS(3.9,趋势区))),-5,0),STICK,COLORFF9150,LINETHICK3; |