以下是通达信短线无敌主图源码

MA5:MA(CLOSE,5),colorwhite,linethick1,layer0;
 MA10:MA(CLOSE,10),coloryellow,layer0;
 MA20:MA(CLOSE,20),colormagenta,layer0;
 MA40:MA(CLOSE,40),colorblue,layer0;
 MA60:MA(CLOSE,60),colorgreen,layer0;
 MA120:MA(CLOSE,120),COLORRED,layer0;

TY:=C;
 A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
 A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
压力:REF(C,BARSLAST(HD)),coloryellow,POINTDOT;
支撑:REF(C,BARSLAST(LD)),COLOR00Ff00,POINTDOT;
 {DRAWtext(cross(MA60,MA120),ma60*0.98,’牛’),coloryellow;
 DRAWtext(cross(MA120,MA60),ma60*0.98,’熊’),coloryellow;}
 {stickline(h>ref(h,1) and l<ref(l,1) and c<ref(c,1),o,c,3.8,0),colorblue;}{穿头破脚大笨熊}
流通:=FINANCE2(37)/10000;总股本:=FINANCE2(35)/10000;
 DRAWTEXTABS(0,25,’流通:’+流通+’亿 ‘),LINETHICK1,coloryellow,layer0;
 {DRAWTEXTABS(0,28,’总股本:’+总股本+’亿 ‘),LINETHICK1,Culor00FF00,layer0;}
 drAWTEXTABS(0,40,’看一浪,等二浪,做三浪,避四浪,驾五浪。 破线回弹跑的快’),LINETHICK1,colorwhite,layer0;
 drAWTEXTABS(0,60,’三阳+分时三浪出 三阴+分时三浪进’),LINETHICK1,coloryellow,layer0;
 DRAWTEXTABS(5,10,STKLABEL+BKNAME),LINETHICK1,Culor0000FF,layer0;

 AA:=CLOSE/REF(C,1)>=1.096;
 STICKLINE(AA,O,C,8,1),COLORYELLOW ;
 {上下时空——–理想论坛一品茶缘编写,大智慧L2版本主图指标}
A:=BARSLAST(DISPSTATUS=1)+1;
 HH:=HHV(H,A);
 LL:=LLV(L,A);
上涨:BARSSINCE(BACKSET(DISPSTATUS=2,BARSLAST(L=LL)+1)),COLOR0000FF,linethick0;
 ↑空间%:(C/REF(L,上涨)-1)*100,COLOR00FFFF,linethick0;
最高%:(HHVALL(HH)/REF(L,上涨)-1)*100,COLORFF00FF,linethick0;
下跌:BARSSINCE(BACKSET(DISPSTATUS=2,BARSLAST(H=HH)+1)),COLOR00FF00,linethick0;
 ↓空间%:(C/REF(H,下跌)-1)*100,COLOR998888,linethick0;
最低%:(LLVALL(LL)/REF(H,下跌)-1)*100,COLORFF0000,linethick0;
 {高:REF(H,下跌),COLOR0000FF,DOTLINE;
低:REF(L,上涨),COLOR00FF00,DOTLINE;
 VERTLINE(上涨=0,4),COLOR0000FF;
 VERTLINE(下跌=0,3),COLOR00FF00;}
 DRAWTEXT(上涨=2,L,’3′),COLOR00FFFF;
 DRAWTEXT(上涨=4,L,’5′),COLOR00FFFF;
 DRAWTEXT(上涨=7,L,’8′),COLOR00FFFF;
 DRAWTEXT(上涨=12,L,’13’),COLOR00FFFF;
 DRAWTEXT(上涨=20,L,’21’),COLOR00FFFF;
 DRAWTEXT(上涨=33,L,’34’),COLOR00FFFF;
 DRAWTEXT(上涨=54,L,’55’),COLOR00FFFF;
 DRAWTEXT(上涨=88,L,’89’),COLOR00FFFF;
 DRAWTEXT(上涨=143,L,’144′),COLOR00FFFF;
 DRAWTEXT(上涨=179,L,’180′),COLOR00FFFF;
 DRAWTEXT(上涨=249,L,’250′),COLOR00FFFF;
 DRAWTEXT(下跌=2,L,’-3′),COLOR00FF00;
 DRAWTEXT(下跌=4,L,’-5′),COLOR00FF00;
 DRAWTEXT(下跌=7,L,’-8′),COLOR00FF00;
 DRAWTEXT(下跌=12,L,’-13′),COLOR00FF00;
 DRAWTEXT(下跌=20,L,’-21′),COLOR00FF00;
 DRAWTEXT(下跌=33,L,’-34′),COLOR00FF00;
 DRAWTEXT(下跌=54,L,’-55′),COLOR00FF00;
 DRAWTEXT(下跌=88,L,’-89′),COLOR00FF00;
 DRAWTEXT(下跌=143,L,’-144′),COLOR00FF00;
 DRAWTEXT(下跌=179,L,’-180′),COLOR00FF00;
 DRAWTEXT(下跌=249,L,’-250′),COLOR00FF00;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。