T:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
MP:=SUM(IF(HD 0 LD,HD,0),14);
MM:=SUM(IF(LD 0 HD,LD,0),14);
PD:=MP*100/T;
MD:=MM*100/T;
A:=PD-MD
B:=PD-MD
D:=(PD-MD);
DD:=D
STICKLINE(DD,0,D,3,0),COLOR000055;
STICKLINE(DD,0,D,2.8,0),COLOR000066;
STICKLINE(DD,0,D,2.5,0),COLOR000077;
STICKLINE(DD,0,D,2.2,0),COLOR000088;
STICKLINE(DD,0,D,1.7,0),COLOR000099;
STICKLINE(DD,0,D,1.2,0),COLOR0000AA;
STICKLINE(DD,0,D,0.7,0),COLOR0000CC;
STICKLINE(DD,0,D,0.2,0),COLOR0000FF;
F:=(PD-MD);
FF:=F {股票下载网www.9m8.cn 九毛八公式指标网}
STICKLINE(FF,0,F,3,0),COLOR009900;
STICKLINE(FF,0,F,2,0),COLOR00BB00;
STICKLINE(FF,0,F,1,0),COLOR00DD00;
STICKLINE(FF,0,F,0.3,0),COLOR00FF00;
三只羊波段副图源码:
N1 := 10;
N2 := 5;
N3 := 4;
QW1 := (((HIGH + LOW) + (CLOSE * 2)) / 4) ;
QW3 := EMA(QW1,N1);
QW4 := STD(QW1,N1);
QW5 := ((QW1 - QW3) * 100) / QW4;
QW6 := EMA(QW5,N2);
RK7 := EMA(QW6,N1);
UP := (EMA(QW6,10) + (100 / 2)) - 5,COLORRED;
DOWN := EMA(UP,N3);
BUY1 := EMA(DOWN,N3);
BUY2 := EMA(BUY1,N3),COLORGREEN;
BUY3 := EMA(BUY2,N3);
BUY4 := EMA(BUY3,N3);
0 ,COLOR888888,LINETHICK1;
100 ,COLOR888888;{股票下载网www.9m8.cn 九毛八公式指标网}
STICKLINE(UP REF(UP,1),UP,MA(UP,3),3,0),COLORBLUE;
STICKLINE(UP REF(UP,1),UP,EMA(UP,3),3,0),COLOR00AAFF;
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(买线 =卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线 =卖线,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(买线 =卖线 AND C O,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(买线 卖线,LOW,HIGH,0.0,1),COLOR228822;
STICKLINE(买线 卖线,CLOSE,OPEN,3,1),COLOR228822;
STICKLINE(买线 卖线 AND C O,CLOSE,OPEN,3,0),COLOR228822;
JJ:=(L+HIGH+C)/3;
A:=EMA(JJ,10);
B:=REF(A,1);{九毛八公式指标网www.9m8.cn}
STICKLINE(A B ,A ,B ,-1 ,0 ),COLOR00AAFF;
STICKLINE(A B ,B ,A ,-1 ,0 ),COLORBLUE;
DRAWTEXT (BU,L*0.989,'买'),COLORMAGENTA;
STICKLINE(买线 =卖线,L,H,0,0),COLORRED;
STICKLINE(买线 =卖线,C,O,3,0),COLOR0000AA;
STICKLINE(买线 =卖线,C,O,3,0),COLORSTICK;
STICKLINE(买线 卖线,C,O,3,0),COLORAAAA00;
STICKLINE(买线 卖线,C,O,3,0),COLORBBBB00;
STICKLINE(买线 卖线,L,H,0,0),COLORFFFF00;
STICKLINE(CROSS(买线,卖线),O,C,3,0),COLORMAGENTA;
STICKLINE(CROSS(卖线,买线),O,C,3,0),COLORBLUE;