中线买点-选股
- U3 _4 A5 O) l* S; kA1:=C-REF(C,1);7 X# y. z! C9 d4 e" J3 G
A2:=100*EMA(EMA(A1,6),6)/EMA(EMA(ABS(A1),6),6);& ~/ R* V1 b1 E/ F9 e
SHORT:=7; LONG:=19;
5 _) J( Y. F5 u" @2 H- ]RMA:=EMA(CLOSE,SHORT);* `: c7 {8 f% S& M; o2 t' m
NMA:=EMA(CLOSE,LONG);
- J$ f; x- n5 B V3 O1 J2 m$ @# v涨势线:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),! x: n, k5 m& [* g' [. T* [2 ?
H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0),LINETHICK1,COLORFF00FF;
) t q$ Y6 I( c& A跌势线:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),
& x! M% F$ Q1 mL=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0),LINETHICK1,COLORBLUE;
0 f; I' {( ~/ |% d1 O趋势区:=IF((EVERY(跌势线>=REF(跌势线,1),1)),4,2)COLOR0000FF,LINETHICK3;# J; s+ N: D9 }$ w# y' b
低买CROSS(趋势区,2.1)); |