TA的每日心情 | 开心 2019-5-15 08:50 |
---|
签到天数: 134 天 [LV.7]签到七级
四段
- 积分
- 9950
|
王者之卖在每一天要求写的地量公式:
9 G& t4 j( n5 {9 z& w- K" }! F) R* r
公式代码:) o, f1 y1 m2 v
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
0 G$ }9 J: L) u2 P9 L: i/ M- kMTIME:=MOD(FROMOPEN,TOTAL);
# V/ T* f& Q3 o5 r0 ^: p+ {* hCTIME:=IF(MTIME<0.5,TOTAL,MTIME);/ s+ b; ?/ g7 a
VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),DRAWNULL),NODRAW;
: J- m- I( }. n& s' r& S' }; ^STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;
" @ ?) P; \$ h. X. E) n+ hVOLUME:VOL,VOLSTICK;! J3 t% s4 {, C' k+ M* x
MAVOL1:MA(VOLUME,M1);
( R0 P" s1 L/ b7 t$ W5 U1 e2 [$ t9 F' RMAVOL2:MA(VOLUME,M2);
M% f! j& r% V5 p* K4 ^! c% H0 I6 p6 z5 g: A
MAXVOL:= REF(HHV(V, N), 1);- N1 z$ i2 W# t
地量1:= VOL<= MAXVOL*0.15;
4 y0 `3 s4 P' V地量2:= VOL<= MAXVOL*0.2 AND VOL> MAXVOL*0.15;
5 V4 C3 Y7 B/ r/ M* O7 q$ ~) L% p0 B7 {, h# G& ~( A K4 s3 T' A, G
STICKLINE(地量1,VOL,0,3,0),COLORGREEN;$ t1 q# u3 i: B8 x3 P2 V
STICKLINE(地量2,VOL,0,3,0),COLORYELLOW;; x" q2 f% ^( o
9 R3 G5 g' A& y
a+ s& T4 {6 j8 T. m" S% q参数:/ o( X* h8 R0 h0 h& A6 s
M1、M2:成交量均线天数' \. z* B" O2 b2 p7 a. x' e" ^9 b
N: N日内Z~大成交量
, I6 G/ y6 H% C C! Z$ p
# y; q3 O8 T* K A2 D4 d7 H3 x
* O5 _0 X3 F2 W" k
+ O2 p1 a4 s' }/ `$ @0 P# k3 p- P( H* p8 b* [
# t* H: x1 d0 D: ^' u* g5 v" A9 C
|
|