通达信高手晋级 大周期百分比主图源码

2016-08-23 09:33:00来源:本站整理浏览:226

MA5:MA(C,5),COLORBLUE;
MA10:MA(C,10),COLORGREEN;
MA20:MA(C,20),COLORCYAN;
MA30:=MA(C,30),COLORRED;
MA40:=MA(C,40),COLORMAGENTA;
MA60:MA(C,60),COLORLIGRAY;
HHVBAR:=HHV(H,BARSCOUNT(H));
HHVBAR2:=HHV(H,3);

LL0:=IF(PERIOD=14 OR PERIOD=11 OR PERIOD=10 OR PERIOD=18 OR PERIOD=17 OR PERIOD=16 OR PERIOD=15 OR PERIOD=7,1,0);
LL1:=IF(ISLASTBAR AND LL0=1,1,0);
DRAWNUMBER_FIX(LL1=1,0.85,1-C/HHVBAR,1,C),COLORRED;

DRAWNUMBER_FIX(LL1=1,0.79,0.00,1,HHVBAR),COLORRED;
DRAWTEXT_FIX(LL1=1,0.75,0.00,1,'上市以来最高点');

DRAWNUMBER_FIX(LL1=1,0.79,0.10,1,HHVBAR-HHVBAR*0.1),COLORLIGRAY;
DRAWNUMBER_FIX(LL1=1,0.79,0.20,1,HHVBAR-HHVBAR*0.2),COLORLIGRAY;
DRAWNUMBER_FIX(LL1=1,0.79,0.30,1,HHVBAR-HHVBAR*0.3),COLORCYAN;
DRAWTEXT_FIX(LL1=1,0.75,0.30,1,'(30%)');
DRAWNUMBER_FIX(LL1=1,0.79,0.40,1,HHVBAR-HHVBAR*0.4),COLORLIGRAY;
DRAWNUMBER_FIX(LL1=1,0.79,0.50,1,HHVBAR-HHVBAR*0.5),COLORRED;
DRAWTEXT_FIX(LL1=1,0.75,0.50,1,'(50%)');
DRAWNUMBER_FIX(LL1=1,0.79,0.60,1,HHVBAR-HHVBAR*0.6),COLORLIGRAY;
DRAWNUMBER_FIX(LL1=1,0.79,0.70,1,HHVBAR-HHVBAR*0.7),COLORGREEN;
DRAWTEXT_FIX(LL1=1,0.75,0.70,1,'(70%)');
DRAWNUMBER_FIX(LL1=1,0.79,0.80,1,HHVBAR-HHVBAR*0.8),COLORLIGRAY;
DRAWNUMBER_FIX(LL1=1,0.79,0.90,1,HHVBAR-HHVBAR*0.9),COLORBLUE;
DRAWNUMBER_FIX(LL1=1,0.79,0.99,1,HHVBAR-HHVBAR*0.99),COLORRED;

DRAWNUMBER_FIX(LL1=1,0.95,1-C/HHVBAR2,1,C),COLORRED;
DRAWNUMBER_FIX(LL1=1,0.90,0.00,1,HHVBAR2),COLORRED;
DRAWTEXT_FIX(LL1=1,0.86,0.00,1,'近三周期高点');
DRAWNUMBER_FIX(LL1=1,0.90,0.10,1,HHVBAR2-HHVBAR2*0.1),COLORLIGRAY;
DRAWNUMBER_FIX(LL1=1,0.90,0.20,1,HHVBAR2-HHVBAR2*0.2),COLORLIGRAY;
DRAWNUMBER_FIX(LL1=1,0.90,0.30,1,HHVBAR2-HHVBAR2*0.3),COLORCYAN;
DRAWNUMBER_FIX(LL1=1,0.90,0.40,1,HHVBAR2-HHVBAR2*0.4),COLORLIGRAY;
DRAWNUMBER_FIX(LL1=1,0.90,0.50,1,HHVBAR2-HHVBAR2*0.5),COLORRED;

DRAWNUMBER_FIX(LL1=1,0.90,0.60,1,HHVBAR2-HHVBAR2*0.6),COLORLIGRAY;
DRAWNUMBER_FIX(LL1=1,0.90,0.70,1,HHVBAR2-HHVBAR2*0.7),COLORGREEN;
DRAWNUMBER_FIX(LL1=1,0.90,0.80,1,HHVBAR2-HHVBAR2*0.8),COLORLIGRAY;
DRAWNUMBER_FIX(LL1=1,0.90,0.90,1,HHVBAR2-HHVBAR2*0.9),COLORBLUE;
DRAWNUMBER_FIX(LL1=1,0.90,0.99,1,HHVBAR2-HHVBAR2*0.99),COLORRED;

DRAWNUMBER_FIX(LL1=1,0.99,1-O/HHVBAR2,1,O),COLORRED;
DRAWNUMBER_FIX(LL1=1,0.99,1-H/HHVBAR2,1,1-O/H),COLORRED;
DRAWNUMBER_FIX(LL1=1,0.99,1-L/HHVBAR2,1,1-L/O),COLORRED;

LL2:=IF(ISLASTBAR AND PERIOD=5,1,0);
QC:IF(LL2=1, REF(CLOSE,1),DRAWNULL),COLORRED,LINETHICK4;

ZHANG5%:IF( LL2=1,QC+QC*0.05,DRAWNULL),COLORBLUE,LINETHICK2;

ZHANG10%:IF( LL2=1,QC+QC*0.1,DRAWNULL),COLORBLUE,LINETHICK4;

DIE5%:IF( LL2=1,QC-QC*0.05,DRAWNULL),COLORBLUE,LINETHICK2;

DIE10%:IF( LL2=1,QC-QC*0.1,DRAWNULL),COLORBLUE,LINETHICK4;
 


 


 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式