IF(PERIODNAME<>"日线") {统计:"该指标只在日线周期下有效。";RETURN;}
r1:=ZDMR[-1];
r2:=BDMR[-1];
r3:=-ZDMC[-1];
r4:=-BDMC[-1];
x1:=(ZDMR+BDMR);
y1:=-(ZDMC+BDMC);
a1=MA(x1,3);
b1=MA(y1,3);
DDX:=2*(a1+b1);
DDX1:=EMA(DDX,60)*60,COLOR00FFFF;
DDX2:=MA(DDX1,5),COLORFF00FF;
DDX3:=MA(DDX2,10),COLOR00FF00;
主力红买绿卖:DDX1>DDX2,nodraw,colorlimagenta;
RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
k=SMA(RSV,3,1);
d=SMA(k,3,1);
J:=(3*k-2*d),nodraw;
MD:=2*(K-D),nodraw;
DF := EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
DA := EMA(DF,9),colorliblue;
MACD:2*(DF-DA),nodraw;
STICKLINE(MACD>0 AND ddx1>=ddx2 AND ddx2>=ddx3,0,MACD,8,0),colorred;
STICKLINE(MACD>0 AND ddx1>=ddx2 AND ddx2<ddx3,0,MACD,8,0),colorliblue;
STICKLINE(MACD>0 AND ddx1<ddx2,0,MACD,8,0),colorblue;
STICKLINE(MACD<0 AND ddx1>=ddx2 AND ddx2>ddx3 ,0,MACD,8,0),colormagenta;
STICKLINE(MACD<0 AND ddx1>=ddx2 AND ddx2<ddx3 ,0,MACD,8,0),colorgreen;
STICKLINE(MACD<0 AND ddx1<ddx2 ,0,MACD,8,0),colorgreen;
MACDkdj共振能量:=MACD>0 AND MACD>=REF(MACD,1) AND MD>=REF(MD,1);;
持续放量:=(VOL>=MA(VOL,5) AND VOL>=MA(VOL,135)) OR (MA(VOL,5)>MA(VOL,135));
k线形态:=C>O;
强势放量:持续放量 AND MACDkdj共振能量 AND C>O AND C>MA(C,20),nodraw,coloryellow;
STICKLINE(强势放量,0,MACD,4,0),coloryellow;
|
