mms:=ma(sma((l+h+2*c)/4-ref((l+h+2*c)/4,1),5,1)/sma(abs((l+h+2*c)/4-ref((l+h+2*c)/4,1)),5,1)*100,1)+50;
& P9 v$ W; U' v1 O: \g1:=if(-mms>95,0,20);
4 L8 L2 b$ \2 p4 x7 wuoo:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 and g1)+1);- \. x$ l8 d/ e% r& b1 h2 d
5 w) A8 ?* J9 [) m: U{嫡均线:=ref(c,2)*2-ref(c,5),LINETHICK0,color550055 ;1 s. ^ O! K# l) O6 b) u& ~
后日均线:=ref(c,1)*2-ref(c,4),LINETHICK0,color008800;, u5 e9 n6 y" U" j
大后天均线:=c*2-ref(c,3),LINETHICK0,color008888;}# l( {% J* i/ m; O* X, b+ O/ N6 `7 o
KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));
3 z* c: V5 y5 y* @5 JKS1:=if(BARSCOUNT(c)=1,c/10000,(1-C/SMA(C,13,1))*100);
: y# B% j9 [: d9 W趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);6 d/ b: m( {7 e! G. S; A1 C
AA:= - 100 * (趋势线 - CLOSE) / 趋势线;
4 k& U/ x) m: Q I/ d6 XAC:=(EMA(AA,5) ); 9 b; J, @ j' G$ O r9 l
SSL:=EMA(CLOSE,3);$ k, ^% H+ O: `6 w9 a
MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
+ v/ i! e8 {- V$ g7 y& F0 rMM:=MMV;
5 v) ^" m a7 ?5 ZSTICKLINE(((SSL > MM) ),SSL,MM,0.1,0),colorred;
. ?6 ^' c5 ^, k' s" b0 |SA:=(MM * 0.985);
0 V3 `/ Y6 R p, q- _SS:=(MA(CLOSE,5));
X. N; |6 q& V1 G. l. GDD:=(MA(CLOSE,13));
9 ]! s+ [" O9 x/ \" {& IGG:=(MA(CLOSE,21));
6 d1 f0 Y w+ Q: h% \/ {捞钱手:IF(((SSL > MM)),MM,SA),LINETHICK2,colorwhite;8 n# l2 B5 C9 v2 o( @
, b( ?( v9 l" g, d) p- F( JVAR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
2 M3 q" `( I ^VAR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);
4 x% s2 C: }% bVAR4Y:=REF(CLOSE,1);
2 F# C; F, O# q- `- \! q' XVAR5Y:=((SMA(MAX((CLOSE - VAR4Y),0),6,1) / SMA(ABS((CLOSE - VAR4Y)),6,1)) * 100);
4 W+ ?4 [- K( n j/ p! W9 rVAR6Y:=((SMA(MAX((CLOSE - VAR4Y),0),12,1) / SMA(ABS((CLOSE - VAR4Y)),12,1)) * 100);7 ]9 D5 K' S9 J4 S' T3 }; Y3 B# F, ]
VAR7Y:=((SMA(MAX((CLOSE - VAR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);; `# x. q! y) Y$ q$ [
VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);* C. K. t2 f5 n/ @6 y) ~% n2 Y
VAR9Y:=SMA(VAR8Y,3,1);- n0 C/ i, Q5 v
VARAY:=SMA(VAR9Y,3,1);
. e7 z1 D) y$ Q, Z: T& I hVARBY:=((3 * VAR9Y) - (2 * VARAY));# t' p4 n! X k; h
VARCY:=(CROSS(VAR5Y,10) AND (VAR3Y < (0 - (28 * 20))));3 x- |4 P; _4 x4 I+ y
VARDY:=((100 - CROSS(76,VAR5Y)) AND (VAR3Y > (5 * 20)));
; h" n. c( V, K5 Z8 FDRAWICON(((CROSS(76,VAR5Y) AND (VAR3Y > 5)) ),(HIGH * 1.01),5),colorFFFFFF;" v# ?* J9 d7 r$ C
VAREY:=((((CROSS(VAR9Y,VARAY) AND (VARAY < 10)) AND (VAR3Y < (0 - 30))) AND (VAR2Y > 3)) * 30);
+ \7 G( O$ J3 gVARFY:= - ((((VARAY < 11) AND (VAR5Y < 15)) AND (VAR3Y < (0 - 26))) * 10);
' D' C; n t: ?5 j$ r& MDRAWICON((CROSS(VARFY,(0 - 9))),(LOW * 0.998),4);
! `$ J+ o6 \: C8 x! I) C能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));6 I, p+ [/ Y2 w
上开:=o;2 [0 r# [9 T g1 |
上收:=c;( W: G1 e. W( D ]; b
上高:=h;/ m! b+ g0 ~# |( I+ U+ S( z/ m% ^
上低:=l;
! h$ H) X: J' ]JJ:=(上开+上高+上低)/3;6 l% \9 W( s O4 i8 ?& }
A:=EMA(JJ,4);( u# _( W& d( j+ l% ]
B:REF(A,1),POINTDOT,COLORYELLOW;
3 p2 ^' \% D" k' h( m智能黄金线:A,COLORYELLOW,LINETHICK1;
4 }' m) F s, n* ^; xSTICKLINE(((SSL < MM) ),捞钱手,智能黄金线,0.1,0),COLOrffbbff;; o2 G0 T) d" [# A/ @2 A7 e
if(捞钱手=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.98,''★买入''),COLOR00FF00;
& V% y3 w! ]: m0 u0 ?选手A:=MA(上收,3);. X4 r- O; f y: r/ Y9 y, |
箱顶A:=MA(REF(HHV(上收,6),1),3);) _) o! [9 f0 u( n' Q; j7 i
箱底A:=MA(REF(LLV(上收,3),1),3);! ^5 _5 y$ L7 j# t6 @
t1:=MA(上收,20)>=REF(MA(上收,20),1);
/ s$ y. o" Z/ ~# i) wt2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND t1;& R" [ P4 Q0 Q$ u9 m7 v
t3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;
# D& b+ E9 Y3 h; Z% D4 O* k. f选手:=MA(上收,2);) t ~5 L1 G, y6 I
箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;
4 e$ ~( |8 H8 E箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;. E! i# J! U, a7 N) b2 e
t4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;
0 R, j9 Y6 s+ @6 N, et5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;7 H" A/ V2 `; k ^6 {
Var1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;$ J- f" i4 N$ w5 t% z: E* ~+ E' f8 ?
Var2:=SMA(Var1,3,1);
* t' ^+ T2 k( c" `. @6 p3 Q+ ~Var3:=SMA(Var2,3,1);! A2 t) V3 N. t# u/ K- |# b. D
Var4:=SMA(Var3,3,1);
1 |$ }5 ~9 l: o2 z2 d& ?0 Q" E8 [ s
DRAWTEXT(CROSS(Var3,Var4)AND(C>=O)AND Var30,箱底,''★''),COLORf00ff0;
- [8 S1 A. e8 u. ?8 g! i3 E3 PDRAWTEXT(CROSS(Var4,Var3) AND Var4>75 ,箱顶*1.03,''★减磅''),COLORf0f000;
- @& T- z: R! V' t# [( t+ e: m
. A1 J* S; ]5 {& C{K线}( h4 l9 {' b1 A6 @0 G
STICKLINE(C>=O,C,O,7,0),COLORRED;6 a5 l: O& L4 g6 b G8 n
STICKLINE(C>=O,C,O,4,0),COLORB0B0FF;+ R4 Q* y0 z6 Z
STICKLINE(C>=O,C,O,2,0),COLORYELLOW;
, _/ c5 a9 A% P2 A( C# t: a% [' ?STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
/ B" Q9 V0 Z, Q1 Y9 C- u* @STICKLINE(C99.9,H,L,0.5,0),COLOR3366FF;
' q* G% G7 W2 A& r, H
6 p$ C& o9 s" {9 o0 ]! }8 G{K线超卖提示}- ^6 g" [) c- r- k$ b& ?
SQ1:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;9 r& T( n' U% Q. o9 ]0 v6 K' A
SQ2:=SMA(MAX(C-REF(C,1),0),7,1)/SMA(ABS(C-REF(C,1)),7,1)*100;
$ p5 {) b3 H" A* A3 B& ?CM1:=IF(SQ1 1.03));+ n5 M8 A) X8 I
, P. _7 k+ @ U: T
{超卖一}STICKLINE(CM1 and IF(Kx and w and Zy1,-16,10)REF(CLOSE,2);- H, ^) e# K) h7 P) ?. o% s
VarD:=CLOSEREF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORred;, d1 N% q) U8 N( z% M( Q' E; S3 h
STICKLINE(pk3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORred;
9 t4 R3 {- F+ WSTICKLINE(Var19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORred;3 K o9 x% n8 x
STICKLINE(Var19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORred;
L( ?$ M3 H+ \( i: [2 V9 N; \# ?" i! v' T
买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;: Z( c, H8 [# ]; w; u$ V
买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);
+ F: K _/ ^; Z* b/ xSTICKLINE(买进条件 AND 捞钱手>智能黄金线 AND 智能黄金线>REF(智能黄金线,1),L,L*0.998,7,0),COLORWHITE;' E& B; K8 H. f( Z9 J
0 j, E. }$ |9 G
买线:=EMA(C,2); # l+ z) h. Y8 n; O
卖线:=EMA(SLOPE(C,21)*20+C,42); & u/ K z |0 l' \
DRAWTEXT(cross(买线,卖线)AND 箱顶>=REF(箱顶,1),箱底,''★''),color00ffff;
9 I, _" C5 |# M' ~% M9 E' w# i/ i% Cstickline(cross(买线,卖线),open,close,3,0),color00ffff;
. }* r* p4 ?; S& m* t3 _+ Jstickline(cross(买线,卖线),h,l,0.5,0),color0 |