上线:=sma(c,6.5,1);5 ?' b4 J; n- J5 X' D. O6 L: r
下线:=sma(c,13.5,1);
! [9 N- Y* V3 [% ^" z上线1:=sma(c,3,1);
# s9 P3 ?+ v' |) T3 z下线1:=sma(c,8,1);% v4 y+ D D1 w: a4 v
STICKLINE(上线>下线 , 上线,下线 ,2.5, 0),colorred,linethick2;
; n5 L7 ~9 P; x: w# v5 {" {; I) hstickline(下线>上线,上线,下线,2.5,0),coloryellow,linethick2;
4 w/ u3 O" G/ w2 Z4 f. RDRAWTEXT( cross(上线,下线),low *0.95,'↑全仓' ),color00ff00;
) j, y! _# }5 d$ o" x! Ddrawtext(cross(下线1,上线1),h*1.02,''),coloryellow;) O: G6 t' y! w" ~+ O0 f
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
; b% O0 E8 [. M# X$ a# N* gUPR:=BBI+3*STD(BBI,13),linethick2;
) a% d Y2 T7 X" v5 K# N! @DWN:=BBI-3*STD(BBI,13);
$ I1 `: P2 _4 j3 u- u2 t安全:=MA(CLOSE,60),linethick2;$ Z) V) T8 w% ]: a; x
LC:=REF(CLOSE,1);
* E$ a) o$ @. \6 B- QRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
* b+ A4 v8 D/ \( G Y0 ?DRAWTEXT( CROSS(82,RSI) , HIGH*1.02,'减仓') ,COLORff9966,linethick2;; w2 c6 K5 e4 v' b! T4 B+ y
A7:=(2*C+H+L)/4;
9 j5 k! u2 C0 ?9 I3 L- M/ ^操纵:MA(a7,5),linethick2;3 a3 f9 T }% s, j* A/ ]
操纵1:=MA(a7,5)*1.03,linethick2;
; x$ D1 R5 S. g" R5 ~/ R9 l操纵2:=MA(a7,5)*0.97,linethick2;: J4 u7 | [& ~
Var1 LV(a7,21);
7 e; W3 t5 r; k% C. H# |0 wVar2:HHV(a7,21);
2 u7 H. n( Z$ p2 _5 q6 I+ {SK:=EMA((A7-Var1)/(Var2-Var1)*100,7);
8 @# w8 B Y- {# T2 ySD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
- B9 A' ] ^6 b- `* MDRAWTEXT(IF(count(close6/10 and vol>=1.5*ma(vol,5) and
3 \+ h6 } w; h' a8 Lcount(sk>=sd,3) and ref(low,1)=LLV(Low,120),1,0),LOW*0.98,'买进') ,COLOR0099ff; " R" _4 J: u* y C0 d! D: j
DRAWTEXT(IF(count(close6/10 and 8 {- K4 a# z1 P; V; n
count(sk>sd,6) and ref(low,5)=LLV(Low,120) and ref(close>=open,4) and
0 U- H$ l" U+ d$ O8 O! o0 X; \ref(close>open,3) and REF(CLOSE>OPEN,2) AND ref(open>close,1) and . {+ f6 [9 ~6 n" s
open>ref(close,1),1,0),LOW*0.98,'买进') ,COLOryellow; 9 Q# M q& w! Z7 w, p. R; h2 F
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
# w3 F! }! ~) o) d$ D) KDRAWTEXT(if(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 V, n k3 |( v8 L6 C5 f# \0 Y6 q: [$ G! T
AND CLOSE |