TA的每日心情 | 开心 2019-5-15 08:50 |
---|
签到天数: 134 天 [LV.7]签到七级
四段
- 积分
- 9950
|
王者之卖在每一天要求写的地量公式:
% q1 {0 ]' A! _6 P0 G6 M8 @4 v& V
8 H7 K; K. q- w0 C1 _& e& }" i公式代码:
) u, x4 L( p# B/ h( ^TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
$ C5 P0 W% s. v4 H: Z0 Z' NMTIME:=MOD(FROMOPEN,TOTAL);
6 e' ~/ W: d. \8 e1 Z1 b# [8 [CTIME:=IF(MTIME<0.5,TOTAL,MTIME);+ D0 l$ r7 {$ B u6 k
VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),DRAWNULL),NODRAW;( h5 [- D: O5 \, W8 [
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;$ ?1 t' Z3 i0 V9 p# `- K7 B
VOLUME:VOL,VOLSTICK;& H& G5 }, d8 O. u( G" e
MAVOL1:MA(VOLUME,M1);
9 y& ?6 L$ U$ `MAVOL2:MA(VOLUME,M2);5 x, L- H" S" i2 d* E- b" L2 B- _% W
7 d* O( D. n- d5 X% j- ^# sMAXVOL:= REF(HHV(V, N), 1);7 y. y# v' A" w6 y* `
地量1:= VOL<= MAXVOL*0.15;4 U9 e6 y1 x9 s/ Y0 N
地量2:= VOL<= MAXVOL*0.2 AND VOL> MAXVOL*0.15;! U% `0 O1 A8 u7 t" b5 q
0 I' y% R; T! l$ tSTICKLINE(地量1,VOL,0,3,0),COLORGREEN;
8 X' Z$ D' Q3 BSTICKLINE(地量2,VOL,0,3,0),COLORYELLOW;
6 E( r1 v: t9 G2 @# m9 d/ o5 D
& n/ Q3 [1 }5 J A/ X# q
" L) T# F% G! T# T: s" r/ X1 u0 t参数:
2 Q; k) i- ?0 v4 s2 L/ W8 FM1、M2:成交量均线天数
" ~7 u) u0 a: v9 b2 S6 Y: P9 VN: N日内Z~大成交量
8 S" u2 G: n' J% v, y' _( n& ]1 c
8 d5 H+ l/ w& t+ @6 Q! j
+ G/ k# ? ?8 O* Y6 S/ O; P
- H. l: h% a0 l$ c# G- r2 j4 R" ?' V
1 z7 `4 C& t1 I1 ]7 B a/ U i
|
|