{趨勢(shì)線}
VAR1:=(C+H+O+L)/4;
賣出:EMA(VAR1,15)*(1+2/25),COLORGREEN,LINETHICK2;
買入:EMA(VAR1,25)*(1-1/10),COLORMAGENTA,LINETHICK2;
{紅綠線}
A:=EMA(CLOSE,7)-EMA(CLOSE,21);
B:=EMA((0.668*REF(A,1)+0.333*A),3);
{均線}
買線:=EMA(C,5);
賣線:=EMA(SLOPE(C,20)*10+C,40);
{增幅線}
EMA14:=EMA(C,14);
增幅%:(EMA14-REF(EMA14,1))/REF(EMA14,1)*100,NODRAW;
{指示}
買:=C》=EMA(C,5) AND A》B AND B》REF(B,1) AND 增幅%》0 AND 買線》=賣線 AND 賣出》REF(賣出,1);
賣:=C《EMA(C,5) OR A《=B OR 增幅%《0 OR 買線《賣線 OR 賣出《=REF(賣出,1);
STICKLINE(買,LOW*0.99,LOW*0.97,2.9,0),COLORYELLOW;
STICKLINE(賣,LOW*0.99,LOW*0.97,2.9,0),COLORBLUE;
初漲點(diǎn):IF(增幅%》=0,REF(EMA(C,14),BARSLAST(CROSS(增幅%,0))+1),DRAWNULL)COLORRED,LINETHICK1;
初跌點(diǎn):IF(增幅%《0,www.web0773.netREF(EMA(C,14),BARSLAST(CROSS(0,增幅%))+1),DRAWNULL)COLORGREEN,LINETHICK1;
累計(jì)漲幅%:IF(增幅%》=0,(C-初漲點(diǎn))/初漲點(diǎn)*100,DRAWNULL)COLORFF00FF,NODRAW;
累計(jì)跌幅%:IF(增幅%《0,(C-初跌點(diǎn))/初跌點(diǎn)*100,DRAWNULL)COLORGREEN,NODRAW;
STICKLINE(CROSS(增幅%,0),C,O,2,0)COLORFF00FF;
STICKLINE(CROSS(0,增幅%),C,O,2,0)COLORGREEN;
STICKLINE(CROSS(增幅%,0) OR CROSS(0,增幅%),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE;
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)