通达信九天揽月系列套装指标 九天主图九天自用成交量等系列指标套装 源码

九天揽月主图源码如下:

MID:=MA(C,15)*1.005;

VART1:=POW((C-MID),2);

VART2:=MA(VART1,15);

VART3:=SQRT(VART2);

UPPER:=MID+2*VART3;

LOWER:=MID-2*VART3;

启明线:REF(MID,1),COLORFFFFFF,LINETHICK3;

揽月线:REF(UPPER,1),COLOR00FFFF,LINETHICK3;



U:IF(启明线>REF(启明线,1),启明线,DRAWNULL),COLORRED,LINETHICK3;

D:IF(启明线<REF(启明线,1),启明线,DRAWNULL),COLORGREEN,LINETHICK3;

DRAWICON(CLOSE>揽月线,LOW,9);

DRAWICON(REF(C,1)>揽月线 AND CLOSE<揽月线,HIGH,2);


九天成交量副源码如下:



TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));

MTIME:=MOD(FROMOPEN,TOTAL);

CTIME:=IF(MTIME<0.5,TOTAL,MTIME);

VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),DRAWNULL),NODRAW;

STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;

{N天最大量:TOPRANGE(V);}

流通市值Z:(FINANCE(46)*C)/100000000;

流通市值:FINANCE(40)/100000000;

流通股:CAPITAL/1000000;

换手Z:VOL*10000/FINANCE(46),NODRAW;

过半换手:换手Z>=50,COLORRED,NODRAW;

STICKLINE(过半换手,0,VOL*0.85,1,0),COLORRED;

死亡换手:换手Z>=70,COLORGREEN,NODRAW;

STICKLINE(死亡换手,0,VOL*0.9,2,0),COLORGREEN;

最高值:HHV(换手Z,240);

高换手:=(换手Z>=REF(最高值,1));

DRAWTEXT(高换手,VOL,'高换'),COLORWHITE;

VOLUME:VOL,VOLSTICK;

神渔启动:MA(VOLUME,250),DOTLINE,LINETHICK1,COLORWHITE;

多方量:=IF(C>REF(C,1),VOL,0);

阶段最大多方量:REF(HHV(多方量,21),1),COLOR00FFFF,DOTLINE;

成交额:=AMOUNT/10000,NODRAW,COLORRED;

量变:=(VOL/REF(VOL,1)-1)*100,NODRAW;

量昨比:VOL/REF(VOL,1);

量比:=V/REF(MA(V,5),1),COLORWHITE,NODRAW;



五换:SUM(换手Z,5),NODRAW,COLORWHITE;

二十换:SUM(换手Z,20),NODRAW,COLORWHITE;

倍量:=VOL>=REF(VOL,1)*1.9,COLORYELLOW,NODRAW;

DRAWTEXT(倍量,0.5,'倍'),COLORYELLOW;

倍缩:=REF(VOL,1)>=VOL*1.9,COLORMAGENTA,NODRAW;

DRAWTEXT(倍缩,VOL,'缩'),COLORMAGENTA;

百低:=VOL=LLV(VOL,100) AND BARSCOUNT(VOL)>=100,COLORCYAN,NODRAW;

DRAWTEXT(百低,VOL,'百低'),COLORCYAN;

平量:=(RANGE(VOL/REF(VOL,1),0.9,1.1) AND BARSCOUNT(VOL)>=2),COLORWHITE,NODRAW;

DRAWTEXT(平量,VOL,'平'),COLORWHITE;

天量:=VOL=HHV(VOL,120), COLORRED;

DRAWTEXT(天量,VOL,'天量'),COLORGREEN;

V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)>=100;

地量群:=COUNT(V100,5)>=3;

NI:=0.05*CONST(HHV(VOL,240));

DRAWTEXT(FILTER(地量群,4),V+2*NI,'地量群'),COLORGRAY;

倍数:=VOL/REF(VOL,1),COLORYELLOW,NODRAW;

百高量:=VOL>=HHV(VOL,100),COLORRED,NODRAW;

DRAWTEXT(百高量,VOL,'百'),COLORRED;

{梯量:=BARSLASTCOUNT(AMO>=REF(AMO,1))>=2;

DRAWTEXT(梯量,总量,'梯'),COLORLIGRAY;}

{假阴柱}

H_L:=0.1*CONST(HHV(VOL,250));

长阴短柱:=C/REF(C,1)<=0.96 AND VOL<HHV(VOL,30)/1.9;

DRAWTEXT(长阴短柱,VOL+1.6*H_L,'!'),COLORLICYAN;

缩量三一:=VOL/REF(VOL,1)>0.5 AND VOL/REF(VOL,1)<0.67;

DRAWTEXT(缩量三一,VOL,'3'),COLORLIGRAY;

缩量一一:=VOL/REF(VOL,1)<=0.32;

DRAWTEXT(缩量三一,VOL,'1'),COLORWHITE;





V1:=VOL*0.9;

V2:=VOL*0.85;

TDXSTEP134:STICKLINE(倍量,0,V1,1,0),COLORYELLOW;

TDXSTEP139:STICKLINE(倍缩,0,VOL*0.45,1,0),COLORMAGENTA;

TDXSTEP135:STICKLINE(百低,0,V1,1,0),COLORCYAN;

TDXSTEP137:STICKLINE(平量,0,V2,1,0),COLORWHITE;

TDXSTEP138:STICKLINE(长阴短柱,0,V2,1,0),COLORLICYAN;

SAT:=AMOUNT/HHV(AMOUNT,20)*HHV(CLOSE,20)/CLOSE;

饱和%:IF(SAT>1,1,SAT)*100,NODRAW,COLOR00AAFF;

STICKLINE(HSCOL=HHV(HSCOL,20)AND C>=O AND HSCOL>5 ,0,HSCOL/3,3.5,0), COLORYELLOW;



净资收益率:=(FINANCE(33)/FINANCE(34)*100);

主营利润率:=(FINANCE(23)/FINANCE(20)*100);

主营业增长率:=FINANCE(44);

每股净资产:=CONST(FINANCE(34));

每股收益:=CONST(FINANCE(38));

净利润增长率:=FINANCE(43);

市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));

现金负债比:=(FINANCE(25)/FINANCE(15));

每股未分配:=CONST(FINANCE(32));

每股公积金:=CONST(FINANCE(18));

SY01:=净资收益率>3;

SY02:=净资收益率>0.01 AND 净资收益率<=3;

SY03:=主营利润率>2;

SY04:=主营利润率>0;

SY05:=主营业增长率>1;

SY06:=主营业增长率>0;

SY07:=净利润增长率>2;

SY08:=净利润增长率>0.2;

SY09:=每股收益>0.01;

SY10:= 每股收益>0.001;

SY11:=每股净资产>2;

SY12:=每股净资产>0.01;

SY13:=每股未分配>0.5;

SY14:=每股未分配>0.001;

SY15:=每股公积金>0.5;

SY16:=每股公积金>0.002;

SY17:=每股未分配>=2 AND 每股公积金>=2;

SY18:=每股未分配<2 OR 每股公积金<2;

优秀:=SY01 AND SY03 AND SY05 AND SY07 AND SY09 AND SY11 AND SY13 AND SY15;

较好:=SY02 AND SY04 AND SY06 AND SY08 AND SY10 AND SY12 AND SY14 AND SY16;

一般:=NOT(优秀) AND NOT(较好);

DRAWTEXT_FIX(优秀 AND 较好=0,0.01,0.05,0,'综合评估基本面:优秀!'),COLORRED;

DRAWTEXT_FIX(较好,0.01,0.01,0,'综合评估基本面:较好!'),COLORWHITE;

DRAWTEXT_FIX(一般,0.01,0.01,0,'综合评估基本面:一般!'),COLORWHITE;

DRAWTEXT_FIX(SY17,0.01,0.18,0,'是否具备高送转潜力:是!'),COLORWHITE;

DRAWTEXT_FIX(SY18,0.01,0.18,0,'是否具备高送转潜力:否!'),COLORWHITE;

DRAWTEXT_FIX(FINANCE(43)>0,0.01,0.35,0,STRCAT('利润同比%:',VAR2STR(FINANCE(43),2))),COLORWHITE;

DRAWTEXT_FIX(FINANCE(43)<0,0.01,0.35,0,STRCAT('利润同比%:',VAR2STR(FINANCE(43),2))),COLORWHITE;



九天筹码集中源码如下:


X_1:=COST(95);

X_2:=COST(5);

筹码集中度:(X_1-X_2)*100/(X_1+X_2),COLOR98FB98;

N天:HHV(筹码集中度,21),DOTLINE,COLORFFFFF0;

STICKLINE(CLOSE>=REF(CLOSE,1),筹码集中度*0.95,筹码集中度,3,0),COLOR009AEE;

STICKLINE(CLOSE<REF(CLOSE,1),N天,N天*0.95,3,0),COLOR9AFF9A;

DRAWICON(筹码集中度>REF(筹码集中度,1),筹码集中度*0.86,30);


九天揽月副图源码如下:




DIFF:=EMA(CLOSE,9)-EMA(CLOSE,26);

DEAA:=EMA(DIFF,12);

MACDD:=(DIFF-DEAA)*2;

ZT:=IF(CODELIKE('68') OR CODELIKE('30'),ZTPRICE(REF(C,1),0.2),IF(CODELIKE('8'),ZTPRICE(REF(C,1),0.3),IF((NAMELIKE('ST') OR NAMELIKE('*')),ZTPRICE(REF(C,1),0.05),ZTPRICE(REF(C,1),0.1))));

{STICKLINE(C=ZT,O,C,0.8,0),COLORYELLOW;}

TS:=BARSCOUNT(CLOSE)>=10;

MM:=EMA((3*CLOSE+HIGH+LOW+OPEN)/6,20),COLORBLUE,LINETHICK2;

FL:=HHV(MM,5),LINETHICK2,COLORGREEN;

FS:=MM-(FL-MM),LINETHICK2,COLORRED;

{DRAWICON(FL=FS AND REF(FL,1)>REF(FS,1) AND TS AND C>=O AND V=HHV(V,6),L,1);}

{DRAWICON(FL=FS AND REF(FL,1)>REF(FS,1) AND TS AND C>=O AND V=HHV(V,6),H*1.03,25);}

{DRAWICON(FL>FS AND REF(FL,1)=REF(FS,1) AND TS,H*1.008,2),NODRAW;}

三线:=FL=FS AND REF(FL,1)>REF(FS,1);

XA:=FILTER(FL=FS AND BARSLAST(三线) <=4 AND TS AND C>=O AND V>=REF(V,1)*2 AND C/REF(C,1)>1.03 ,5);



DRAWTEXT(XA,50,'---九天揽月'),COLORMAGENTA;



STICKLINE(XA,40,20,3.5,0),COLORA8A8A8;



STICKLINE(XA,50,49,1.7,0),COLORA8A8A8;



STICKLINE(XA,49,48,1.9,0),COLORA8A8A8;



STICKLINE(XA,48,47,2.1,0),COLORA8A8A8;



STICKLINE(XA,47,46,2.3,0),COLORA8A8A8;



STICKLINE(XA,46,45,2.5,0),COLORA8A8A8;



STICKLINE(XA,45,44,2.7,0),COLORA8A8A8;



STICKLINE(XA,44,43,2.9,0),COLORA8A8A8;



STICKLINE(XA,43,42,3.1,0),COLORA8A8A8;



STICKLINE(XA,42,41,3.3,0),COLORA8A8A8;



STICKLINE(XA,41,40,3.5,0),COLORA8A8A8;



STICKLINE(XA,101,96,0.1,0),COLORWHITE;



STICKLINE(XA,96,92,0.3,0),COLORWHITE;



STICKLINE(XA,92,88,0.6,0),COLORWHITE;



STICKLINE(XA,88,84,0.9,0),COLORWHITE;



STICKLINE(XA,84,80,1.2,0),COLORWHITE;



STICKLINE(XA,80,50,1.4,0),COLORWHITE;



STICKLINE(XA,74,70,0.6,0),COLORRED;



STICKLINE(XA,65,64,1.5,0),COLORBLUE;



STICKLINE(XA,51,49,1.5,0),COLORBLUE;



STICKLINE(XA,49,25,1.5,0),COLORWHITE;



STICKLINE(XA,25,20,1.3,0),COLORRED;



STICKLINE(XA,20,13,1,0),COLORRED;



STICKLINE(XA,13,7,0.7,0),COLORRED;



STICKLINE(XA,7,1,0.3,0),COLORRED;



STICKLINE(XA,1,(-7),0.1,0),COLORRED;



STICKLINE(XA,24.799999,21.799999,1,0),COLORYELLOW;



STICKLINE(XA,21.799999,18.799999,0.5,0),COLORYELLOW;



STICKLINE(XA,18.799999,15.8,0.1,0),COLORYELLOW;



STICKLINE(XA,60,55,0.5,0),COLORRED;






未来函数检测结果如下:
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图