【第一私募论坛】www.simu001.cn】MA5:MA(CLOSE,5),LINETHICK1,COLORWHITE;& b5 t' m5 |) c b6 S h
MA10:MA(CLOSE,10),LINETHICK1,COLORYELLOW;
; ^3 G7 h/ Y4 r2 T- `" p" kMA20:MA(CLOSE,20),LINETHICK1,COLORFF00FF;. Z# F1 v. m5 l, n4 B
MA60:MA(CLOSE,60),LINETHICK1,DOTLINE,COLORGREEN;
4 G f8 i3 n1 E1 W& z' ?9 d/ CMA120:MA(CLOSE,120),LINETHICK1,DOTLINE,COLORGRAY;
% [2 o4 W. p! e w% }; `MA240:MA(CLOSE,240),LINETHICK1,DOTLINE,COLORBLUE;/ s% Q% A; n8 ^( e+ v, W
5 x! E0 a5 w0 q- O
N:=12;
' C1 G/ g( r5 Y; ]1 MHXA1:=REF(C,N)=HHV(C,2*N+1);8 d/ h$ V G2 i5 }" O4 P
HXB1:=FILTER(HXA1,N);+ `+ `7 R5 @0 a) x4 w" T. l
HXC1:=BACKSET(HXB1,N+1);& P! a( t k3 _( I- n
HXD1:=FILTER(HXC1,N);# {4 B/ f' _/ P, ~- g* g9 ?* r# d6 T
HXA2:=REF(LOW,N)=LLV(LOW,2*N+1);. B O5 @1 _% p& H: s/ x4 g
HXB2:=FILTER(HXA2,N);
6 H, J% ^8 ]( \9 U( H# qHXC2:=BACKSET(HXB2,N+1);
6 }- J5 s2 q" I1 C6 A) lHXD2:=FILTER(HXC2,N);6 h) |/ U' N5 B% H( q& @
HXE1:=(REF(LLV(LOW,2*N),1)+REF(HHV(H,2*N),1))/2;
1 }$ y' v) F/ @" Z5 sHXE2:=(HIGH+LOW)/2;( g* `' F; s4 S/ K7 y+ N p; g
HXH1:=(HXD1 AND NOT(HXD2 AND HXE1>=HXE2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
3 t; k9 I- C# U3 UHXH2:=HXD1 AND NOT(HXD2 AND HXE1>=HXE2);; L) `2 d% C( a$ H
HXL1:=HXD2 AND NOT(HXD1 AND HXE1=HXE2);8 V7 y9 f0 [: |5 B& r% F4 ~$ O
HXX1:=REF(BARSLAST(HXH1),1)+1;
6 y' ]( t1 o5 w4 O4 o$ {) YHXF1:=BACKSET(HXH1 AND COUNT(HXL1,HXX1)>0,LLVBARS(IF(HXL1,LOW,10000),HXX1));
& u, ]# d: c( k; H0 {- T: HHXG1:=HXF1>REF(HXF1,1);
3 [: O& }8 I% _( o AHXI1:=BACKSET(HXG1,2);
- K; O5 `* D$ H9 P) F A8 \- dHXLD:=HXI1>REF(HXI1,1);
* v0 W# y/ w) ~/ k+ W6 ~HXL2:=HXLD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
( G% I. S' O& N+ D8 MHXX2:=REF(BARSLAST(HXL2),1)+1;( n* p% P7 [# ~$ N; t7 M
HXF2:=BACKSET(HXL2 AND COUNT(HXH2,HXX2)>0,HHVBARS(IF(HXH2,HIGH,0),HXX2));
( |2 G6 G+ i7 X# YHXG2:=HXF2>REF(HXF2,1);
- r3 o5 x8 w0 ~; y3 u) _8 w" c1 @HXI2:=BACKSET(HXG2,2);
+ r& I4 \+ a6 A* rHXHD:=HXI2>REF(HXI2,1);
+ r9 G2 ~3 e9 d, aUU2:=BACKSET(BARSTATUS=2,BARSLAST(HXHD)+1);- c6 Q3 A0 d- R* x7 a
VV2:=UU2>REF(UU2,1);
# O+ A8 v+ }8 J. r! a" |) v$ T5 S1 W/ U
! w0 S M7 o, l: z" o9 M
前高:REF(C,BARSLAST(VV2)),COLORWHITE,LINETHICK2;
1 F# w) G ]' w a' W2 a3 Y5 e* y* A. q% j R
顶高:REF(C,BARSLAST(VV2))*DG,COLORGRAY,LINETHICK2;1 J0 O7 Q9 f0 q8 o0 ?
3 v4 s8 A3 m5 Y0 PSTICKLINE(CROSS(C,前高) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),H,L,0,0),COLOR33FFDD;
+ b$ ~1 v+ m: u# t" w- A, ` |STICKLINE(CROSS(C,前高) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,3,0),COLOR33CFDD;
: d$ a" C4 ^5 `2 E/ y- P1 eSTICKLINE(CROSS(C,前高) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,2.5,0),COLOR33DFDD;5 p9 L# w+ n; _
STICKLINE(CROSS(C,前高) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,2,0),COLOR33EFDD;4 A$ x0 ]0 V* h/ L5 _
STICKLINE(CROSS(C,前高) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,1,0),COLOR33FFDD;股票论坛 www.simu001.cn【第一私募论坛】www.simu001.cn】 |