P1:=19;4 I W5 }+ r; J0 W* I9 s- `
P2:=120;! Z2 C) U1 }1 Z& } g# @; m; `
K:=-40;8 g5 m: B. j% M6 o0 ]7 l
G:=-26;
9 o1 y* f) w$ X; H4 RSTICKLINE(C>0,-1,1,6,0),COLOR330066;. P% f1 \1 H. a$ O
DIF:=((EMA(CLOSE,12)-EMA(CLOSE,26)))*-1;
/ i& F6 K5 A. t. O& gDEA:=EMA(DIF,9),COLORFF00FF;" p% r1 P% H$ H& ]
MACD:=2*(DIF-DEA);
$ {& P2 W5 }" T& z6 _HH:=MA(CLOSE,10);
$ n7 \' E" D" l; @/ K4 G8 y+ d- m" ^GG:=MA(CLOSE,12);
: I* |+ b0 c" n3 X: S, ^上:=EMA((MA(HIGH,3) * 1.05),30); S5 P# N( L7 T. c; u0 E1 p" u& S
下:=EMA((MA(LOW,3) * 0.96),30);* L3 S0 G8 C7 r/ D4 U4 M5 p3 }" W
决斗:STICKLINE((((CROSS(DIF,DEA) AND ((下 - REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND (DIF < 0)),DIF,0.4,3,0),COLOR0000FF;
0 E! [8 q/ ]2 Y% [+ QDRAWICON((((CROSS(DIF,DEA) AND ((下 - REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND (DIF < 0)),0.4,0);
8 n6 `$ W5 C, Y0 U0 Q" ]DRAWTEXT((((CROSS(DIF,DEA) AND ((下 - REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND (DIF = REF(MACD,5)) AND ((下 - REF(下,1)) > 0)) AND (MACD = 0)),3),0,0.5,3,0),COLOR00FF00;
4 t' W# r B* _% t! i. CDRAWICON(FILTER(((((MACD >= REF(MACD,5)) AND ((下 - REF(下,1)) > 0)) AND (MACD = 0)),3),0.5,0);, y& x2 W+ f! Q4 ?& J# q
DRAWTEXT(FILTER(((((MACD >= REF(MACD,5)) AND ((下 - REF(下,1)) > 0)) AND (MACD = 0)),3),0.5,''绝佳买入''),COLOR00FF00;
5 L; D1 h \6 L6 `$ kVCF1:=LLV(LOW,5);
% h. i. }' ^! l& \+ P( Z1 OVCF2:=HHV(HIGH,5);
' L( a7 Z9 g( |4 [2 HVCF3:=EMA((((CLOSE - VCF1) / (VCF2 - VCF1)) * 100),4);# W8 D$ q& W2 I1 @5 E/ A6 c
VCF4:=EMA(((0.667 * REF(VCF3,1)) + (0.333 * VCF3)),2);
2 e+ l) N4 u8 F) F, y0 N/ T/ XVCF5:=((HIGH + LOW) / 2);+ {# A( t/ h4 S8 ~" g6 x( E# {8 t
VCF6:=DMA(VCF5,(VOL / SUM(VOL,5)));) T! c: N r4 c+ P* v
VCF7:=DMA(VCF5,(VOL / SUM(VOL,13)));, ]6 I3 t. P; A9 O+ N
VCF8:=DMA(VCF5,(VOL / SUM(VOL,34)));
+ d2 h7 d+ |) V# k$ }. i' AVCF9:=DMA(VCF5,(VOL / SUM(VOL,75)));
7 m% r) b( w% \VCFA:=EMA(WINNER((0.9 * CLOSE)),5);. J" {& I1 C) E; K
VCFB:=(1 - EMA(WINNER((1.2 * CLOSE)),5));
& r' g- K7 {* l4 wVCFC:=EMA(WINNER(CLOSE),5);" j v# Q' H# O2 [; ^/ F
VCFD:=((100 * (CLOSE - VCF6)) / VCF6);
: T" T) b6 ?% l0 w1 Q4 W1 F, a4 i# KVCFE:=((100 * (CLOSE - VCF7)) / VCF7);
8 m- f* \- q$ M: M0 o8 gVCFF:=((100 * (MIN(CLOSE,OPEN) - VCF8)) / VCF8);! |/ G4 u5 d X
VCF10:=BARSLAST(((VCF8 > VCF9) AND (REF(VCF8,1) 0) OR (((1 - WINNER((1.2 * CLOSE))) >= 0.8) AND (WINNER(CLOSE) < 0.05))) AND (COUNT((VCFE < (0 - 16)),2) > 0)) AND (COUNT((VCFF < (0 - 20)),2) > 0));
0 N$ k4 C( z3 q& \( |VCF12:=((((COUNT((VCFD < (0 - 10)),2) > 0) AND (COUNT((VCFE < (0 - 15)),2) > 0)) AND (COUNT((VCFF < (0 - 15)),2) > 0)) AND (COUNT((VCFA > 0.8),VCF10) = 0));
- d: ^ j9 ^& R) ]VCF13:=(((COUNT((VCF11 OR VCF12),2) > 0) AND (VCF3 > REF(VCF3,1))) AND (((1 - WINNER((1.15 * CLOSE))) * 100) > 80));& t' K6 g' ], |1 `4 K
出击1:=IF((VCF13 AND (COUNT(VCF13,3) 0),0.35,''★黑马''),COLORFFFFFF;
8 `; s" h( Z8 XDRAWTEXT((黑马出击 > 0),0.35,''出击''),COLOR00FF00;8 D6 w6 y- Q- a5 s
VAR26:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
% d; @ \- [! e/ r5 LVAR27:=((EMA(CLOSE,12) - EMA(CLOSE,26)) * 100);! F% J- n8 l4 W5 \3 L4 |/ o5 ]$ P
VAR28:=EMA(VAR27,9);
# ^$ L/ T$ @( A& IVAR29:=(2 * (VAR27 - VAR28));8 r9 H: K% p* E% Z: Q5 ~
STICKLINE(((VAR27 < (0 - 50)) AND (VAR26 > 7)),0,(0 - 0.1),5,0),COLOR0000FF;) p) o6 q) {% { g3 Q# N
DRAWTEXT((((VAR27 < (0 - 50)) AND (VAR26 > 7)) AND (VAR27 < VAR28)),(0 - 0.09),''底''),COLORFFFFFF;5 a* h+ S& v+ W: w9 N
DRAWTEXT((((VAR27 < (0 - 50)) AND (VAR26 > 7)) AND (VAR27 >= VAR28)),(0 - 0.1),''追''),COLORFFFFFF;6 }8 z- {8 O; E& ]/ Z4 q6 [7 h
VAR1:=1;8 e9 r0 K, e: p6 k8 A- i
VAR2:=MA(CLOSE,18);
- w: w b6 R1 F2 j6 C, ]VAR3:=(((CLOSE - VAR2) / VAR2) * 100);" ]. R. K4 x8 F$ h6 w
VAR4:=MA(VAR3,1);
! K2 p' r C% b, M+ b* H1 [升跌:=(VAR4 * VAR1);) ?, n# D: Y* V- v0 E% ~
VAR5:=BARSLAST((CROSS((0 - 10),VAR4) = 1));1 U7 m: B& h" u
VAR6:=BARSLAST((CROSS(VAR4,10) = 1));
0 U- T# g9 h' m: N. A) }! j' A! r; T. O; ~VAR7:=((VAR4 < (0 - 10)) AND (VAR5 >= 5));
7 v' A9 n k- |VAR8:=((VAR4 > 10) AND (VAR6 >= 5));4 x5 X/ A3 Y0 v; X
C3:=(IF(((VAR4 > 10) AND (VAR6 >= 5)),VAR4,0) * VAR1);2 K, O& T& A% A+ H! y
C4:=C3;
@9 `+ T* z' Q! \D1:=((((升跌 > REF(升跌,1)) AND VAR7) * 0.2) * VAR1);
. u1 Q/ p- F2 i# p中期底部:=LLV(CLOSE,30);
! `# X% \, m% {) V: S( ID FILTER(((((((升跌 > REF(升跌,1)) AND (LOW 中期底部)) AND VAR7) * 0.5) * VAR1),3) * 0.5),LINETHICK2,COLOR0000FF;
3 V6 J% h$ }1 T! A6 SDRAWTEXT((D >= 0.25),D,''★铁底''),COLOR00FFFF;! B4 o# h! g6 @, S4 [
STICKLINE(((CROSS(MACD,DIF) AND (MACD >= (0 - 0.05))) AND (MACD = (0 - 0.05))) AND (MACD = (0 - 0.05))) AND (MACD = (0 - 0.05))) AND (MACD REF(VOL,1)))));
" _( C- W$ n( ~; C6 UDRAWTEXT((((BB >= 0.7) AND (CLOSE < 上)) AND ((下 - REF(下,1)) > 0)),0.7,''。量价共同完善''),COLOR00FF00;
& q2 Y1 ^" `2 V- A: c& S8 XDRAWTEXT((((BB >= 0.7) AND (CLOSE < 上)) AND ((下 - REF(下,1)) > 0)),0.7,''。(追)''),COLOR0000FF;% C& U6 t& a+ S- l) _- U8 f* d
N15HIGH:=REF(HIGH,15);
7 [9 m' k" \- g/ U- ?- F. FN1LOW:=REF(LOW,1);
: ^# B5 G# I4 ~- R0 X" F# |FF:=(((N15HIGH - N1LOW) / N1LOW) > 0.15);
( Q# K% {3 @7 z5 TDRAWICON((((((CROSS(MA(CLOSE,P1),MA(CLOSE,P2)) > 0) AND (((N15HIGH - N1LOW) / N1LOW) < 0.15)) AND (OPEN >= MA(CLOSE,P1))) AND (CLOSE >= MA(CLOSE,P1))) AND (LOW 0) AND (((N15HIGH - N1LOW) / N1LOW) < 0.15)) AND (OPEN >= MA(CLOSE,P1))) AND (CLOSE >= MA(CLOSE,P1))) AND (LOW (1 * REF(VAR10,1))) AND (VAR10 < K)) AND (VAR10 > G)) * 1.5);
, o$ L% [& s3 c' R3 [VAR12:=((VOL / CAPITAL) * 100);
: i. }4 Y4 t. t3 l5 v0 Z- s9 hVAR13:=LLVBARS(LOW,50);
6 w2 }# `( ^0 \* g: IVAR14:=SUM(VOL,VAR13);
3 b( b4 J# ~4 j$ J6 @) GVAR15:=HHVBARS(HIGH,50);+ |$ Q. p8 l& B# b( [ G9 \4 [
VAR16:=SUM(VOL,VAR15);; o) [9 ?/ `# C# O/ V0 R- Q& B$ w
VAR17:=(((CLOSE - REF(OPEN,VAR15)) / REF(OPEN,VAR15)) * 100);- [& O$ f# I: A/ U+ z- b6 O
VAR18:=((VAR16 / CAPITAL) * 100);
4 c4 u! M. l* \0 i! a& B6 f, ^# v$ JVAR19:=(((CLOSE - REF(OPEN,VAR13)) / REF(OPEN,VAR13)) * 100);
- [1 b4 z+ t6 u6 O9 R6 HVAR20:=((VAR14 / CAPITAL) * 100);
; ^( g4 Y/ E c6 ]) s; R' p' KVAR21:=MA(CLOSE,3);
8 z( e4 K* x$ A* [! L# A! s# ]VAR22:=(REF(CLOSE,2) * 0.865);
. s1 A2 P" p( L( @VAR23:=(REF(CLOSE,13) * 0.772);# p- L C& \3 i7 H
VAR24:=MIN(VAR22,VAR23);
' L/ S9 Y% b# i$ ^$ Y% WVAR25:=MA(CLOSE,13);
0 G- e( i: n6 u. C% R; m抄底1:(IF((((((CLOSE - VAR24) / CLOSE) < 0.03) AND (VAR17 < (-35))) AND ((SUM(VAR12,5) / 5) < 1.8)),1,0) * 0.4),LINETHICK3,COLORFF0000;
5 u+ `; |0 f7 qDRAWTEXT((抄底1 > 0),抄底1,''★抄底''),LINETHICK3,COLORFFFFFF;5 y( Z) L# o3 z, A
DRAWTEXT((抄底1 > 0),抄底1,''乐成90%''),LINETHICK3,COLOR00FF00; F9 i- v! i& T5 i/ E* Q3 y" j6 G" H
VAR266:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);* T; _) \& ?! Y0 l4 p6 v2 y5 ?
VAR277:=((EMA(CLOSE,12) - EMA(CLOSE,26)) * 100);
3 ^. g. C! X) t7 f& C" e/ `VAR288:=EMA(VAR277,9);8 X P: r9 l @: [' o
VAR299:=(2 * (VAR277 - VAR288));
4 e" T5 K; K9 wDRAWTEXT((((VAR277 < (-50)) AND (VAR266 > 7)) AND (VAR277 < VAR288)),(-0.08),''★''),COLORFFFFFF;
5 G4 r+ u. X) D# rDRAWTEXT((((VAR277 < (-50)) AND (VAR266 > 7)) AND (VAR277 >= VAR288)),(-0.1),''● ''),COLORFFFFFF;
) ? F' I* z7 T2 T4 g( fVAC:=(LOW * 0.9);
; L9 {5 U; j( VVAB:=EMA(LLV(LOW,90),21);
' E' b4 J2 A$ IVAD:=(((VAC * VOL) + (VAB * (CAPITAL - VOL))) / CAPITAL);: E- @+ g. D1 H4 p
VAE:=EMA(VAD,30);& Y% K1 k% J: S i5 E
VAF:=(CLOSE - REF(CLOSE,1));6 D! X- c7 w8 b* a j
VA10:=MAX(VAF,0);- y1 P: ]3 h& v% O9 M$ _+ y% ]4 ^
VA11:=ABS(VAF);
; q5 l% V1 n8 gVA12:=((SMA(VA10,7,1) / SMA(VA11,7,1)) * 100);7 q0 S& @1 o7 `0 q8 y0 Z
VA13:=((SMA(VA10,13,1) / SMA(VA11,13,1)) * 100);
6 j X9 V1 Z4 F$ oVA14:=((SMA(MAX(VAF,0),6,1) / SMA(ABS(VAF),6,1)) * 100);
- O- d, s8 g: Y v- U8 CVA15:=((((-200) * (HHV(HIGH,60) - CLOSE)) / (HHV(HIGH,60) - LLV(LOW,60))) + 100);, i$ y" O" S0 W! \6 o+ s, @0 y1 o' E! d
VA16:=(((CLOSE - LLV(LOW,15)) / (HHV(HIGH,15) - LLV(LOW,15))) * 100); F1 l% F9 x" e9 V8 w* p2 W! n- x
VA17:=SMA(((SMA(VA16,4,1) - 50) * 2),3,1);
. X2 Q; L/ i5 W4 D) w# t, Z1 v! VVA18:=(((INDEXC - LLV(INDEXL,14)) / (HHV(INDEXH,14) - LLV(INDEXL,14))) * 100);, `& }8 V Z9 W* \& H
VA19:=SMA(VA18,4,1);% Q5 t- I( X5 Y! H3 H7 Z
VA1A:=SMA(VA19,3,1);' s( {, @) K+ Q9 P2 U3 O' U/ O4 N4 i
VA1B:=(((HHV(HIGH,30) - CLOSE) / CLOSE) * 100);. w, [( t" y& Z2 {, c4 ?
VA1C:=((((((((VA14 20)) AND (VA17 < (-30))) AND (VA1A < 30)) AND ((VAE - CLOSE) >= (-0.25))) AND (VA12 < 22)) AND (VA13 < 28));# F: v( |: L* w2 S2 x0 g% ~8 s
低买1:=STICKLINE(VA1C,0,0.1,1,1);- f& ~. |2 ?( `. u+ |2 l
发射:STICKLINE(VA1C,0,0.7,2,0),LINETHICK2,COLOR0000FF;
f- v. u1 E( g9 x. O v; WDRAWTEXT((VA1C > 0),0.7,''^★发射''),COLORFFFFFF;$ k: a5 z! Y0 Q2 ]2 Q9 U
A4:=BARSLAST(REF(CROSS(DIF,DEA),1));: ^( w8 g4 m$ ?4 ? d+ O
B1:=REF(C,A4+1)>C AND REF(DIF,A4+1)0,5),DIF+0.2,''●背离''),COLORYELLOW;
, R& P' M0 c$ f$ z/ p- R- W9 f) mIF(DIF>DEA,DEA,DEA),{COLORGREEN}COLORFF937F,LINETHICK2;
$ Z* _7 I& S- E8 t6 K* [8 }* z( b缩头:=IF(MACD>0 AND REF(MACD,1)>REF(MACD,2) AND MACD< REF(MACD,1),1,0);
9 b* z! F& D# S* ]; W. _缩脚:=IF(MACDREF(MACD,1),1,0);8 I, r G0 L \$ j8 H+ g8 m% l
阻力:=IF(CROSS(C,MA(C,20)) OR CROSS(C,MA(C,60)),1,0);
) x5 p# M. M! t& `* x+ t3 l$ m支持:=IF(CROSS(MA(C,20),C) OR CROSS(MA(C,60),C),1,0);. m8 ]- R) [8 p$ ?3 L
做多:=IF(CROSS(MACD,DIF) AND DIF>0 AND MACD>0,1,0);
+ b. D7 i( x% ~: t+ e) N& @放空:=IF(CROSS(DIF,MACD) AND DIF=0 OR (DIF=0),1,0);
, \9 A" D/ [; o空头趋势:=DIF |