指标先容: " Q& p0 p' q2 c. l5 I- E
5 b+ s/ p6 Q3 C$ _6 T0 o4 o$ t
低位白线金红线时买入,高位白线死叉红线时卖出。连续黄柱时长盯。 8 H' X3 Y+ W8 I+ U5 v2 w( u
P! o6 Y9 E3 [5 F/ G' ?% v: u8 [! }% E4 N, u: u' y
公式源码:
/ f$ o7 ?$ _& T& W
3 ?- u8 U1 \+ h; i# Y4 xAAA:=MA(CLOSE,3);6 M- t; m& G( O, P
BBB:=(ATAN((AAA/REF(AAA,1)-1)*100)*45)>45;
! w& b! G& @! S* [# Z4 NCCC:=CROSS(MA(C,1),MA(C,21)) AND C>REF(H,1)AND BBB;- b, p7 g* [8 P: N* G
STICKLINE(CCC,O,C,50,0 ),colorbrown;. A1 h# F% P2 r* ^
STICKLINE(CCC,O,C,45 ,0 ),color2222bb;& [' Q- A: n- f/ G
STICKLINE(CCC,O,C,37 ,0 ),color3333cc;" W8 A0 v. W+ i: E2 S/ W; W
STICKLINE(CCC,O,C,29 ,0 ),color5555dd;9 W6 w1 {, `' |* A' T. V
STICKLINE(CCC,O,C,21 ,0 ),colorred;
b! ?. @" O- V, `STICKLINE(CCC,O,C,13 ,0 ),color888eee;
9 }9 c) ~0 c& e3 VSTICKLINE(CCC,O,C,5 ,0 ),color999fff;
, `7 z4 e0 E3 u4 CMA5:=MA(C,5);
6 F5 m( b; X ?% x4 E8 f角度:=(ATAN((MA5/REF(MA5,1)-1)*100)*45)>=45;5 Z; x% \8 f. o C4 Q+ T
DRAWTEXT(FILTER(角度,21),L*0.96,'∠45°上升'),colorwhite;' @4 l6 s; |% x1 ~; E
MA10:=MA(C,10);
* H4 v9 `9 q! R% E- h+ }$ fMA30:=MA(C,30);- H9 H2 a) \& L! w# A+ h
FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);
% i8 ] ]: l: {5 s+ f+ B- ]! vFB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);" i- Y" P, a8 n5 D4 D& F
DRAWTEXT(FB,L-0.58,'★直到涨'),colorred;7 U1 x' v |- L
V1:=EMA(CLOSE,5);
5 Y# X$ P) ?4 ]/ k: EV2:=EMA(EMA(CLOSE,90)*1.01,10);
! r* [0 ~$ ~5 y/ i. dDRAWTEXT(FILTER(CROSS(V1,V2),21),(HIGH)*(1.06),'长盯'),colorbrown;# c. \6 E/ K9 V: K3 `+ M5 ^7 V5 H
VAR1:=LLV(LOW,21);
0 p) ~6 t: h7 ]$ }1 aVAR2:=HHV(HIGH,21);3 l2 U& H, y/ E# g$ L
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
. ?3 ~1 b, V' X4 H0 V8 o4 QAK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);; }. z9 E0 T1 {( {4 k: I) x4 N
AB:=CROSS(AK1,AK);
5 Q" m1 r7 U! h, n) r% ?DRAWTEXT((AB = 1),(LOW * 0.99),'○短介'),color32dded;
* w- u9 D* E" ]# pAA1:=L BB1:=(C-REF(C,1))/REF(C,1)*100>1.2;
% _. B3 o) ?/ WCC1:=L DD1:=V 老鼠仓:= AA1 AND BB1 AND CC1 AND DD1;, N4 a3 y9 l% }2 r& r0 v" ]
DRAWTEXT(FILTER(老鼠仓,21),L*0.99,' 低吸'),COLORE6E8FA;" s' W _7 S. u, m5 p' y: }! p
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0); s5 a% _8 c6 X; w3 ]
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)0),91,0);
. |* h9 b& ^. c; O5 \, LDRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★介必升 '),COLOR00FFFF;
8 W3 G% S7 r/ u* w( p6 y6 t+ q- fDRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★莫观望'),COLOR00FFFF;% j/ G+ X P% Z/ g
A1AA:=9;7 H2 N; _7 ] `. j% N3 N
A2AA:=(REF(CLOSE,A1AA+1) DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'手勿
- a% p4 F5 I! T2 t- M. ^7 O& j( T6 r. w" K+ L' N& a
痒'),COLORE6E8FA;
9 L% N, D; r/ ^ _! [8 \/ jVAR6:=REF(C,1);
: A, E8 H9 j6 z( ^VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;5 X& A* |2 N1 C! T& ]! X& G
DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼高抛'),colorgreen;* f! O3 Q5 f# B8 T# |$ R* }
引导线:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA
4 Z9 o/ f! O S/ A- l7 n: f A+ i2 X& J- }6 n2 E. S
(CLOSE,24))/4,2),linethick1,ColorFFffFF;: K5 G$ F7 o0 j; \+ ^0 ?9 n
界:MA(CLOSE,27),linethick1,Color00FFFF;3 S6 Q) f0 m# t
主线MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,LINETHICK2,COLORFF00FF;9 @6 ^0 h d' R# \
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORFFFFFF;
, a2 {, n+ | VSTICKLINE(引导线>主线,BBI,主线,1,0),LINETHICK3 ,coloryellow;
: a3 d$ w8 M+ O* X+ f{DRAWGBK(引导线>主线 ,STRIP(RGB(255,255,255),RGB(0,150,130),1));}
" J# I7 B8 M2 `7 W2 c+ {! ?IF(CLOSE>OPEN)
4 T5 @) i/ p* m$ v5 _RETURN "阳";
; R* b% F! @9 cELSE IF(CLOSE RETURN "阴";, c6 `( c$ u6 ~; `7 c
ELSE IF(CLOSE==OPEN AND OPEN>=CLOSE[1])6 E" K8 f* n5 ^, Q |/ b' C
RETURN "阳";9 ^& v1 m( u8 f# ^& c/ A
ELSE IF(CLOSE==OPEN AND OPEN |