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

波段牛熊 (源码 副图 贴图)


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

直接上源码:

{INPUT:牛熊线(18,0,888),心理线(15,0,888);}

牛熊线:=18;心理线:=15;
RSV:=(((CLOSE - LLV(LOW,(牛熊线 + 3))) / (HHV(HIGH,(牛熊线 + 3)) - LLV(LOW,19))) * 100);
FASTK:=(((SMA(RSV,8,1) - 50) * 1.4) + 50);
D:=SMA(FASTK,8,1);
SSS:=SMA(D,8,1);
IF(D<=REF(D,1),D,DRAWNULL),COLOR005C00,LINETHICK8;
IF(D<=REF(D,1),D+1.5,DRAWNULL),COLOR007D00,LINETHICK8;
IF((D <= REF(D,1)),D+3,DRAWNULL)COLOR00B400,LINETHICK8;
IF((D <= REF(D,1)),D+4.5,DRAWNULL),COLOR00DE00,LINETHICK8;
IF((D <= REF(D,1)),D+6,DRAWNULL),COLOR00FF00,LINETHICK8;
IF(SSS>= REF(SSS,1),SSS,DRAWNULL),COLOR000082,LINETHICK8;
IF(SSS>= REF(SSS,1),SSS+1.5,DRAWNULL),COLOR00009D,LINETHICK8;
IF(SSS>= REF(SSS,1),SSS+3,DRAWNULL),COLOR0000B4,LINETHICK8;
IF(SSS>= REF(SSS,1),SSS+4.5,DRAWNULL),COLOR0000D6,LINETHICK8;
IF(SSS>= REF(SSS,1),SSS+6,DRAWNULL),COLOR0000FF,LINETHICK8;
B:=SSS;
W:=CROSS(BACKSET(ISLASTBAR,5),0.5);
VAR19:=BARSLAST(W);
DRAWLINE(W=1,B,ISLASTBAR AND B>REF(B,VAR19),B,1),COLOR0000FF,LINETHICK1;
DRAWLINE(W=1,B,ISLASTBAR AND B<REF(B,VAR19),B,1),COLOR00FF00,LINETHICK1;
(COUNT(CLOSE>REF(CLOSE,1),心理线)/心理线)*100,COLORFF00FF,LINETHICK3;

{DRAWTEXT((SYSPARAM(1) = BARPOS),0,'☆'),ALIGN5,COLORFFFF;};
 


 


 


[url=http://www.goodgupiao.com/gupiaogongshi/14874.html][B]波段牛熊 (源码 副图 贴图)[/B][/url]