指标先容:
- @4 V% k* ~; S! I* _! n
& [! {; O" x% N1 ~( w' p低位白线金红线时买入,高位白线死叉红线时卖出。连续黄柱时长盯。
) y; f. c e& z# }/ o
9 X4 n2 u% E- p1 A8 \$ N0 n4 O$ C, J" ~0 i
公式源码:
% J: i9 g+ z" F2 t+ _) {0 \$ Z0 q& }3 G& Z }, f' {$ c
AAA:=MA(CLOSE,3);3 z S' ]6 j3 Y S+ f; e T
BBB:=(ATAN((AAA/REF(AAA,1)-1)*100)*45)>45;
/ C0 E, P* L: d2 {/ v+ i: pCCC:=CROSS(MA(C,1),MA(C,21)) AND C>REF(H,1)AND BBB;
) D3 W s, A8 J0 w: ` {6 ?2 LSTICKLINE(CCC,O,C,50,0 ),colorbrown;
; {1 k' A D% _ f; tSTICKLINE(CCC,O,C,45 ,0 ),color2222bb;% r+ z* C1 j0 a* J c9 O
STICKLINE(CCC,O,C,37 ,0 ),color3333cc;
. @6 r& p4 d1 U p9 vSTICKLINE(CCC,O,C,29 ,0 ),color5555dd; S3 O1 l3 H7 \* Z& l- \, B
STICKLINE(CCC,O,C,21 ,0 ),colorred;
% G0 U% f5 }( z! A8 n/ `9 BSTICKLINE(CCC,O,C,13 ,0 ),color888eee;0 U. T8 B. }7 A v
STICKLINE(CCC,O,C,5 ,0 ),color999fff;+ u3 X- `" }4 G" ]+ \) F$ \
MA5:=MA(C,5);$ }: }; v8 [9 V( S' g. p: @2 @8 ^
角度:=(ATAN((MA5/REF(MA5,1)-1)*100)*45)>=45;6 l5 I7 D! h7 r6 n
DRAWTEXT(FILTER(角度,21),L*0.96,'∠45°上升'),colorwhite;
* }: o: X$ |0 q/ S9 fMA10:=MA(C,10);
/ v) ~: Z( ?/ A: ?: t. u p4 VMA30:=MA(C,30);5 [0 t4 p5 Q0 y& u
FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);/ F: O: r& S+ N. o
FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);) h- _0 t* ~6 ^) a2 r
DRAWTEXT(FB,L-0.58,'★直到涨'),colorred;
5 A' [) R& r; j+ T/ z# PV1:=EMA(CLOSE,5);/ }7 w" t* L' s
V2:=EMA(EMA(CLOSE,90)*1.01,10);
% L5 w; v! L( D8 E8 tDRAWTEXT(FILTER(CROSS(V1,V2),21),(HIGH)*(1.06),'长盯'),colorbrown;
& j" |: h9 R) @- Y4 N' R! TVAR1:=LLV(LOW,21);
6 Z9 U$ z4 s+ v) S# z# rVAR2:=HHV(HIGH,21);
% a/ k) E9 J$ m5 s, |. d1 gAK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
" A( I$ r4 m. g1 e: }' vAK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
9 J8 K) ]# J7 \AB:=CROSS(AK1,AK);
! a- D/ e/ B0 @+ e$ n0 c' pDRAWTEXT((AB = 1),(LOW * 0.99),'○短介'),color32dded;2 Q# K% U1 z" O' U" `7 I
AA1:=L BB1:=(C-REF(C,1))/REF(C,1)*100>1.2;
2 N5 o/ W2 v& S' `" {( P1 ]8 hCC1:=L DD1:=V 老鼠仓:= AA1 AND BB1 AND CC1 AND DD1;& S) i4 Z% P$ t
DRAWTEXT(FILTER(老鼠仓,21),L*0.99,' 低吸'),COLORE6E8FA;
3 ?. }# c5 _0 n `4 J( aVAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
@! G9 o3 L' S3 x0 h$ X0 PVAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)0),91,0);
2 j3 `; }- N0 }DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★介必升 '),COLOR00FFFF;
( a7 C+ Y/ ~2 x/ @+ tDRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★莫观望'),COLOR00FFFF;2 y" \: h) x, C6 X- w; m+ K( H
A1AA:=9;
: Q$ i# W# X, y: Z( J! bA2AA:=(REF(CLOSE,A1AA+1) DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'手勿8 X1 } M {- A- m7 g1 [
# Y' @, \4 N1 _2 O, P) i) ]痒'),COLORE6E8FA;# P( _& ^' E {" k% s; T
VAR6:=REF(C,1);
) g* x% ]4 M" z' N- HVAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;$ [. [3 `! r G: M3 f
DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼高抛'),colorgreen;
0 `# a& ?* x: h2 D# W/ _引导线:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA
* a2 a5 [3 W) f" A$ H" H+ v( u- n( w# f" Q5 e) D
(CLOSE,24))/4,2),linethick1,ColorFFffFF;, @+ I) Y4 O8 k5 T
界:MA(CLOSE,27),linethick1,Color00FFFF;
2 X3 F0 g8 V6 [! T3 i+ t主线MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,LINETHICK2,COLORFF00FF;0 O, z( {# d5 V+ p5 r
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORFFFFFF;, M% |4 ~) {8 Y' q
STICKLINE(引导线>主线,BBI,主线,1,0),LINETHICK3 ,coloryellow;$ j! c% T' c8 L: k2 N. z
{DRAWGBK(引导线>主线 ,STRIP(RGB(255,255,255),RGB(0,150,130),1));}
2 u2 ?- @* [: @" O; Y, h, NIF(CLOSE>OPEN) J# R/ a' D: w* A0 @/ Z
RETURN "阳";6 f8 M- {3 z- c& N3 A$ c* z9 ^; ]
ELSE IF(CLOSE RETURN "阴";
. `4 M; R$ s |% d% Z: f/ U4 zELSE IF(CLOSE==OPEN AND OPEN>=CLOSE[1])
* H* j S- F5 |/ GRETURN "阳";
2 M' ]8 I% g4 l$ e9 W0 c* m0 A# \ELSE IF(CLOSE==OPEN AND OPEN |