TA的每日心情 | 开心 2019-5-15 08:50 |
---|
签到天数: 134 天 [LV.7]签到七级
四段
- 积分
- 9950
|
王者之卖在每一天要求写的地量公式:; f- D- \ D7 S, w/ M
; F4 U; J: H- N& E. T j" ~公式代码:
8 h7 R2 @2 z" D$ ^TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
% J' z0 B: x. v: _8 c# x, Q5 QMTIME:=MOD(FROMOPEN,TOTAL);
9 V* [( b4 h( \8 B) j# t3 S+ BCTIME:=IF(MTIME<0.5,TOTAL,MTIME);* C2 E# m1 _6 Q' Q7 d4 g! y/ d
VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),DRAWNULL),NODRAW;; H9 M+ B: N: p
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;
. u- W$ {7 Z' v4 hVOLUME:VOL,VOLSTICK;
. m5 ?0 x1 D5 u6 m( A/ \/ ZMAVOL1:MA(VOLUME,M1);6 m" T. i0 k# D- Q/ L
MAVOL2:MA(VOLUME,M2);8 [$ E9 U6 p, F# Y, x
_' Z: g; m7 o$ S' T
MAXVOL:= REF(HHV(V, N), 1);7 k+ q$ \: y& H9 U0 K+ @
地量1:= VOL<= MAXVOL*0.15;+ v( ~9 X. p7 Q% f, N# ]" c% t/ s+ R
地量2:= VOL<= MAXVOL*0.2 AND VOL> MAXVOL*0.15;
2 O& K# R; W& j1 F1 z1 d2 U& S" u+ O* L6 I
STICKLINE(地量1,VOL,0,3,0),COLORGREEN;
, d% f& M% p# ]# M$ ^/ |4 BSTICKLINE(地量2,VOL,0,3,0),COLORYELLOW;
. @, \$ y& o* o) ]/ t
; O6 t' p( l2 r4 u2 [! x' V' Y& ~( }
. |& w, c4 A+ k: v% j7 w+ |参数:: _5 Z- \$ n" F! q7 Q2 K# X
M1、M2:成交量均线天数% h# u! _4 H) J& f% Z6 z) I7 f
N: N日内Z~大成交量: m: C8 y h9 e& F: {7 d2 T
0 f. O. [3 f/ j, H# o- H7 R' j
* U+ f# j {: A" ]' z
. A: W. V: v; W7 ~) c8 P& T- z
' I" b/ x+ W2 i7 B( T2 f8 x+ q
) r$ C$ L; M' R' Q7 p
|
|