公式如下:
* @" I# V- ]: D0 z: l* D0 ^ `: X6 N! s7 j8 E, q' G5 C
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);5 @9 m( d' y/ R7 E9 ^$ W
DRAWTEXTREL(12,5,''量能饱和度:''+NUMTOSTRN(SAT,0)),LINETHICK3,Color8000FF;* M& u1 T# z9 k: i
AA10:MA(CLOSE,8),color0000FF;
& V( P# e# _; oAA12:MA(CLOSE,12),color0000FF;
. P; t1 M+ K6 _9 }BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
3 S$ X3 E" C" F( SBB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);
7 I/ k, ?# k: S: x2 i) GMA13:=MA(CLOSE,13);! Y' [* A C9 h( L) ~" [& V" e
FILLRGN(AA10,AA12,(((AA12 = 1)) AND (BB10 >= 1))),Color0098FF;
* L6 Y% p/ W) s+ jFILLRGN(AA10,AA12,(((AA12 >= AA10) AND (BB10 ref(ema(x1,8),1),10),. _. G: t0 l% a& F$ a' U! v
ema8,''∠45上升''),colorwhite;, N( H: N* I9 l* _
压力:MA(REF(HHV(C,30),1),2),Color9DFFFF;4 B) b0 V! I1 u2 ]+ n! o7 r
支持:MA(REF(LLV(C,30),1),2),ColorABFF46; , z( f/ c5 Z+ C) j0 w& O& e1 a, Q- `
AA1:=AMOUNT/V;. W" j$ b, f5 S6 b
BB1:=L1.2;: B' y* k6 n8 j3 B. d% C
DD1:=L=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb00;8 A' u% H8 [$ G; I( j1 u& z6 w
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;
+ c3 U5 N) M3 x& C$ I# [" W2 TSTICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;
9 b& G8 w# W" ASTICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;8 _1 ~0 V0 h# d3 ~4 M/ F) ]- \/ Q
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;7 J) x. t( u) _3 v; [* @
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;
4 D, M0 ^6 n' l9 F( C3 BSTICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;
) w- o6 q# |* ISTICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;
+ z) g7 _/ h7 [! p- ?) YSTICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;* w/ U/ X8 d6 @3 |0 e7 X+ N/ |
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb; ^4 ?: W) u* c* ~
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;
5 Z3 X9 s3 T1 t* R# K7 _7 xSTICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff; W8 U. {2 B4 C- r0 w5 r
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);0 u6 g- i$ F) p1 N
stickline(var9Q,c,(o+c)/2,7,0),color000055;8 n: [) P. ?8 p0 W
stickline(var9Q,c,(o+c)/2,6,0),color000066;5 z" a9 C1 v* j5 X" b6 j# l+ A
stickline(var9Q,c,(o+c)/2,5,0),color000077;$ p1 h# h) r r/ @) z. ^
stickline(var9Q,c,(o+c)/2,4,0),color000099;
) \5 ]7 k4 t; _4 _ stickline(var9Q,c,(o+c)/2,3,0),color0000bb; o5 \8 Q- q1 j3 _
stickline(var9Q,c,(o+c)/2,2,0),color0000dd;% s r9 u2 p. g9 v
stickline(var9Q,c,(o+c)/2,1,0),color0000ff;
. H4 L" \% p; Q' cvaraQ:=c=hhv(c,4) and ref(c,1)=llv(c,4);9 m4 c0 V! C# g% Q6 y
stickline(varaQ,c,(o+c)/2,7,0),colorff11ff;1 S0 z( ` j) U
stickline(varaQ,c,(o+c)/2,6,0),colorff33ff;* Q) {* o+ h% x# j* L. e! l, l+ V1 j
stickline(varaQ,c,(o+c)/2,5,0),colorff55ff;
' G! F- v( @$ V4 C$ h+ t' Z stickline(varaQ,c,(o+c)/2,4,0),colorff77ff;
* A" U4 P* |6 |" I1 V# |- F stickline(varaQ,c,(o+c)/2,3,0),colorff99ff;3 V2 [' F# ^ [% v X( a
stickline(varaQ,c,(o+c)/2,2,0),colorffbbff;
6 V3 |# E8 l) m- V stickline(varaQ,c,(o+c)/2,1,0),colorffddff;' D+ x- H2 L, I3 z0 W0 z
varbQ:=c=llv(c,4) and (ref(c,1) |