这几天没有连续更新帖子的缘故起因是和几个朋侪一起研究指标公式,如今小有成效,特发出来供各人查验
( v- J3 L: g8 k以下是部门源码:
, j6 F/ E* A% F6 k回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);9 ]. S# g% @! F; R3 p8 t/ y8 O/ o6 k
经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;% w( S; ]; g7 M- |5 r
经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;
/ ~" D- p" {: y# ]9 A( vMAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));
0 Y7 a9 D7 {! d& A7 f) }" H% bMAHL2:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}
0 }/ D0 o/ t m, u: g5 uMAHL3:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}
8 V, I5 B1 v5 I2 ?回归斜率带 RAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));0 Y9 N7 |0 f x+ T% g+ k
上线:=SMA(C,6.5,1);* @. v# i1 a; S2 i7 j2 w
一号支持线:SMA(C,14.5,1);
9 p& Q7 [/ M1 u3 P上线1:=SMA(C,3,1);+ x# T: x) _- @0 ^6 L8 R- x2 Q% l
一号支持线1:=SMA(C,8,1);
5 S( A) Q5 P. C3 A上线2:=SMA(C,3.5,1); J: x+ n9 I F: {* N9 _6 A& ~
DRAWTEXT(CROSS(一号支持线1,上线1),H*1.08,'洗盘'),COLOR00FF00;
/ \* W5 M0 o: A, x/ D- `1 CBBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;
) |( f4 W% E1 s1 rUPR:=BBI+3*STD(BBI,13),LINETHICK2;
3 y' W- @* P& \! W: X+ |% yDWN:=BBI-3*STD(BBI,13);* a. T3 g0 A/ a8 J
安全:=MA(CLOSE,55),LINETHICK2;
7 U: \2 c( h: S: g) y( o, @ [. WLC:=REF(CLOSE,1); : k7 A, G" _2 r2 i* W9 z- l8 a
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 4 x6 Y0 K h2 U7 ` C
DRAWTEXT( CROSS(82,RSI) AND CLOSE操纵,LOW *0.92,'买进' ),COLORYELLOW;- d: r9 p2 q& h' R) p/ E, L
VAR1 LV(A7,21);
. g: @* A. o; s# v/ h7 o# pVAR2:HHV(A7,30);+ V" m$ E' l6 }
DRAWTEXT( CROSS(上线1,操纵) AND 上线1操纵 ,LOW *0.98,'全仓' ),COLORYELLOW;
! E5 b2 E9 s. [! @SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7); : z$ A+ M3 B9 x r4 w# N& B W
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5); * M4 M1 T) s$ O7 w: _3 K
M1:=1000*操纵/一号支持线=975;
. F5 B- r1 D& MM2:=1000*一号支持线1/一号支持线=980;
, |2 S5 J' G, T' D- `& Y: a: u' JM3:=1000*上线/一号支持线=985;. l. R2 W6 p( e x+ `) n H
DRAWTEXT(IF(COUNT(CLOSE6/10 AND 1 w- j1 s& N1 t
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
! w2 v5 }. z+ x c' rREF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
2 a. Z% c, P2 H/ f1 R/ sOPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW; 6 `* s: K' m, J, y
D:=MA(CLOSE,89)-MA(CLOSE,10)/3;
! ~1 ~ W, q \/ W5 A* f8 ADRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.084 W7 T4 S$ Z% _" o2 x# _
AND CLOSE65,HIGH*1.02,15),COLORGREEN;
6 N9 Z$ _( k2 f; D9 K6 aDRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;
. v4 U# d6 i- S- `' F/ b' a) B2 u7 SDRAWTEXT(CLOSE>OPEN AND H1一号支持线 AND JOPEN AND 上线>一号支持线1 AND 一号支持线1>一号支持线 AND CLOSE>MA(CLOSE,一号支持线) AND 操纵>=REF(CLOSE,操纵) AND CROSS(上线1,操纵) AND LOW>VAR1 AND JOPEN AND 操纵>上线 AND 上线>一号支持线1 AND 一号支持线1>一号支持线 AND CROSS(上线1,操纵) AND LOW>VAR1 AND JOPEN AND CROSS(上线,一号支持线) AND LOW>VAR1 AND J |