通达信简单的主图源码

 2023-12-07 21:57:36    通达信指标网  

M60:=MA(CLOSE,60);   

M120:=MA(CLOSE,120);   

AAA:=CONST(HHV(H,120))+0.2;   

BBB:=CONST(LLV(L,120))-0.2;   

H1:STICKLINE(C>0,M60,AAA,5,0),COLOR300097;   

H3:STICKLINE(C>0,M60,BBB,5,0),COLOR0E6E00;   

DRAWBAND(M60,RGB(155,50,150),M120,RGB(50,150,150));    

DRAWKLINE(H,O,L,C);   

MA5:MA(C,5),COLORWHITE;   

MA10:MA(CLOSE,10),COLOR9370DB;   

MA20:MA(C,20),COLORYELLOW,LINETHICK1;   

跌:IF(MA(CLOSE,20)<=REF(MA(CLOSE,20),1),MA(CLOSE,20),DRAWNULL),COLORFF9933,LINETHICK1;   

MA60:MA(CLOSE,60),COLORGREEN,LINETHICK2;   

下跌:IF(MA(CLOSE,60)<=REF(MA(CLOSE,60),1),MA(CLOSE,60),DRAWNULL),COLORBLUE,LINETHICK2;   

MA120:MA(CLOSE,120),COLORBROWN,LINETHICK1;   

V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);   

STICKLINE(V2>=1,O,C,2,0),COLORYELLOW;   

MA13:=MA(CLOSE,13);   

X1:=(C+L+H)/3;   

BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;   

EMA8:=EMA(C,8);   

A1:=MIN(O,C);   

B1:=ABS(O-C);   

T1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);   

STICKLINE(T1,A1,A1+B1/4,2,0),COLOR007575;   

STICKLINE(T1,A1+B1/4,A1+B1/2,2,0),COLORFF0000;   

STICKLINE(T1,A1+B1/2,A1+B1*3/4,2,0),COLOR007575;   

STICKLINE(T1,A1+B1*3/4,A1+B1,2,0),COLORFF0000;   

SY:=STICKLINE(REFDATE(C,DATE),REFDATE(C,DATE),REFDATE(C,DATE),6,1),COLORWHITE,POINTDOT;{现价}; 

  •  标签:  

原文链接:https://www.tdxzb.com/?id=2013

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服