通达信顺势而为主图指标公式
2020/3/17 18:01:33
VAR1:=(C+H+O+L)/4;
卖出:=MA(VAR1,20)*(1+80/1000);
买入:=MA(VAR1,32)*(1-100/1000);
标准:=买入+(卖出-买入)*2/3;
赢:=MA(C,1);
在:=SMA(SMA(SMA(赢,2,1),2,1),2,1);
龙:=MA(在,3);
赢在龙头:=(L+H+C*4)/6;
趋势轨①:EMA(赢在龙头,12),NODRAW;
趋势轨②:EMA(赢在龙头,19),NODRAW;
趋势轨③:IF(L>在,在,龙),NODRAW;
赢在:=(趋势轨①-REF(趋势轨①,1))/REF(趋势轨①,1)*100;
龙头:=(趋势轨②-REF(趋势轨②,1))/REF(趋势轨②,1)*100;
G:=BARSLAST(CROSS(赢在,0))+1;
止损线A:REF(L,G),NODRAW;
止损线B:REF(止损线A,BARSLAST(止损线A>REF(止损线A,1) OR 止损线A<REF(止损线A,1))+1),NODRAW;
趋势①拐点:=CROSS(赢在,0);
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
机构意愿:=(主力-均量);
游资意愿:=(大户-均量);
大户意愿:=(中户-均量);
散户意愿:=(散户-均量);
顺大势:=趋势①拐点 AND NOT(散户意愿<0 AND 大户意愿<0) AND (机构意愿>0 OR 机构意愿<0) AND 止损线A>REF(止损线A,1) AND H<标准,NODRAW;
{阴线-兰色}{阳线-红色}
STICKLINE(C>=O,C,O,3,0),COLOR0000AA;
STICKLINE(C>=O,C,O,2.5,0),COLOR0000BB ;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000CC ;
STICKLINE(C>=O,C,O,1,0),COLOR0000EE;
STICKLINE(C>=O,H,L,0,0),COLOR0000FF;
STICKLINE(C<=O,C,O,3,0),COLOR7B7B00;
STICKLINE(C<=O,C,O,2.5,0),COLOR909000;
STICKLINE(C<=O,C,O,1.5,0),COLORA8A800;
STICKLINE(C<=O,C,O,1,0),COLORCECE00;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
{www.kanguba.com 看股吧_股票通达信指标公式}
DRAWBAND(在,RGB(249,245,246),龙,RGB(0,224,224));
IF(龙头>=0,趋势轨②,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(龙头<0,趋势轨②,DRAWNULL),COLORBLUE,LINETHICK2;
IF(赢在>=0,趋势轨①,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(赢在<0,趋势轨①,DRAWNULL),COLORGREEN,LINETHICK2;
IF(赢在>0,REF(L,G),DRAWNULL),COLORRED,POINTDOT,LINETHICK4;
IF(赢在<0,REF(L,G),DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;
DRAWICON(顺大势,L*0.98,5);
DRAWTEXT(顺大势,L*0.98,' ←顺势而为'),COLORCCCCCC;
看 股吧公式 www.kan guba.com
其它股票公式列表