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