【通達(dá)信】年季月周漲幅主圖指標(biāo)公式
攻城獅 2015.11.09 23:22
A:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1));
YA:=BARSLAST(MONTH!=REF(MONTH,1));
JA:=MOD(MONTH,3);
JD:=BARSLAST(CROSS(JA,0.5));
NA:=BARSLAST(YEAR!=REF(YEAR,1));
QT:=BACKSET(A=0,2);
YQT:=BACKSET(YA=0,2);
JQT:=BACKSET(JD=0,2);
NQT:=BACKSET(NA=0,2);
T:=BARSLAST(CROSS(QT=1,0.5));
YT:=BARSLAST(CROSS(YQT=1,0.5));
JT:=BARSLAST(CROSS(JQT=1,0.5));
NT:=BARSLAST(CROSS(NQT=1,0.5));
CC:=REF(REF(C,T),1);
YC:=REF(REF(C,YT),1);
JC:=REF(REF(C,JT),1);
NC:=REF(REF(C,NT),1);
周漲幅:(C-CC)/CC*100 NODRAW;
月漲幅:(C-YC)/YC*100 NODRAW;
季漲幅:(C-JC)/JC*100 NODRAW;
年漲幅:(C-NC)/NC*100 NODRAW;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.guangshenggb.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點(diǎn),亦不對其真實(shí)性負(fù)責(zé),投資決策請建立在獨(dú)立思考之上。