大智慧股票公式:BSMA主圖股票指標公式
2013-12-02 11:03 南方財富網(wǎng)
a:="";
s1:="_S1";
hs:="_HS";
ls:="_LS";
p1:="_P1";
upp:="_UPP";
udd:="_UDD";
{hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};
d1:=ema(abs("ddx.ddx"),60);
d2:=max("ddx.ddx"/d1+7.5,7.5);
d3:=min("ddx.ddx"/d1,10);
fb:=if(s1=0,hs,ls);
tr0:=ifs(p1=1,'明日收盤(pán)價(jià)<'+numtostrn(udd,2)+',出現S點(diǎn)n','若明日收盤(pán)價(jià)>'+numtostrn(upp,2)+',出現B點(diǎn)n');
tr1:=ifs(s1=1,'明日收盤(pán)價(jià)<'+numtostrn(ls,2)+',短線(xiàn)賣(mài)出機會(huì )','若明日收盤(pán)價(jià)>'+numtostrn(hs,2)+'短線(xiàn)買(mǎi)入機會(huì )');
tr2:=ifs(p1=1,ifs(cross(p1,0),'B點(diǎn)','持股'),ifs(cross(1,p1),'S點(diǎn)','持幣'));
tr3:=ifs(s1=0,'向下,','向上,');
tr4:='3.能量級別:'+numtostrn(d3,1)+'級';
bs:=''+datestr(date)+'買(mǎi)賣(mài)點(diǎn)決策系統提示n'+'1.BS點(diǎn):'+tr2+','+tr0+'2.短線(xiàn):'+tr3+tr1+'n'+tr4;
drawflagtext(1,fb,bs);
STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color5454ff;
STICKLINE(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;
STICKLINE(p1=1 and c>=o and o<>0,c,c,7.5,0),color5454ff;
STICKLINE(p1=1 and c>=o and o<>0,o,o,7.5,0),color5454ff;
STICKLINE(p1=1 and c>=o and o<>0,o,c,7.5,1),color5454ff;
STICKLINE(p1=1 and c<=o,o,c,7.5,1),color5454ff;
STICKLINE(p1=1 and c<=o,l,c,0.5,1),color5454ff;
STICKLINE(p1=1 and c<=o,h,o,0.5,1),color5454ff;
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,1),colorffff54;
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,1),colorffff54;
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,1),colorffff54;
drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;
drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;
drawbmp(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;
drawbmp(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;
{均線(xiàn)}
MA5:MA(CLOSE,5);
MA13:MA(CLOSE,13);
MA21:MA(CLOSE,21);
MA34:MA(CLOSE,34);
MA62:MA(CLOSE,62);
MA120:MA(CLOSE,120);
{支撐壓力線(xiàn)}
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
壓力線(xiàn):REF(C,BARSLAST(HD)),COLORRED{紅色},POINTDOT;
支撐線(xiàn):REF(C,BARSLAST(LD)),COLORYELLOW{黃},POINTDOT;
STICKLINE(C,壓力線(xiàn),壓力線(xiàn),8,0),COLORRED{紅色};
STICKLINE(C,支撐線(xiàn),支撐線(xiàn),8,0),COLORYELLOW{黃};
{短期壓力支撐}
X1:=REF(TY,5)=HHV(TY,2*5+1); Y1:=FILTER(X1,5); Z1:=BACKSET(Y1,5+1); HA:=FILTER(Z1,5);
X2:=REF(TY,5)=LLV(TY,2*5+1); Y2:=FILTER(X2,5); Z2:=BACKSET(Y2,5+1); LA:=FILTER(Z2,5);
短壓力:REF(C,BARSLAST(HA)),colormagenta{品紅},POINTDOT;
短支撐:REF(C,BARSLAST(LA)),colorgreen{綠},POINTDOT;
STICKLINE(C,短壓力,短壓力,8,0),colormagenta{品紅};
STICKLINE(C,短支撐,短支撐,8,0),colorgreen{綠};
{K線(xiàn)圖左上方顯示股票信息文字}
DRAWTEXTREL(1,10,'■所屬板塊:'+BKNAME),COLORRED{紅色};
DRAWTEXTREL(1,60,'■流通盤(pán) :'+CAPITAL/100+'萬(wàn)股'),COLORYELLOW;
DRAWTEXTREL(1,110,'■流通市值:'+DYNAINFO(57)/100000000+'億'),COLORYELLOW;
DRAWTEXTREL(1,160,'■每股收益:'+FINANCE2(3)),COLORYELLOW;
DRAWTEXTREL(1,210,'■每股凈資:'+FINANCE2(4)),COLORYELLOW;
DRAWTEXTREL(1,260,'■主營(yíng)收入:'+FINANCE2(27)),COLORYELLOW;
DRAWTEXTREL(1,310,'■凈利潤 :'+FINANCE2(33)),COLORYELLOW;
DRAWTEXTREL(1,360,'■利潤增長(cháng):'+FINANCE2(10)+'%'),COLORYELLOW;
DRAWTEXTREL(1,410,'■市盈率 :'+DYNAINFO(39)),COLORYELLOW;
聲明:文章帶有聯(lián)系方式已經(jīng)被過(guò)濾,請到相關(guān)網(wǎng)站去查詢(xún)。如帶有聯(lián)系方式,請勿直接聯(lián)系,本站不對真實(shí)性進(jìn)行核驗(如涉及資金、財產(chǎn)等需謹慎),請到相關(guān)網(wǎng)站核實(shí),如有不便,敬請諒解。