上线:=sma(c,6.5,1);
# r9 B. x* |4 A: Q' ]9 p; O下线:=sma(c,13.5,1);
6 b1 q8 R+ w$ d8 M( v上线1:=sma(c,3,1);
7 g4 y' a( ^ ?+ d; L4 b下线1:=sma(c,8,1);
" p$ C1 V3 h" ^- @STICKLINE(上线>下线 , 上线,下线 ,2.5, 0),colorred,linethick2;6 o. Y, I$ z# h/ C/ l6 q- h
stickline(下线>上线,上线,下线,2.5,0),coloryellow,linethick2;
. ~9 _# j6 y; r' L; W( q! C( I HDRAWTEXT( cross(上线,下线),low *0.95,'↑全仓' ),color00ff00;
% w8 [/ O' }# vdrawtext(cross(下线1,上线1),h*1.02,''),coloryellow;, X1 O2 s4 M/ p5 ~- a) `$ i
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
8 H$ l" _, o3 D7 g, Z$ hUPR:=BBI+3*STD(BBI,13),linethick2;
, z2 _: ~ h, ~, b5 g5 ^, Z$ \& `DWN:=BBI-3*STD(BBI,13);
6 ~' s6 X3 [9 _: ]2 p$ C) {安全:=MA(CLOSE,60),linethick2;( s' t8 W3 h# K% M/ P: P
LC:=REF(CLOSE,1); + K9 I; F9 Q0 h# t8 O# ]
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; , L/ p2 X/ q+ X ?( U
DRAWTEXT( CROSS(82,RSI) , HIGH*1.02,'减仓') ,COLORff9966,linethick2;
& v" h( W9 ~% _" L% m. r5 A9 iA7:=(2*C+H+L)/4;. k3 T9 I) r$ c3 [& B3 i- R1 x
操纵:MA(a7,5),linethick2;
* ^* y& C8 J, _( H操纵1:=MA(a7,5)*1.03,linethick2;
8 ?) x+ o+ }# i+ D操纵2:=MA(a7,5)*0.97,linethick2;
7 q, d3 Y6 E _, ~; lVar1LV(a7,21);
: j% z' T7 C" D3 @0 \: xVar2:HHV(a7,21);
; K! H" o {7 p( X; USK:=EMA((A7-Var1)/(Var2-Var1)*100,7);
" K, J, _9 Q3 P0 ~6 n! OSD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
) Y" a4 a' b$ R5 _% b1 uDRAWTEXT(IF(count(close6/10 and vol>=1.5*ma(vol,5) and
, Y- b n! t# S- i: W5 f( q" wcount(sk>=sd,3) and ref(low,1)=LLV(Low,120),1,0),LOW*0.98,'买进') ,COLOR0099ff; 2 Q; j4 }6 B" ]! m
DRAWTEXT(IF(count(close6/10 and ! Y [- K. z) f) l
count(sk>sd,6) and ref(low,5)=LLV(Low,120) and ref(close>=open,4) and
/ @9 K3 \. @7 t7 Nref(close>open,3) and REF(CLOSE>OPEN,2) AND ref(open>close,1) and 1 F* N& J; n# A4 h
open>ref(close,1),1,0),LOW*0.98,'买进') ,COLOryellow;
5 n( g! P3 J! x. V. r/ }D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
- S6 @! `+ V2 h5 V: TDRAWTEXT(if(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 ! S1 ~; _ |, {
AND CLOSE |