TA的每日心情 | 开心 2024-9-12 13:18 |
---|
签到天数: 901 天 [LV.10]签到十级
六段
- 积分
- 31686
|
推荐
楼主 |
发表于 2019-2-22 16:04:38
|
只看该作者
不好意思,第一次发帖,公式如下:6 K# p% W$ K( b! i0 w
MA20:MA(CLOSE,M1),COLORRED,LINETHICK2;4 R) U" T' v* D4 H' Y) f$ O! m
涨:IF(MA20>REF(MA20,1),MA20,DRAWNULL),COLORRED,LINETHICK2;
5 |0 z# y0 U X( E0 s" m$ l. g" A平:=IF(MA20=REF(MA20,1),MA20,DRAWNULL),COLORWHITE,LINETHICK2;: A( {( a0 ~; Z2 ]8 Y0 ?! @
跌:IF(MA20<REF(MA20,1),MA20,DRAWNULL),COLORGREEN,LINETHICK2;) c/ @: e" Y' n: Z1 k2 V2 k
7 u9 q& d4 q4 m5 V' u1 J: `$ M
DRAWTEXT_FIX(1,0,0,0,'叉叉看阳线买,冲冲看阴线抛,只做上升趋势,加油'),COLORRED;
* X+ D% ^. p+ i7 D2 J+ [AB股总市值:=STRCAT(STRCAT('AB股总市值:',CON2STR(FINANCE(41)/100000000,2)),'亿'); T0 v3 J, _) m6 {% m0 g
DRAWTEXT_FIX(ISLASTBAR,0,0.1,0,AB股总市值),COLORWHITE;; r0 U5 q1 [1 c; x% z% |) K/ {" V
流通股市值:=STRCAT(STRCAT('流通股市值:',CON2STR(FINANCE(40)/100000000,2)),'亿');
) n* m$ ]/ S2 L1 WDRAWTEXT_FIX(ISLASTBAR,0.1,0.1,0,流通股市值),COLORWHITE;' i! B3 Y9 T* N
历史Z~高点跌幅:=STRCAT(STRCAT('历史Z~高点跌幅:',CON2STR((1-CLOSE/HHV(HIGH,150000))*100,1)),'%');
2 O9 q" Y! c( P$ g1 @& @2 Q% ]DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,历史Z~高点跌幅),COLORGREEN;# \8 _/ c3 C* C9 C: `/ j# G2 Q
5 F I2 f) L/ z, W+ f( Z
ST:=NAMELIKE('ST')||NAMELIKE('*ST')||NAMELIKE('SST');! W A8 v( m8 c% y/ S# R, k8 j
C1:=REF(C,1);3 Q0 y1 @, {$ \% P8 Q7 u1 K+ q
) V. `" w% w6 r
ST涨停:=IF(1.05*C1-C<0.005,1,0)&&ST;& m, z7 r1 B/ b: R4 H" C$ I
非ST涨停:=IF(1.1*C1-C<0.005,1,0);( Q+ f- j5 [- F+ W
涨停:=ST涨停||非ST涨停;) a6 x! a$ a9 L8 \8 [
STICKLINE(涨停,O,C,2,0),COLORRED;
& W# D8 V, v" E' ^) ]STICKLINE(涨停,H,L,0,0),COLORRED;
' ], u; A- s% v" V3 m6 T6 ONUMBER1:=COUNT(非ST涨停,BARSSINCE(非ST涨停)+1),NODRAW,COLORRED;* @8 }/ z* O5 l4 t" E7 q
DRAWNUMBER(非ST涨停,H*1.04,NUMBER1),COLORRED;1 L$ |2 b5 ?, m
{上市以来共涨停:NUMBER1,NODRAW,COLORRED;}- Y r9 w. J1 D+ S Y6 m
9 F9 B' Q$ |8 Z% a( @! z' n
上市以来涨停值:=STRCAT(STRCAT('上市以来共涨停:',CON2STR(NUMBER1,0)),'次');
+ ` C. d4 d i" gDRAWTEXT_FIX(ISLASTBAR,0,0.05,0,上市以来涨停值),COLORRED;
" z( f4 N j1 _, r( W
; W) E- o# _( U! E7 u4 {7 r% M' jST跌停:=IF(C-0.95*C1<0.005,1,0)&&ST;
2 B" Z. a1 K7 o2 L6 `非ST跌停:=IF(C-0.9*C1<0.005,1,0);
. D. F5 N, p |/ a跌停:=ST跌停||非ST跌停;' t6 b7 q3 Q9 |: X9 ?+ o
STICKLINE(跌停,O,C,2,0),COLORGREEN;
7 @; }" u' f8 ~, g! g0 p* LSTICKLINE(跌停,H,L,0,1),COLORGREEN;
, A# Z: X2 W+ n) q4 k* _NUMBER2:=COUNT(非ST跌停,BARSSINCE(非ST跌停)+1),NODRAW,COLORGREEN;
3 Z: n6 T! D3 ^" \$ {DRAWNUMBER(非ST跌停,H*1.04,NUMBER2),COLORGREEN;
5 f: ~9 m5 R6 ?7 T9 i{上市以来共跌停:NUMBER2,NODRAW,COLORGREEN;}
; c8 `" S6 U& N! K M! W. F
2 x1 _2 N$ y6 W) a上市以来涨跌值:=STRCAT(STRCAT('上市以来共跌停:',CON2STR(NUMBER2,0)),'次');
4 r; E0 `1 q. M. E# pDRAWTEXT_FIX(ISLASTBAR,0.1,0.05,0,上市以来涨跌值),COLORGREEN;7 x0 D v W) B8 D3 L& S- s0 A
* @) |; E- }7 `: \; Y
ZTB:=(C-REF(C,1))/REF(C,1)>=0.099 && C>=O && H>L;
4 W0 f; w9 N0 C" @DYX:=(REF(C,1)-C)/REF(C,1)>=0.05 && C<O && H>L;. Z3 h/ Q$ {( I2 \) y' R
STICKLINE(ZTB,O,C,3,0), COLORRED; f7 U# o- ^; Q t% R
STICKLINE(DYX,C,O,3,0), COLORLIGREEN;
! o+ [: r; J* b$ @* J- Z, D9 _% p# B9 I
* ^# O& X* h$ p, k$ jD5D:MA(C,5),COLORRED;/ q9 G! f, n- d z0 S3 I- k
D10D:MA(C,10),COLORGREEN;
4 ~, R9 ^+ B: B! V& |- `0 Y2 [! LD20D:MA(C,20),COLORYELLOW;: \/ g1 ] l4 D3 z
D55D:MA(C,55),COLORCYAN;6 `% x) G+ f- b+ K. K% p7 V+ J- |
D89D:MA(C,89),COLORMAGENTA;
9 I; |2 o9 u! \+ w% u$ l, T3 m: PD144D:MA(C,144),COLORRED,LINETHICK2;
& v/ q+ k" U! b2 `4 [) yD233D:MA(C,233),COLORGREEN,LINETHICK2;
) t) M7 E. x$ b- qD377D:MA(C,377),COLORLIGRAY,LINETHICK2;8 o1 h* g+ u3 v+ n) s
D450D:MA(C,450),COLORRED,POINTDOT,LINETHICK4;
! S) l U+ y: ?* |; J) nD610D:MA(C,610),COLORWHITE,POINTDOT,LINETHICK4;7 j2 V9 k7 w0 Q/ e, `8 `0 j8 G
! I: w) L# H" j9 I二十天角度: (ATAN((D20D/REF(D20D,1)-1)*100)*180/3.1415926),NODRAW,COLORWHITE;
- s% c( W/ y, c& i% X BIF(二十天角度>0,D20D,DRAWNULL),LINETHICK4,COLORYELLOW;. |! r0 B( b5 f' S* V
|
|