通达信macd,kdj日周月顶底背离源码副图

2015-10-31 22:44:00来源:本站整理浏览:824

NOTEXT月D:=IF(N=3,月D,DRAWNULL),COLORYELLOW,NODRAW;
NOTEXT月J:=IF(N=3,月J,DRAWNULL),COLORMAGENTA,NODRAW;
NOTEXT周K:=IF(N=2,周K,DRAWNULL),COLORWHITE,NODRAW;
NOTEXT周D:=IF(N=2,周D,DRAWNULL),COLORYELLOW,NODRAW;
NOTEXT周J:=IF(N=2,周J,DRAWNULL),COLORMAGENTA,NODRAW;
NOTEXT日K:=IF(N=1,日K,DRAWNULL),COLORWHITE,NODRAW;
NOTEXT日D:=IF(N=1,日D,DRAWNULL),COLORYELLOW,NODRAW;
NOTEXT日J:=IF(N=1,日J,DRAWNULL),COLORMAGENTA,NODRAW;
STICKLINE(日K>=日D,30,25,3,0),COLOR8000FF;
STICKLINE(日K< 日D,30,25,3,0),COLOR009600;
DRAWTEXT(ISLASTBAR,27,'__日KDJ'),COLORWHITE;
STICKLINE(周K>=周D,20,15,3,0),COLOR803CFF;
STICKLINE(周K< 周D,20,15,3,0),COLOR3C9600;
DRAWTEXT(ISLASTBAR,17,'__周KDJ'),COLORWHITE;
STICKLINE(月K>=月D,10,5,3,0),COLOR8050FF;
STICKLINE(月K< 月D,10,5,3,0),COLOR649600;
DRAWTEXT(ISLASTBAR,7,'__月KDJ'),COLORWHITE;
{}
40,LINETHICK1,COLORWHITE;
{}
DRAWRECTREL(0,0,180,990,RGB(250,0,250));
{日K:="KD.K"(9,3,3);
日D:="KD.D"(9,3,3);
日J:="KD.J"(9,3,3);
周K:="KDJ.K#WEEK"(9,3,3);
周D:="KDJ.D#WEEK"(9,3,3);
周J:="KDJ.J#WEEK"(9,3,3);
月K:="KDJ.K#MONTH"(9,3,3);
月D:="KDJ.D#MONTH"(9,3,3);
月J:="KDJ.J#MONTH"(9,3,3); }
DRAWTEXT_FIX(ISLASTBAR,0.111,0.03,0,'KDJ (日/周/月)'),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.101,0.13,0,'日K ='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.13,0,日K),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.101,0.23,0,'日D ='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.23,0,日D),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.101,0.33,0,'日J ='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.33,0,日J),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.101,0.43,0,'周K ='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.43,0,周K),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.101,0.53,0,'周D ='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.53,0,周D),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.101,0.63,0,'周J ='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.63,0,周J),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.101,0.73,0,'月K = '),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.73,0, 月K),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.101,0.83,0,'月D ='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.83,0,月D),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.101,0.93,0,'月J ='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.93,0,月J),COLORFFFFFF;
{}
DRAWRECTREL(0,0,90,990,RGB(220,0,0));
{月DIF:="MACD.DIF#MONTH"(12,26,9);
月DEA:="MACD.DEA#MONTH"(12,26,9);
周DIF:="MACD.DIF#WEEK"(12,26,9);
周DEA:="MACD.DEA#WEEK"(12,26,9);
日DIF:="MACD.DIF"(12,26,9);
日DEA:="MACD.DEA"(12,26,9);}
DRAWTEXT_FIX(ISLASTBAR,0.018,0.03,0,'MACD(日/周/月)'),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.18,0,'日DIF='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.18,0,日DIF),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.31,0,'日DEA='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.31,0,日DEA),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.44,0,'周DIF='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.44,0,周DIF),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.57,0,'周DEA='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.57,0,周DEA),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.70,0,'月DIF= '),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.70,0, 月DIF),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.83,0,'月DEA='),COLORFFFFFF;
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.83,0,月DEA),COLORFFFFFF;
 


 



 

上一页  [1] [2] 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式