指标先容:
) G+ Z( W! F! r# b- R" g% ^! s/ j7 K O8 j8 E* r! u" v% @
主图彩色布林线 一览无余 恰当追主升浪 有爱好的不妨试试
, C* z( [- a. {4 X {; S7 | Q! g) _ `- Q5 E6 ~& ~+ G Z
公式源码:
9 o ~2 K) x6 ~& \0 h$ a3 e1 O5 W0 b% R, Y: `( e
二分位H+L)/2 ,LINETHICK3,coloryellow,POINTDOT;; g" R! i4 C. O7 @- ` O
MID1 : MA(CLOSE,18),POINTDOT,LINETHICK3,colorwhite;
& \/ G, R2 |/ B& q" rUPPER1: MID1 + 2*STD(CLOSE,14),linethick2,coloryellow;8 H2 u. {. e! H0 O/ ~3 c0 n8 B
LOWER1: MID1 - 2*STD(CLOSE,14),linethick2,coloryellow;
7 `, Y+ v. [6 B' g7 ^# a7 rVAR1:=UPPER1;
n O* n* R8 E) BFF:=VAR1>REF(VAR1,1);: V, \7 a- a* [' V* y
PARTLINE(VAR1,FF,RGB(255,0,0),1,RGB(0,255,0)),LINETHICK4;
I B9 m( l3 A5 E+ n- B7 `; |0 X- NVAR2:=LOWER1;1 x6 V" r& z! H, B+ q
FF:=VAR2>REF(VAR2,1); PARTLINE(VAR2,FF,RGB(255,0,0),1,RGB(0,255,0)),LINETHICK4;: @, P9 C' A4 n8 k) O7 n
VAR3:=MA(CLOSE,18);
% `1 M, {5 `) ZFF:=VAR3>REF(VAR3,1)ARTLINE(VAR3,FF,RGB(255,0,0),1,RGB(3,3,255)),LINETHICK4;
! Y8 ~+ K% o! F$ j. g$ ~0 ~VAR4:=MA(CLOSE,4);
6 w2 r8 d* E5 c9 a# ?FF:=VAR4>REF(VAR4,1); PARTLINE(VAR4,FF,RGB(235,1,1),1,RGB(3,3,255)),LINETHICK3;
3 K% e# G% g- r6 S2 n" q8 [RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
5 p( K" a/ r( y: r w2 `/ oK:=SMA(RSV,5,1);
: T' P' f# L' qD:=SMA(K,5,1);, M2 |; y# r/ s! Q9 s9 q; _
J:=3*K-2*D;
6 P& P) n5 d# D2 X5 ~X:=REF(J,1)REF(H,1) AND C>REF(C,1) AND C>REF(O,1) AND L>REF(L,1);
0 ~) B: `: A8 X7 o% D" p& V: CSTICKLINE(X,L ,L,20,0),COLOR008888;8 X' ^6 |, r' M$ u6 a7 P* c; d
STICKLINE(X,L ,H,0,0),COLORFF00FF;9 r9 p- S: N- x
STICKLINE(X,C ,O,5,0),COLORFF00FF;
4 b- \! ]8 J% b2 {- @" B3 eWR:="W&R"(14);
2 ]( N3 I2 V9 w s$ ZDRAWICON(FILTER(CROSS(WR,(0 - 81)),10),L,4);//威廉买点↑ ↓7 s& e( C2 N! r7 w6 z2 ]1 Y
DRAWICON(FILTER(CROSS((0 -19),WR),10),H,5);//威廉卖点2 ], Y$ k' O+ O; x! U! M
DRAWTEXT(FILTER(CROSS(WR,(0 - 81)),21),L,'威廉买'),ALIGN0,colorred;//威廉买点. H |/ T0 o; J, u! M
DRAWTEXT(FILTER(CROSS(0 -19,WR),21),H,'威廉卖'),ALIGN2,colorgreen;//威廉卖点' Z3 q( a* z" H. z, q5 [" ]
aa:=CLOSE > REF(CLOSE, 1) AND REF(CLOSE, 1) > REF(CLOSE, 2) AND REF(CLOSE, 1) < & f/ X% _4 S3 E; P' s
A3 I. D* c. h: JREF(CLOSE, 3) AND IF(REF(CLOSE, 3) < REF(CLOSE, 4), 1, IF(REF(CLOSE, 4) < REF
/ z. |: _: a: ?( E3 a) ?5 j1 J7 H" D4 t6 k
(CLOSE, 5),REF(CLOSE, 1) < REF(CLOSE, 4) OR( REF(CLOSE, 2) < REF(CLOSE, 4) AND REF0 [% S* n; j- a3 o, u$ r# z
& s* R- t7 H+ M U+ C4 l
(CLOSE, 3) >= REF(CLOSE, 5) ),IF(REF(CLOSE, 5) < REF(CLOSE, 6), 1,REF(CLOSE, 6) < , v k) a5 t5 w' g4 U) L
j8 D4 v8 t. d9 Z# v8 rREF(CLOSE, 7))));( |9 ^8 x3 b4 U: @
bb:=CLOSE < REF(CLOSE, 1) AND REF(CLOSE, 1) < REF(CLOSE, 2) AND REF(CLOSE, 1) > 3 e% I: j) T, F
1 E. j7 | e& [, m2 S1 U" v' H( R3 k% YREF(CLOSE, 3) AND IF(REF(CLOSE, 3) > REF(CLOSE, 4), 1, IF(REF(CLOSE, 4) > REF8 V" V( M5 _6 `# r5 H, L
: o) q2 T( W' x! ~# l(CLOSE, 5),REF(CLOSE, 1) > REF(CLOSE, 4) OR( REF(CLOSE, 2) > REF(CLOSE, 4) AND REF
& y/ |# Z2 i* }: i3 K. _$ ~
0 B6 j; ]5 \( W5 q& |7 J* D \(CLOSE, 3) REF(CLOSE, 6), 1,REF(CLOSE, 6) >
! R9 a! E+ O; @* S9 ^* f7 B i6 [
0 V; z' R+ z% fREF(CLOSE, 7))));6 K$ G6 S$ w3 r
DRAWTEXT(aa AND CLOSE>REF(OPEN,2),LOW,'三平底'),color,COLORFF00FF;
' z6 ~! N* E# ~ Q T; vDRAWTEXT(bb AND CLOSE S下:=HHV(MA(HIGH,2),2),colorgreen,LINETHICK0;
9 a: {; d* J' f/ G$ k. dS上:=LLV(MA(HIGH,2),1),colorred,LINETHICK0;
& Q$ K# m0 C/ F. |1 x+ ?Sppp:=-(S上-S下)/REF(C,1)*100;: E8 C8 O" d0 p% c
Sptem1:=(MIN(O,C)-L)/(H-L)*100;4 S5 @9 |/ Z6 a- B5 ^" V! Z$ N/ g6 A
Sptem2:=(H-MAX(O,C))/(H-L)*100;
# c4 L' g O. p7 G; k1 ASPTEM3:=(C-O)/(H-L)*100;6 _+ I! P0 r; H: j. r8 Y/ ~
SKJ1:=(SPTEM3>49 AND SPTEM1>0.3*SPTEM2) OR SPTEM3>80;0 t7 z6 [% o/ y3 `0 M8 p
SKJ2:=(SPTEM320 AND SPTEM1>SPTEM2);, M/ d9 @2 a* r( h' W: _+ o. }- i( }" A
SKJ3:=(SPTEM3-20 AND sptem1>1.2*sptem2);9 e( t2 N# l Y9 S+ R% Z) |
SKJ4:=(SPTEM3-40 AND SPTEM1>2*SPTEM2);
% b6 X/ B/ K* k$ h& kSKJ:=(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4) AND (Sppp>2 OR REF(Sppp,1)>2 );
5 j1 ^7 d& _0 p8 ~# K- ?短买:=IF(SUM(sppp>0,5)=5 AND SUM(skj>0,5)=0,5*(SKJ1 OR SKJ2 OR SKJ3 OR
: {7 l9 e/ q: s! p8 M, l- r8 L0 b" F8 K7 k8 K4 G
SKJ4),5*skj),colorred;! Z/ F! q, J, A0 I8 M! ^
DRAWTEXT(短买,L,'↖短买'),colorwhite; |