通达信海底起柱公式副图 源码

A:=EMA((UPNDAY(C,2)+UPNDAY(C,3))-(DOWNNDAY(C,1)+DOWNNDAY(C,2)),6)+1;

DX:=-0.1;

CX:=2;

DRAWBAND(A,RGB(0,0,0),DX,RGB(0,355,250));

 

VAR1:="DMI.PDI"(12,6);

VAR2:="DMI.MDI"(12,6);

VAR3:=VAR1>65 AND VAR1>REF(VAR1,1);

VAR4:=LLV(VAR1,0);

VAR5:=BARSLAST(VAR4=VAR1);

VAR6:=(0-REF(VAR2,4))/(VAR4-REF(VAR2,VAR5))>2;

VAR7:=VAR1>REF(VAR1,1);

VAR8:=VOL>2*MA(VOL,30);

VAR9:="DMI.ADX"(12,6);

VARA:="DMI.ADXR"(12,6);

VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;

VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);

VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));

VARE:=0-"MACD.DIF"(7,21,3);

VARF:=TROUGHBARS(3,15,1)<4;

VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);

VAR11:=IF(VARF=1,50,0);

VAR12:=CROSS(VAR2,VAR1) AND CROSS(VARA,VAR9);

VAR13:=CROSS(VAR2,VAR1) AND CROSS(VAR9,VARA);

VAR14:=VARB AND VARC AND VARD AND VAR10 AND VAR6 AND VAR7 AND VAR8*50;

VAR15:=BARSLAST(CROSS(VAR2,VAR1)=1);

VAR16:=BARSLAST(CROSS(VAR1,VAR2)=1);

VAR17:=HHV(VAR1,VAR16);

VAR18:=BARSLAST(VAR1=VAR17);

多空:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;

 

 

 

STICKLINE(FILTER(VARF=1,5),1.2,-0.1,4,0),COLOR550055;

STICKLINE(FILTER(VARF=1,5),1.2,-0.1,3,0),COLOR880088;

STICKLINE(FILTER(VARF=1,5),1.2,-0.1,2,0),COLORAA00AA;

STICKLINE(FILTER(VARF=1,5),1.2,-0.1,1,0),COLORCC00CC;

STICKLINE(FILTER(VARF=1,5),1.2,-0.1,0.5,0),COLOREE00EE;

STICKLINE(FILTER(VARF=1,5) AND 多空<-10,1.2,0.6,4,0),COLOR0066BB;

STICKLINE(FILTER(VARF=1,5) AND 多空<-10,1.2,0.6,3,0),COLOR0099CC;

STICKLINE(FILTER(VARF=1,5) AND 多空<-10,1.2,0.6,2,0),COLOR00CCEE;

STICKLINE(FILTER(VARF=1,5) AND 多空<-10,1.2,0.6,1,0),COLOR00FFFF;

STICKLINE(FILTER(VARF=1,5) AND 多空<-10,1.2,0.6,0.5,0),COLOR00FFFF;

 

VAR19:=VAR3 OR VAR12 OR VAR13*100;

VAR1A:=VAR13*100;

DRAWICON(FILTER(VARF=1,3),1.3,25);

DRAWTEXT(FILTER(VARF=1,3),1.9,'海底起柱'),COLORYELLOW;

DRAWTEXT(FILTER(VARF=1,3),1.4,'明天起航'),COLORYELLOW;

 

 

 

ATM:A,COLORWHITE,LINETHICK2;

 

顶线:2,COLORRED,LINETHICK2;

中线:1,COLORYELLOW;

底线:-0.1,COLORLIGREEN;




未来函数检测结果如下:
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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