公式如下:
: T; u/ {5 J4 U( Q$ Q
7 v8 ?$ J4 M" N3 m. [. g* p/ B0 ]' eSAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
+ _1 p- L+ e: R+ ZDRAWTEXTREL(12,5,''量能饱和度:''+NUMTOSTRN(SAT,0)),LINETHICK3,Color8000FF;
% s9 U7 x0 V& e$ pAA10:MA(CLOSE,8),color0000FF;, B8 m5 y4 I5 F" N, i
AA12:MA(CLOSE,12),color0000FF;( q8 Q8 D( X; a# f5 I; `& o! G
BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);7 k8 Q* C+ d/ K, X8 [
BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);
. K7 r. W0 T3 L B0 wMA13:=MA(CLOSE,13);
$ y6 b7 X& j* m& ^FILLRGN(AA10,AA12,(((AA12 = 1)) AND (BB10 >= 1))),Color0098FF;
" w1 C! g$ P( |0 J8 ?( O6 u: cFILLRGN(AA10,AA12,(((AA12 >= AA10) AND (BB10 ref(ema(x1,8),1),10),
& S3 R3 l# V% N* s) d5 G0 Xema8,''∠45上升''),colorwhite;
# p: q+ _% m$ H/ ]# Z压力:MA(REF(HHV(C,30),1),2),Color9DFFFF;" T0 ~4 H# R" f
支持:MA(REF(LLV(C,30),1),2),ColorABFF46;
$ N4 ~5 L' T3 Y9 [( }- H9 \AA1:=AMOUNT/V;
+ z1 c* @ G2 ~& ^BB1:=L1.2;* x" n* k. p7 ]- l* ]+ o1 B, m) j
DD1:=L=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb00;
- Y4 S' F- t5 i# z3 R9 E+ GSTICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;
. k% |2 w V9 ?STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;
+ Z' ?* G# n7 K' sSTICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;$ j7 ]1 T) U* a/ P2 i5 I% g
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;
h& `5 ^8 R, B$ Y! o" pSTICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;: _ F5 Q t: D
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;% e2 \6 @% \! W6 b* @& u+ ~3 D
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;2 H6 r! H" A* ~# D; @
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;
8 b% U( N5 q5 S- ?( bSTICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;
8 ^* ^0 M4 k0 j9 j5 ZSTICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;
3 u7 Z% ~" X2 i' X1 @0 X# eSTICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;
! L3 t8 Q8 k8 Q( cvar9Q:=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);
! f& [* Z# A/ e7 V9 L& R6 t stickline(var9Q,c,(o+c)/2,7,0),color000055;
4 Q% y7 [ U- U, V9 J* s+ T( h/ u stickline(var9Q,c,(o+c)/2,6,0),color000066;, c% B: E R% F; O6 s. P
stickline(var9Q,c,(o+c)/2,5,0),color000077;% `! V: \0 F' [, ~$ Z( W3 b# {
stickline(var9Q,c,(o+c)/2,4,0),color000099;
7 \/ l$ I8 J0 \2 e% `1 R stickline(var9Q,c,(o+c)/2,3,0),color0000bb;2 y- V3 _4 P6 G. W4 N) ]3 n) w) A
stickline(var9Q,c,(o+c)/2,2,0),color0000dd;
/ @3 D4 k$ s0 j stickline(var9Q,c,(o+c)/2,1,0),color0000ff;
$ u- E& B. H5 \1 t5 PvaraQ:=c=hhv(c,4) and ref(c,1)=llv(c,4);
" V8 Y: z9 L. b* Q7 E" q8 B" j/ k2 k stickline(varaQ,c,(o+c)/2,7,0),colorff11ff;; `3 g3 I; `$ x. C) C+ E# n
stickline(varaQ,c,(o+c)/2,6,0),colorff33ff;$ b2 B' z. o" D: a) S/ {
stickline(varaQ,c,(o+c)/2,5,0),colorff55ff;
7 d) k; c0 Q0 e" ?% A# J stickline(varaQ,c,(o+c)/2,4,0),colorff77ff;! q5 B. u: x+ k/ N: r8 y
stickline(varaQ,c,(o+c)/2,3,0),colorff99ff;! x" B3 u2 p9 y1 u& v: \
stickline(varaQ,c,(o+c)/2,2,0),colorffbbff;+ G( n4 m: v1 a9 k
stickline(varaQ,c,(o+c)/2,1,0),colorffddff;
/ h# J% `; E; bvarbQ:=c=llv(c,4) and (ref(c,1) |