您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:多空波段 副图 源码 贴图)

多空波段 副图 源码 贴图)


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2012-03-24 09:48:00
公式简介:

{★★多空波段★★}
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
DRAWBAND(多方,RGB(111,0,0),突破,RGB(238,204,0));
N:=40;
MA1:=WMA(HIGH,N);
MA2:=WMA(LOW,N);
STICKLINE(CLOSE>MA1 AND OPEN>MA1,MA1,MA2,1,-1),COLORCYAN;
STICKLINE(CLOSE<MA2 AND OPEN<MA2,MA1,MA2,1,-1),COLORFF0000;
IF(CLOSE>=MA2,MA1,DRAWNULL),COLORCYAN;
IF(CLOSE<MA2,MA1,DRAWNULL),COLORFF0000;
IF(CLOSE>=MA2,MA2,DRAWNULL),LINETHICK1,COLORFFFFFF;
IF(CLOSE<MA2,MA2,DRAWNULL),LINETHICK1,COLORFF0000;
IF(CLOSE>=MA2,MA1,DRAWNULL),COLORCYAN;
IF(CLOSE<MA2,MA1,DRAWNULL),COLORFF0000;
IF(CLOSE>=MA2,MA2,DRAWNULL),LINETHICK1,COLORCYAN;
IF(CLOSE<MA2,MA2,DRAWNULL),LINETHICK1,COLORFF0000;
STICKLINE(CLOSE<MA2,LOW,HIGH,0,0),COLORGREEN;
STICKLINE(CLOSE<MA2,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(CLOSE>=MA2,LOW,HIGH,0,0),COLORRED;
STICKLINE(CLOSE>=MA2,OPEN,CLOSE,3,0),COLORRED;
趋势跌:IF(CLOSE<MA2,WMA(OPEN,11),DRAWNULL),LINETHICK2,COLORFFFF00;
趋势涨:IF(CLOSE>=MA2,WMA(OPEN,11),DRAWNULL),LINETHICK2,COLORFF00FF;
{收盘划横线}
β0:=(H-L)/2+L;
α:=β0,LINETHICK0;
β:=REF(β0,1),LINETHICK0,COLORGREEN;
γ:=REF(β0,2),LINETHICK0,COLORMAGENTA;
高位:PLOYLINE(1,CONST(HHV(H,20))),COLOR880088,LINETHICK1,DOTLINE;
低位:PLOYLINE(1,CONST(LLV(L,20))),COLOR888800,LINETHICK1,DOTLINE;
止赢止损位:PLOYLINE(1,CONST(HHV(H,20)*0.95)),COLOR888888,LINETHICK2;
收盘划横线&持股:IF(CONST(α>β) AND DYNAINFO(7)>0,DYNAINFO(7),DRAWNULL),COLORRED,LINETHICK1;
持币:IF(CONST(α<=β)AND DYNAINFO(7)>0 ,DYNAINFO(7),DRAWNULL),COLORGREEN,LINETHICK1;


 


[url=http://www.goodgupiao.com/gupiaogongshi/18530.html][B]多空波段 副图 源码 贴图)[/B][/url]