通达信,笑傲股海,两根线,指标公式
{笑傲股海两根线}
DP:=(H+L+2*C)/4;
DN:=ABS(CLOSE-REF(CLOSE,13));
VY:=SUM(ABS(CLOSE-REF(CLOSE,1)),13);
ER:=DN/VY;
FSC:=2/(2+1);
SSC:=2/(13+1);
SC:=ER*(FSC-SSC)+SSC;
SCSQ:=SC*SC;
牛熊线:EMA(C,56),COLORWHITE,LINETHICK2;
持股线:DMA(DP,SCSQ),COLORGREEN,LINETHICK2;
PARTLINE(持股线>EMA(持股线,3),持股线),COLOR00FF00,LINETHICK2;
PARTLINE(牛熊线>MA(DP,50) AND 持股线>EMA(持股线,3),持股线),COLORRED,LINETHICK2;
PARTLINE(牛熊线<MA(DP,50) AND 持股线>EMA(持股线,3),持股线),COLORYELLOW,LINETHICK2;