{趨勢線}
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;
初漲點:IF(增幅%》=0,REF(EMA(C,14),BARSLAST(CROSS(增幅%,0))+1),DRAWNULL)COLORRED,LINETHICK1;
初跌點:IF(增幅%《0,rmkc.cnREF(EMA(C,14),BARSLAST(CROSS(0,增幅%))+1),DRAWNULL)COLORGREEN,LINETHICK1;
累計漲幅%:IF(增幅%》=0,(C-初漲點)/初漲點*100,DRAWNULL)COLORFF00FF,NODRAW;
累計跌幅%:IF(增幅%《0,(C-初跌點)/初跌點*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;
(南方財富網(wǎng)SOUTHMONEY.COM)