您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:通达信股海乾坤主图指标 源码

通达信股海乾坤主图指标 源码


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

{K线上下轨}
上轨:EMA(EMA(EMA(HHV(H,5),4),3),2)*1.03,COLORFFCC00,LINETHICK2;
下轨:EMA(EMA(EMA(LLV(L,5),4),3),2)*0.97,COLORLIMAGENTA,LINETHICK2;
{乾坤参数}
趋势线:EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
工作线:=EMA(CLOSE,3);
乾坤参数:=趋势线-工作线;
STICKLINE(乾坤参数>=0,工作线,趋势线,0,0),COLORCYAN;
STICKLINE(乾坤参数<0,工作线,趋势线,0,0),COLORMAGENTA;
{立体K线}
STICKLINE(C>O,H,L,0,0),COLORFFBBFF;
STICKLINE(C>O,O,C,3,0),COLOR0000AA;
STICKLINE(C>O,O,C,2,0),COLOR0000DD;
STICKLINE(C>O,O,C,1,0),COLOR0055FF;
STICKLINE(C>O,O,C,0.1,0),COLOR0088FF;
STICKLINE(C<O,H,L,0,0),COLOR00FF00;
STICKLINE(C<O,O,C,3,0),COLOR888800;
STICKLINE(C<O,O,C,2,0),COLORFFAA00;
STICKLINE(C<O,O,C,1,0),COLORFFCC00;
STICKLINE(C<O,O,C,0.1,0),COLORFFFF00;
STICKLINE(C<O,O,C,0,0),COLORFFFF58;
STICKLINE(C=REF(C,1),H,L,0,0),COLORFFFFFF;
STICKLINE(C=REF(C,1),O,C,3,0),COLOR888888;
STICKLINE(C=REF(C,1),O,C,2,0),COLORAAAAAA;
STICKLINE(C=REF(C,1),O,C,1,0),COLORCCCCCC;
STICKLINE(C=REF(C,1),O,C,0,0),COLORFFFFFF;
{K线类别}
VAR9Q:=C=HHV(C,4)AND (REF(C,1)>=REF(C,2)OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4)AND CLOSE>=REF(C,2)OR REF(C,2)=HHV(C,4)
AND REF(C,3)=LLV(C,4)AND C>=REF(C,1)OR REF(C,3)=HHV(C,4)AND C>=REF(C,1)
AND C>=REF(C,2);
红持:=VAR9Q;
STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR000088;
STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR0000AA;
STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000BB;
STICKLINE(VAR9Q,C,(O+C)/2,0.1,0),COLOR0000FF;
VARAQ:=C=HHV(C,4)AND REF(C,1)=LLV(C,4);
粉变:=VARAQ;
STICKLINE(VARAQ,C,(O+C)/2,3,0),COLOR981198;
STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORCC55CC;
STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFF99FF;
STICKLINE(VARAQ,C,(O+C)/2,0.1,0),COLORFFDDFF;
VARBQ:=C=LLV(C,4)AND(REF(C,1)<REF(C,2)OR REF(C,1)<REF(C,3))
OR REF(C,1)=LLV(C,4)AND C<REF(C,2)OR REF(C,2)=LLV(C,4)
AND REF(C,1)!=HHV(C,4)AND C<REF(C,1)OR REF(C,3)=LLV(C,4)AND C<REF(C,1)
AND C<REF(C,2);
灰跌:=VARBQ;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,3,0),COLOR888888;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,2,0),COLORAAAAAA;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,1,0),COLORCCCCCC;
STICKLINE(VARBQ AND C>O,O,C-(C-O)/2,0.1,0),COLORFFFFFF;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,3,0),COLOR888888;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,2,0),COLORAAAAAA;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,1,0),COLORCCCCCC;
STICKLINE(VARBQ AND C<O,C,O-(O-C)/2,0.1,0),COLORFFFFFF;
VARCQ:=REF(C,1)=LLV(C,4)AND C>=REF(C,2)OR REF(C,2)=LLV(C,4)
AND REF(C,1)<=REF(C,3)AND REF(C,2)<REF(C,4)AND C>=REF(C,1); 绿买:=VARCQ;
STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR008800;
STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR00AA00;
STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR00CC00;
STICKLINE(VARCQ,O,(O+C)/2,0.1,0),COLOR00FF00;
VARDQ:=REF(C,1)=HHV(C,4)AND C<REF(C,2)OR(REF(C,2)=HHV(C,4)
AND REF(C,1)>REF(C,3)OR REF(C,3)=HHV(C,4)AND REF(C,1)>REF(C,2))
AND REF(C,2)>=REF(C,4)AND C<REF(C,1);
蓝抛:=VARDQ;
STICKLINE(VARDQ,O,(O+C)/2,3,0),COLORFF5500;
STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFF8800;
STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFFAA00;
STICKLINE(VARDQ,O,(O+C)/2,0.1,0),COLORFFCC00;
{操盘线}
TF:IF(C<0,0,MA(IF(C<0,0,MA(CLOSE,3)),1)),LINETHICK2,COLORRED;
TC:IF(C<0,0,MA(IF(C<0,0,MA(CLOSE,3)),3)),LINETHICK2,COLORGREEN;


 

通达信股海乾坤主图指标 源码


[url=http://www.goodgupiao.com/gupiaogongshi/53268.html][B]通达信股海乾坤主图指标 源码[/B][/url]