您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:顶底趋势(副图 源码)

顶底趋势(副图 源码)


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

A44: =MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;
长期线:=A44+100,COLOR9900FF;
短期线:B+100,COLORRED;
中期线:=D+100,COLORYELLOW,LINETHICK2;
见顶:=(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线) ;
顶部区域:=(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5
AND 短期线<中期线 AND 短期线<长期线+4;
顶部:=FILTER(顶部区域,4);
底部区域:=(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))
OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ;
STICKLINE( 见顶 OR 顶部,100,105,20,1 ),COLORRED,LINETHICK2;
STICKLINE( 底部区域,0,8,20,0 ),COLORGREEN;

获利盘:=WINNER(C)*100,COLOR00FFFF,LINETHICK1;
HLPMA5:=MA(获利盘,5),COLOR0000FF,LINETHICK2;
短套:EMA(100*(1-WINNER(1.10*C)),1),NODRAW,COLORFFDD00,LINETHICK1;
中套:EMA(100*(1-WINNER(1.2*C)),1),NODRAW,COLORFF0000 ,LINETHICK1;
长套:EMA(100*(1-WINNER(1.5*C)),1),NODRAW,COLOR00FF00,LINETHICK2;
WLT1:=短套>95;
WLT2:=中套>80;
WLT3:=长套>60;
WLT4:=长套>70;
WLT5:=中套>85;
TJ1:=WLT1>REF(WLT1,1) AND WLT2>REF(WLT2,1) AND WLT3>REF(WLT3,1);
BT001:=WLT1 AND WLT2 AND WLT3 AND WLT3>REF(WLT3,1);
BT002:=WLT1 AND WLT2>REF(WLT2,1);
BT003:=WLT1 AND WLT4 AND WLT5;
BT004:=WLT1 AND WLT4 AND WLT5 AND TJ1;
TJ2:=CROSS(90,短套) AND 中套>60 ;
TJ3:=COUNT(短套>85 AND 中套>60 ,10)>7 AND CROSS(80,短套);
TJ4:=FILTER(短套>85 AND 中套>70 AND 长套>40,5);
TJ6:=短套>90 AND 中套>75;

STICKLINE(CURRBARSCOUNT=90,80,90,100,1),COLOR0033FF;
STICKLINE(CURRBARSCOUNT=90,80,90,获利盘,0),COLOR003388;
STICKLINE(CURRBARSCOUNT=90,82,88,获利盘,0),COLOR0033AA;
STICKLINE(CURRBARSCOUNT=90,83.5,86.5,获利盘,0),COLOR0033CC;
STICKLINE(CURRBARSCOUNT=90,84.9,85.1,获利盘,0),COLOR0033FF;
DRAWTEXT(CURRBARSCOUNT=116,87,'获 利 盘度:'),COLOR0033FF;
DRAWNUMBER(CURRBARSCOUNT=108,87,CONST(获利盘)),COLOR0033FF;

STICKLINE(CURRBARSCOUNT=90,20,30,100,1),COLORFFFF00;
STICKLINE(CURRBARSCOUNT=90,20,30,短套,0),COLOR888800;
STICKLINE(CURRBARSCOUNT=90,22,28,短套,0),COLORAAAA00;
STICKLINE(CURRBARSCOUNT=90,23.5,26.5,短套,0),COLORCCCC00;
STICKLINE(CURRBARSCOUNT=90,24.9,25.1,短套,0),COLORFFFF00;
DRAWTEXT(CURRBARSCOUNT=116,30,'短线套牢度:'),COLORFFFF00;
DRAWNUMBER(CURRBARSCOUNT=108,30,CONST(短套)),COLORFFFF00;

STICKLINE(CURRBARSCOUNT=90,40,50,100,1),COLORFF0000;
STICKLINE(CURRBARSCOUNT=90,40,50,中套,0),COLOR880000;
STICKLINE(CURRBARSCOUNT=90,42,48,中套,0),COLORAA0000;
STICKLINE(CURRBARSCOUNT=90,43.5,46.5,中套,0),COLORCC0000;
STICKLINE(CURRBARSCOUNT=90,44.9,45.1,中套,0),COLORFF0000;
DRAWTEXT(CURRBARSCOUNT=116,48,'中线套牢度:'),COLORFF0000;
DRAWNUMBER(CURRBARSCOUNT=108,48,CONST(中套)),COLORFF0000;

STICKLINE(CURRBARSCOUNT=90,60,70,100,1),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=90,60,70,长套,0),COLOR008833;
STICKLINE(CURRBARSCOUNT=90,62,68,长套,0),COLOR00AA33;
STICKLINE(CURRBARSCOUNT=90,63.5,66.5,长套,0),COLOR00CC33;
STICKLINE(CURRBARSCOUNT=90,64.9,65.1,长套,0),COLOR00FF33;
DRAWTEXT(CURRBARSCOUNT=116,67,'长线套牢度:'),COLOR00FF00;
DRAWNUMBER(CURRBARSCOUNT=108,67,CONST(长套)),COLOR00FF00;
M:=14; M1 :=5;
VAR1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR2:=SMA(VAR1,M1,1);
卖线: SMA(VAR2,M1,2),COLORMAGENTA;
VAR3:=(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*100;
VAR4:=SMA(VAR3,M1,1);
VAR5:=SMA(VAR4,M1,1);
空头线:=SMA(VAR5,M1,2),COLORYELLOW;
必卖线: SMA(卖线,M1,2),COLORWHITE;
高压线: 90,DOTLINE,COLOR9966FF;
抄底线: 9,DOTLINE,COLORRED;
关注线:80,DOTLINE,COLOR996699;
弱势线:25,DOTLINE,COLORYELLOW;
分界线:50,DOTLINE,COLORGREEN;
DRAWTEXT(空头线>85 AND CROSS(卖线,必卖线),必卖线*1.15,'进'),COLORRED;
DRAWTEXT(空头线>56 AND 空头线<=76 AND CROSS(卖线,必卖线),卖线,'留意');
DRAWTEXT(空头线<45 AND 卖线>78 AND 必卖线>78 AND CROSS(必卖线,卖线),必卖线,'跑'),COLORGREEN ;
DRAWTEXT(CROSS(空头线,80),空头线,'关注'),COLORRED ;
DRAWTEXT(CROSS(空头线,85),空头线,'重点关注'),COLORWHITE;



[url=http://www.goodgupiao.com/gupiaogongshi/37310.html][B]顶底趋势(副图 源码)[/B][/url]