【大智慧】短線RSI指標(biāo)公式
攻城獅 2016.01.07 16:24
DRAWGBK(c>0),color000000;
LC := REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100,colorffffff;
RSI2:SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100,colorff00ff;
ao:=rsi;
MID:=MA(ao,20);
UPPER:=MID + 2.*STDDEV(ao,20);
LOWER:=MID – 2.*STDDEV(ao,20);
高:=ref(hhv(ao,360),1);
低:=ref(llv(ao,240),1);
【上】:upper,pointdot,colorFFFF00;
【下】:lower,pointdot,colorFFFF00;
{概念股網(wǎng)-股票公式網(wǎng)站 m.chiang1015.com}
DRAWTEXT(cross(ao,lower), lower,’ ‘),COLORRED;
DRAWICON(cross(ao,lower), lower *0.99,12),ALIGN1;
DRAWTEXT(cross(lower,ao), lower,’ ‘),COLORRED;
DRAWICON(cross(lower,ao), lower *0.99,7),ALIGN1;
drawtext(cross(ao,高),mid,’高’),colorBLUE,ALIGN1;
drawtext(cross(低,ao),mid,’低’),coloryellow;
DRAWTEXT(cross(upper,ao), upper,’ ‘);
DRAWICON(cross(upper,ao), upper*1.4,13),ALIGN1;
DRAWTEXT(cross(ao,upper),upper,’ ‘);
DRAWICON(cross(ao,upper), upper*1.3,8),ALIGN1;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。