公式如下:0 V* |) x8 Z" i: v+ l) R
. y5 I, ^' F* M1 B) B j3 {% zSAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
; @' {4 f3 G0 B* H' } W2 rDRAWTEXTREL(12,5,''量能饱和度:''+NUMTOSTRN(SAT,0)),LINETHICK3,Color8000FF;
9 ^/ Y, Q$ z. ?4 l$ o2 H: U$ \AA10:MA(CLOSE,8),color0000FF;
0 Z) W* ~3 N. W# E" b5 X0 E# |; KAA12:MA(CLOSE,12),color0000FF;
0 v6 e: T$ F4 iBB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
% \4 k8 Z# J% EBB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);
2 j$ \, L; y* @* v* jMA13:=MA(CLOSE,13);/ ]/ C5 g5 @- y% q
FILLRGN(AA10,AA12,(((AA12 = 1)) AND (BB10 >= 1))),Color0098FF;( x: k. {8 E) l
FILLRGN(AA10,AA12,(((AA12 >= AA10) AND (BB10 ref(ema(x1,8),1),10),$ @1 p* y# t9 G1 y
ema8,''∠45上升''),colorwhite;# c0 u2 _" w) O( A: l! s
压力:MA(REF(HHV(C,30),1),2),Color9DFFFF;" o0 f6 n4 F) Y' F6 ?$ G6 U
支持:MA(REF(LLV(C,30),1),2),ColorABFF46; 7 \3 s. Y0 j$ z+ t9 U2 g; c
AA1:=AMOUNT/V;) x4 |4 U4 S( O% G5 Y' W' Y( c
BB1:=L1.2;
1 R/ D# ?0 f9 K4 d2 _& lDD1:=L=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb00;) s# p4 r. B" C( j/ n
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;
% G9 E1 q! L* {* c/ }STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;2 ^7 d) @& }% J) W( O
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;( |! r/ ~( s8 ^, R! s
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;
; G/ T$ k; p4 I" H8 X& i$ _STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;7 H4 N8 \2 Y- T# }# n X9 w
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;1 U, Q! X6 l3 s8 i9 x
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;
j. D" n1 g! D7 }9 K6 vSTICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;
$ H; K; u9 y/ \8 }STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;6 c# U7 {" m; ?( R1 C1 d" b
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;
9 I* w, B9 ^5 ?* M& u8 U% N1 KSTICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;& {: r/ Z& g1 Y6 q; a( S; A
var9Q:=c= hhv(c,4)and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3)) or ref(c,1)=hhv(c,4) and close>=ref(c,2) or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1) or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2);
+ t! p! W9 ?7 q' j stickline(var9Q,c,(o+c)/2,7,0),color000055;; {* T: B7 p7 h- p6 K5 L5 M% _+ B
stickline(var9Q,c,(o+c)/2,6,0),color000066;
# ^7 K1 {5 f1 {2 U9 m; |9 Q4 M5 z. ^+ [, c! ] stickline(var9Q,c,(o+c)/2,5,0),color000077;( t9 P! W" E5 H, g! `0 Q
stickline(var9Q,c,(o+c)/2,4,0),color000099;) w4 a1 t: S u3 C+ Q' O5 F' Q2 p/ W
stickline(var9Q,c,(o+c)/2,3,0),color0000bb;. L+ U0 G d+ U. Q! R/ W
stickline(var9Q,c,(o+c)/2,2,0),color0000dd;
3 C' i9 l) `$ N$ k stickline(var9Q,c,(o+c)/2,1,0),color0000ff;& M2 [7 L+ I0 H7 {4 A0 F
varaQ:=c=hhv(c,4) and ref(c,1)=llv(c,4);4 G/ c6 S2 @! I: w. V
stickline(varaQ,c,(o+c)/2,7,0),colorff11ff;
1 r" t1 N) H. B stickline(varaQ,c,(o+c)/2,6,0),colorff33ff;9 m! d2 _7 J+ w, d" m: J
stickline(varaQ,c,(o+c)/2,5,0),colorff55ff;5 D3 X( }; I9 j) z
stickline(varaQ,c,(o+c)/2,4,0),colorff77ff;
; r( W" x" M" I* h3 g# y5 l! Q: p: N stickline(varaQ,c,(o+c)/2,3,0),colorff99ff;
3 Q$ L9 X+ R: k8 T. E stickline(varaQ,c,(o+c)/2,2,0),colorffbbff;
9 c7 ^! S l) a8 ]1 I6 C( R. A' A2 r9 g stickline(varaQ,c,(o+c)/2,1,0),colorffddff;
! n5 K4 |3 u+ i2 CvarbQ:=c=llv(c,4) and (ref(c,1) |