简化版:笑脸K线(dzh2)
; l4 U+ V; h: z$ O9 ]/ t$ ~! d* b& O# W' C y4 o6 s# v
N:=150;
- W) S- K6 K9 j- gBU:=BARSLAST((CLOSE = HHV(CLOSE,N)));
* j' Z6 C) l5 M' S' C3 cSE:=BARSLAST((CLOSE = LLV(CLOSE,N)));, h4 p% h X: _# k# e- g8 F% Y
KK1:=SE;9 K# d7 x: V1 i5 Y0 t8 K( W4 \
KK2:=BU;1 A9 x% B2 D% N" }
LM1:=SE;) ~7 {) Y: o" K+ E6 d. @" g
LM2:=BU;
% I% S( ]2 d/ [* h7 iOK:=((KK1 > KK2) AND (LM1 > LM2));7 [0 e( e/ E: h& o
OK1:=((KK1 > KK2) AND (LM1 < LM2));
6 O5 n1 H$ W# W" }NOK:=((KK2 > KK1) AND (LM2 > LM1));5 W* c) C* f6 b1 N; f
NOK1:=((KK2 > KK1) AND (LM2 < LM1));6 G8 {8 P5 k. S2 j' X/ t
STICKLINE(OK1,CLOSE,OPEN,8,0),colorFFFF00;. H1 |" c5 C/ {" j6 g$ ^% z
STICKLINE(OK1,HIGH,LOW,0,0),colorFFFF00;2 T% ]. D' s( Z6 Q, T0 o8 U2 }& j
STICKLINE(OK,CLOSE,OPEN,8,0),colorred;: P6 u$ e+ ]% Y' J0 c6 Y" J3 f
STICKLINE(OK,HIGH,LOW,0,0),colorred;
7 m- T1 Z7 }4 {, ?- t2 Q% x' ~8 M8 q) ZSTICKLINE(NOK,CLOSE,OPEN,8,0),colorFFFF00;
( }0 ^- c8 G/ ^+ U# ]9 PSTICKLINE(NOK,HIGH,LOW,0,0),colorFFFF00;
; |2 Q! v: K% o9 ]0 t6 ASTICKLINE(NOK1,CLOSE,OPEN,8,0),colorred;8 Y; w( y) Z2 H4 v7 |: Z, [
STICKLINE(NOK1,HIGH,LOW,0,0),colorred;
* B# X+ M. S3 V: ], J+ PDRAWICON(CROSS(KK1,KK2),(OPEN * 0.9999),1);
2 Q- l9 H7 r8 |" L2 Z/ nDRAWICON(CROSS(KK2,KK1),(OPEN * 1.0009),2);
, v, W; C! Z$ V5 I2 e, K3 NDRAWTEXT(CROSS(KK1,KK2),(OPEN * 0.99),'跟\n进'),colorred; e$ l" D4 p3 f- k& h
6 R2 e; f& f6 Y/ I* C
2 s2 `. o% s# \" ^1 B! [3 T
: m/ Q! m( E+ e. ?: N3 v+ u2 V$ r
. S" w: z/ I' Y8 Q: c# \; \+ x+ K6 [8 Z J, e
选股公式
F, Q1 x" O6 |$ b/ e& K2 H
% k! r6 o: |( V# M, O1 \N:=150;
3 A% d6 s' I+ Q ]BU:=BARSLAST((CLOSE = HHV(CLOSE,N)));5 T! L& Z' W; ~, G1 l6 F3 _8 U
SE:=BARSLAST((CLOSE = LLV(CLOSE,N)));
. R$ d4 ^( k" \4 ]KK1:=SE;
) [, m8 M) W% K4 E9 \ oKK2:=BU;
: C) b7 |* @- ^/ ]跟进:if(CROSS(KK1,KK2),1,0); |