{高灵敏MACD+KDJ}
s2:=sma(c,3,1);
s6:=sma(c,5,1);
dk:=100*(s2-s6);
STICKLINE(dk>0,0,dk,0,1),COLORRED;
STICKLINE(dk<0,0,dk,0,1),COLORblue;
0,COLOR00ff00;
均衡:=EMA(ema(ema(c,3),2),2),COLORWHITE;
TYP:=(HIGH + LOW + CLOSE)/3;
cci:=((TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)))/4;
DI:=(均衡 - ref(均衡,2));
DE:=EMA(DI,7);
MACD:=ema((DI-DE)+cci,1);
STICKLINE(macd>0 and dk>ref(dk,1),dk/2,0,4,0),COLOR0000AA;
STICKLINE(macd>0 and dk>ref(dk,1),dk/2,0,3.5,0),COLOR0000BB;
STICKLINE(macd>0 and dk>ref(dk,1),dk/2,0,3,0),COLOR0000CC;
STICKLINE(macd>0 and dk>ref(dk,1),dk/2,0,2.5,0),COLOR0000CC;
STICKLINE(macd>0 and dk>ref(dk,1),dk/2,0,2,0),COLOR0000DD;
STICKLINE(macd>0 and dk>ref(dk,1),dk/2,0,1.5,0),COLOR0000EE;
STICKLINE(macd>0 and dk>ref(dk,1),dk/2,0,1,0),COLOR0000FF;
STICKLINE(macd>0 and dk>ref(dk,1),dk/2,0,0.5,0),COLORRED;
{黄柱}
STICKLINE(macd>0 and dk<ref(dk,1),dk/2,0,4,0),color0090FF;
STICKLINE(macd>0 and dk<ref(dk,1),dk/2,0,3.5,0),color009FFF;
STICKLINE(macd>0 and dk<ref(dk,1),dk/2,0,3,0),color00a6FF;
STICKLINE(macd>0 and dk<ref(dk,1),dk/2,0,2.5,0),color00b5FF;
STICKLINE(macd>0 and dk<ref(dk,1),dk/2,0,2,0),color00c4FF;
STICKLINE(macd>0 and dk<ref(dk,1),dk/2,0,1.5,0),Color00d3ff;
STICKLINE(macd>0 and dk<ref(dk,1),dk/2,0,1,0),color00e2FF;
STICKLINE(macd>0 and dk<ref(dk,1),dk/2,0,0.5,0),color00FFFF;
{蓝柱}
STICKLINE(macd<0 and dk<ref(dk,1),dk/2,0,4,0),COLORFF0000;
STICKLINE(macd<0 and dk<ref(dk,1),dk/2,0,3.5,0),COLORFF3300;
STICKLINE(macd<0 and dk<ref(dk,1),dk/2,0,3,0),COLORFF5500;
STICKLINE(macd<0 and dk<ref(dk,1),dk/2,0,2.5,0),COLORFF7700;
STICKLINE(macd<0 and dk<ref(dk,1),dk/2,0,2,0),COLORFF9900;
STICKLINE(macd<0 and dk<ref(dk,1),dk/2,0,1.5,0),COLORFFBB00;
STICKLINE(macd<0 and dk<ref(dk,1),dk/2,0,1,0),COLORFFDD00;
STICKLINE(macd<0 and dk<ref(dk,1),dk/2,0,0.5,0),COLORFFFF00;
{粉柱}
STICKLINE(macd<0 and dk>ref(dk,1),dk/2,0,4,0),ColorFF88ff;
STICKLINE(macd<0 and dk>ref(dk,1),dk/2,0,3.5,0),ColorFF99ff;
STICKLINE(macd<0 and dk>ref(dk,1),dk/2,0,3,0),ColorFFaaff;
STICKLINE(macd<0 and dk>ref(dk,1),dk/2,0,2.5,0),ColorFFbbff;
STICKLINE(macd<0 and dk>ref(dk,1),dk/2,0,2,0),ColorFFccff;
STICKLINE(macd<0 and dk>ref(dk,1),dk/2,0,1.5,0),ColorFFddff;
STICKLINE(macd<0 and dk>ref(dk,1),dk/2,0,1,0),ColorFFeeff;
STICKLINE(macd<0 and dk>ref(dk,1),dk/2,0,0.5,0),ColorFFffff;
Var2:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
Var3:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Var4:=SMA(Var3, 9, 1);
Var5:=SMA(Var4, 3, 1);
J:ema(3*Var4-2*Var5,2)-50,linethick2,colorwhite;
A2:EMA(Var4, n)-50, COLORFF55CC;
A3:EMA(A2, n), COLORFF33CC;
A4:EMA(A3, n), COLORFF11CC;
A5:EMA(A4, n), COLORffff00;
A6:EMA(A5, N), COLORgreen;
A7:EMA(A6, N), COLORgreen;
AA:EMA(A5, 10),LINETHICK2, COLORred;{
顶尖财经网www.58188.com整理}