【第一私募论坛】www.simu001.cn】MA5:MA(CLOSE,5),LINETHICK1,COLORWHITE;
3 v6 p. P% n6 y s2 U2 P% IMA10:MA(CLOSE,10),LINETHICK1,COLORYELLOW; ~, Y' _1 @# J, c2 ?% V8 u
MA20:MA(CLOSE,20),LINETHICK1,COLORFF00FF;
0 c& S6 L3 x! `MA60:MA(CLOSE,60),LINETHICK1,DOTLINE,COLORGREEN;
! R. C7 Z8 Y+ F) e; J$ \) ~& fMA120:MA(CLOSE,120),LINETHICK1,DOTLINE,COLORGRAY;
0 o ?, X3 s, T) U3 d- E( MMA240:MA(CLOSE,240),LINETHICK1,DOTLINE,COLORBLUE;( B: G: s4 T; @9 G9 R. l
' ]3 m3 |+ U$ U
N:=12;$ X r( \# i! \
HXA1:=REF(C,N)=HHV(C,2*N+1);7 y1 x8 y2 b; o/ c
HXB1:=FILTER(HXA1,N);
% I2 }; g: } S, [, |2 h& m }HXC1:=BACKSET(HXB1,N+1);
# ~% m6 F' X! |+ fHXD1:=FILTER(HXC1,N);
$ i- N0 M" u0 D6 a' F) s' CHXA2:=REF(LOW,N)=LLV(LOW,2*N+1);' H: |0 K! n* O; O
HXB2:=FILTER(HXA2,N);: v3 ]2 I$ Z+ o" N: L3 d
HXC2:=BACKSET(HXB2,N+1);# E- p) \( f' Z/ v$ V ~
HXD2:=FILTER(HXC2,N);
8 l8 d4 K9 C6 c0 V8 k+ @HXE1:=(REF(LLV(LOW,2*N),1)+REF(HHV(H,2*N),1))/2;
+ G9 l5 ~. V7 N: _2 @0 `HXE2:=(HIGH+LOW)/2;3 i( ^/ v5 B6 b
HXH1:=(HXD1 AND NOT(HXD2 AND HXE1>=HXE2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
; }6 O% {% F; d+ R% R9 YHXH2:=HXD1 AND NOT(HXD2 AND HXE1>=HXE2);
; k; s6 e! S% @6 {% Z- Y. h: k' _+ IHXL1:=HXD2 AND NOT(HXD1 AND HXE1=HXE2);
: n5 W7 ]/ F; J& b3 |8 E$ e; FHXX1:=REF(BARSLAST(HXH1),1)+1;2 q a/ C4 k! i, m
HXF1:=BACKSET(HXH1 AND COUNT(HXL1,HXX1)>0,LLVBARS(IF(HXL1,LOW,10000),HXX1));. a" q7 t) R" t H' H4 g/ P
HXG1:=HXF1>REF(HXF1,1);) B( R6 j0 U6 v4 S
HXI1:=BACKSET(HXG1,2);& t6 b; l; @6 a9 j. G0 @
HXLD:=HXI1>REF(HXI1,1);$ E8 @9 c/ f* P" ]6 J
HXL2:=HXLD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;9 Z' O1 o/ S2 M9 z. e8 s z
HXX2:=REF(BARSLAST(HXL2),1)+1;/ {: ^2 U+ N3 ~! A2 U- ^% ~6 f! ~
HXF2:=BACKSET(HXL2 AND COUNT(HXH2,HXX2)>0,HHVBARS(IF(HXH2,HIGH,0),HXX2));
. _# X9 S5 F& @- V* D9 x( qHXG2:=HXF2>REF(HXF2,1);9 u* }. P( @) U9 F% [1 b3 @
HXI2:=BACKSET(HXG2,2);4 b* D4 V6 ^) W y2 [- Y7 h
HXHD:=HXI2>REF(HXI2,1);$ H3 O' o% ?& f
UU2:=BACKSET(BARSTATUS=2,BARSLAST(HXHD)+1);
5 y. I, c+ ~5 {' ~5 QVV2:=UU2>REF(UU2,1);2 C- r6 ]* {7 S9 x0 i) e! A/ ?3 A- i
# h* ~: [0 Y/ v" p% H) \- b# ?4 W- h2 k$ [2 k. q
前高:REF(C,BARSLAST(VV2)),COLORWHITE,LINETHICK2;4 }, M. j9 f* ]8 j! g" b
: }6 t( ?% N9 _" |% v
顶高:REF(C,BARSLAST(VV2))*DG,COLORGRAY,LINETHICK2;
6 x( @3 S6 F K6 t2 B- r/ v6 p1 [8 F {; ]2 Q( y' V6 a# `
STICKLINE(CROSS(C,前高) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),H,L,0,0),COLOR33FFDD;( g l' ~6 ~: \1 g# k# l0 r
STICKLINE(CROSS(C,前高) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,3,0),COLOR33CFDD;
) W& D) J1 c4 x% E/ \: iSTICKLINE(CROSS(C,前高) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,2.5,0),COLOR33DFDD;" B/ Z+ P$ C N4 O
STICKLINE(CROSS(C,前高) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,2,0),COLOR33EFDD;
1 w4 N( y4 F/ Q7 U6 hSTICKLINE(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】 |