! R' S* y$ r. E9 s. [9 B
- z$ t1 Z2 u% A4 b% Y; b
指标源码:【由彩虹桥投资充电站(www.xuexi199.com)整理】4 D; ?6 ?& H* P0 u% [- \9 C, S. v
: e9 D& ]: k4 l5 G4 Z
{分时神线-和谐完整版}0 t+ y: q5 Z- T# f4 h5 l
% S1 D( |1 |( S5 a9 \现价:CLOSE,COLORWHITE,LINETHICK1;
- D: c# p- A8 m* W
& `; G, Y, }7 J7 a7 I, C2 L( |赚钱1:=(BARSLAST(((HOUR = 9) AND (MINUTE = 31))) + 1);
5 } I. d( ]: B0 M4 b" l8 ]5 g, ^+ J. E0 u- e" W; }4 q
赚钱2:=SUM(CLOSE*VOL,BARSCOUNT(C))/SUM(VOL,BARSCOUNT(C));: V( E2 m( M. k' g7 j
! G. h$ `' C' f. {' X# g0 @
赚钱3:=(SUM((CLOSE * VOL),0) / SUM(VOL,0));
6 P7 W: A4 U. g$ P) h
* z- v5 o- \. G4 ?% q0 x& Z赚钱4:=(((SETCODE = 0) OR (SETCODE = 1)) AND (CLOSE < 500));2 j G4 ^! f3 z6 t
' x& X$ ]/ e+ S" |; `4 B5 F均价:=IF(赚钱4,赚钱2,赚钱3),COLORYELLOW;
9 S7 W) m6 o& C% d; o( ?! U3 K: @/ M8 U
赚钱11:=MA((REF(MAX(H,REF(C,1)),1)-REF(MIN(L,REF(C,1)),1))/REF(C,2)*100,5)/4;. H9 _6 E6 u: q$ O
4 c- s: c: q: u, E赚钱12:=(赚钱11 * 1.3);
# c) Z6 }0 P, k' _* ?4 l: L
! d1 L7 D9 T$ d' R赚钱15:=((CLOSE > REF(CLOSE,1)) AND ((CLOSE / 均价) > (1 + (赚钱11 / 100))));. }3 `" ?2 d' ~0 v, W2 b+ X2 T5 ?
% }( r0 c" |& L% `$ ^- ?7 [* ^5 n赚钱16:=((CLOSE < REF(CLOSE,1)) AND ((CLOSE / 均价) < (1 - (赚钱11 / 100))));4 m$ A" G; G1 X
( E! C/ u1 i: z3 m( U; M* IHH1:=((REF(SUM(赚钱15,0),1) = 0) AND (SUM(赚钱15,0) = 1));
1 ]; d7 U, e5 f+ b. L7 E5 E
" H) F( {! r" v( aLL1:=((REF(SUM(赚钱16,0),1) = 0) AND (SUM(赚钱16,0) = 1));
) j. x; R8 k8 R, `3 S) ]
6 L8 P. V$ [0 k0 U! G" i赚钱19:=(SUM(HH1,0) * CROSS(COUNT((CLOSE < REF(CLOSE,1)),BARSLAST(HH1)),0.5));
, X" S* T8 S; Q K' t4 U& s0 C' B# |$ H) I
赚钱20:=(SUM(LL1,0) * CROSS(COUNT((CLOSE > REF(CLOSE,1)),BARSLAST(LL1)),0.5));+ U% Q* U$ a; ^1 e8 P9 v& ?+ ~: D# s
) \) v( q6 ?* F' ?) j
CS1:CONST(SUM(IF(赚钱19,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;/ w8 G: |% S/ c4 F
9 V8 V$ T+ p- O0 g; D# x
CB1:CONST(SUM(IF(赚钱20,REF(CLOSE,1),DRAWNULL),0)),COLORLIMAGENTA,LINETHICK1;! R5 j9 Z5 ]3 e" I1 J
- Q( S/ d: n. vHH2:=CROSS(SUM((赚钱15 AND (CLOSE > (CS1 * (1 + (赚钱12 / 100))))),0),0.5);$ }4 l. L% ]* p8 F1 s: Q" O) M
& {5 o6 j1 E5 N4 P
LL2:=CROSS(SUM((赚钱16 AND (CLOSE < (CB1 * (1 - (赚钱12 / 100))))),0),0.5);4 ^! n: a" _6 `3 z# j( z
: n" g) o K0 p; v0 A6 u& t
赚钱25:=(SUM(HH2,0) * CROSS(COUNT((CLOSE < REF(CLOSE,1)),BARSLAST(HH2)),0.5));0 ^6 j3 }3 c. X' i$ l& S$ j/ {
3 A8 I3 `: Z4 {& ]5 K# d7 v$ r2 z
赚钱26:=(SUM(LL2,0) * CROSS(COUNT((CLOSE > REF(CLOSE,1)),BARSLAST(LL2)),0.5));/ f% [+ Y, M0 r, @" l" P
8 p) S- x9 e7 A) v5 j1 X2 Z/ }% ZCS2:CONST(SUM(IF(赚钱25,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;- ]8 n- c, W8 s* E0 t" c1 C' x
- e6 k9 f2 p. I+ C
CB2:CONST(SUM(IF(赚钱26,REF(CLOSE,1),DRAWNULL),0)),COLORLIMAGENTA,LINETHICK1;
0 M" O2 D. n% Q o
1 t6 G" S+ q; C. _DRAWICON((HH1 OR HH2),(CLOSE * 1.001),2);0 B" o" p9 N3 L. b+ D! t3 V! w
' K4 U/ @: q r, q# _DRAWICON((LL1 OR LL2),(CLOSE * 0.988),1);6 h, T2 D- B5 O# F; R* n6 g
5 p6 I8 V& _/ H, e7 C1 p
DRAWICON((赚钱20 OR 赚钱26),(REF(C,1) * 0.988),7);. e+ g0 C" Z$ {+ p& [4 W
7 W* n$ L8 W# n7 A: N+ k" H! u" g
DRAWICON((赚钱19 OR 赚钱25),(REF(CLOSE,1) * 1.001),8);
- h0 S" Q" q$ l |