股票的公式有哪些?通达信MACD多头买入卖出主图指标公式
2016-6-8 11:03:34 股票入门 http://rumen.southmoney.com
股票的公式有哪些?通达信MACD多头买入卖出主图指标公式 附:通达信均线粘合出击副图指标公式 南方财富网小编为您提供
【通达信MACD多头买入卖出主图指标公式】
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">DEA:=EMA(DIFF,9);
MA(C,8),COLORWHITE;
MA(C,21),COLORYELLOW;
多头:STICKLINE(DIFF>DEA,C,O,6,0),COLORRED;
STICKLINE(DIFF>DEA,H,L,0,0),COLORRED;
空头:STICKLINE(DIFF<=DEA,C,O,6,0), ;
STICKLINE(DIFF<=DEA,H,L,0,0), ;
DRAWTEXT(CROSS(DIFF,DEA),L-0.2,'^买入'),COLORWHITE;
DRAWTEXT(CROSS(DEA,DIFF),H+0.2,'^卖出'),COLORGREEN;
附:【通达信均线粘合出击副图指标公式】
{粘合出击指标使用说明:均线粘合盘整期,放量上涨有好戏;粘合之处放量涨,二次拉升快出击!}
N1:=5;N2:=10;N3:=20;MA1:=MA(C,N1);
MA2:=MA(C,N2);
MA3:=MA(C,N3);
MA30:=MA(C,30);
GX:=MAX(MA1,MAX(MA2,MA3));
DX:=MIN(MA1,MIN(MA2,MA3));
QSXS:=DX>MA30 AND MA30>REF(MA30,1);
均线粘合:IF(ABS(GX/DX-1)*100<=3,1,0),COLORFFFFFF,POINTDOT,LINETHICK0;
FL:=V>REF(V,1) OR V>MA(V,5);
SZ:=(CROSS(C,MA(C,3)) OR CROSS(C,MA(C,5))) AND C>=O;
放量上涨:IF(FL AND SZ,1,0),COLOR00FFFF,POINTDOT,LINETHICK0;
果断出击:FILTER(COUNT(均线粘合,2) AND COUNT(放量上涨,2) AND C>O AND QSXS,2)*100,COLOR00FF00;
STICKLINE(均线粘合,0,10,4,0),COLOR00FF00;
STICKLINE(均线粘合,0,-10,4,0),COLORFF00FF;
STICKLINE(放量上涨,0,50,0.1,0),COLOR00FFFF;
MRSJ:=BARSLAST(果断出击);
涨:(C/REF(C,MRSJ)-1)*100*(MRSJ<=20),COLOR8800FF;
ZZ:=MRSJ<20 AND CROSS(H,REF(C,MRSJ)*1.09999);
知足:=ZZ AND COUNT(ZZ,MRSJ)=1;
DB:=MRSJ<20 AND CROSS(H,REF(C,MRSJ)*1.05);
达标:=DB AND COUNT(DB,MRSJ)=1;
STICKLINE(知足,0,50,4,0),COLOR0000FF;
DRAWTEXT(知足,80,'+10%'),COLORFFFFFF;
STICKLINE(达标,0,30,4,0),COLORFFFFFF;
DRAWTEXT(达标,50,'+5%'),COLOR00FFFF;
更多股票公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。