最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信KD望远镜指标公式

    正文概述    2024-04-13 12:18:19  

    DRAWTEXT_FIX(1,0.01,0.80,0,'年kd'),COLOR0000FF;
    DRAWTEXT_FIX(1,0.97,0.80,0,'年KD'),COLOR0000FF;
    DRAWTEXT_FIX(1,0.01,0.61,0,'季KD'),COLOR0B86B8;
    DRAWTEXT_FIX(1,0.97,0.61,0,'季KD'),COLOR0B86B8;
    DRAWTEXT_FIX(1,0.01,0.44,0,'月KD'),COLORFF00FF;
    DRAWTEXT_FIX(1,0.97,0.44,0,'月KD'),COLORFF00FF;
    DRAWTEXT_FIX(1,0.01,0.25,0,'周KD '),COLOR7FFF00;
    DRAWTEXT_FIX(1,0.97,0.25,0,'周KD'),COLOR7FFF00;
    DRAWTEXT_FIX(1,0.01,0.08,0,'日KD'),COLOR0000FF;
    DRAWTEXT_FIX(1,0.97,0.08,0,'日KD'),COLOR0000FF;
    NOTEXT1:0;
    NOTEXT2:2.5;
    RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
    日K:=SMA(RSV,3,1),COLORWHITE;
    日D:=SMA(日K,3,1),COLORYELLOW;
    周K:"kdj.K#WEEK"(9,3,3),COLORRED,LINETHICK2,NODRAW;
    周D:="KDJ.D#WEEK"(9,3,3),COLORBLUE,LINETHICK2;
    月K:"KDJ.K#MONTH"(9,3,3),COLORRED,LINETHICK2,NODRAW;
    月D:="KDJ.D#MONTH"(9,3,3),COLORBLUE,LINETHICK2;
    季K:"KDJ.K#SEASON"(9,3,3),COLORRED,LINETHICK2,NODRAW;
    季D:="KDJ.D#SEASON"(9,3,3),COLORBLUE,LINETHICK2;
    年K:"KDJ.K#YEAR"(9,3,3),COLORRED,LINETHICK2,NODRAW;
    年D:="KDJ.D#YEAR"(9,3,3),COLORBLUE,LINETHICK2;
    日K801:=EVERY(日K>80,3);
    日K80:=日K>80 ;
    日K5080:= 日K>日D AND 日K>=50 AND 日K<=80;
    日K50801:=日K<日D AND 日K>=50 AND 日K<80;
    日K2050:=日K>日D AND 日K>=20 AND 日K<50;
    日K20501:=日K<日D AND 日K>=20 AND 日K<50;
    日K201:=EVERY(日K<20,3);
    日K20:=日K<=20;
    日金叉:=crOSS(日K,日D),NODRAW;
    日死叉:=CROSS(日D,日K);
    STICKLINE(日K20 ,2.0,2.4,3,1),COLOR32CD32;
    STICKLINE(日K20,2.0,2.4,1,0),COLOR32CD32;
    STICKLINE(日K201,2.0,2.4,3,0),COLOR32CD32;
    STICKLINE(日K20501,2.0,2.4,3,1),COLORE47833;
    STICKLINE(日K2050,2.0,2.4,3,0),COLORE47833;
    STICKLINE(日K50801,2.0,2.4,3,1),COLOR0B86B8;
    STICKLINE(日K5080,2.0,2.4,3,0),COLOR0B86B8;
    STICKLINE(日K80,2.0,2.4,3,1),COLORCD00CD;
    STICKLINE(日K80,2.0,2.4,1,0),COLORCD00CD;
    STICKLINE(日K801,2.0,2.4,3,0),COLORCD00CD;
    周K801:=EVERY(周K>80,3);
    周K80:=周K>80 ;
    周K5080:= 周K>周D AND 周K>=50 AND 周K<=80;
    周K50801:=周K<周D AND 周K>=50 AND 周K<80;
    周K2050:=周K>周D AND 周K>=20 AND 周K<50;
    周K20501:=周K<周D AND 周K>=20 AND 周K<50;
    周K201:=EVERY(周K<20,3);
    周K20:=周K<=20;
    周金叉:=CROSS(周K,周D),NODRAW;
    周死叉:=CROSS(周D,周K);
    STICKLINE(周K20 ,1.5,1.9,3,1),COLOR32CD32;
    STICKLINE(周K20,1.5,1.9,1,0),COLOR32CD32;
    STICKLINE(周K201,1.5,1.9,3,0),COLOR32CD32;
    STICKLINE(周K20501,1.5,1.9,3,1),COLORE47833;
    STICKLINE(周K2050,1.5,1.9,3,0),COLORE47833;
    STICKLINE(周K50801,1.5,1.9,3,1),,COLOR0B86B8;
    STICKLINE(周K5080,1.5,1.9,3,0),COLOR0B86B8;
    STICKLINE(周K80,1.5,1.9,3,1),COLORCD00CD;
    STICKLINE(周K80,1.5,1.9,1,0),COLORCD00CD;
    STICKLINE(周K801,1.5,1.9,3,0),COLORCD00CD;
    月K801:=EVERY(月K>80,3);
    月K80:=月K>80 ;
    月K5080:= 月K>月D AND 月K>=50 AND 月K<=80;
    月K50801:=月K<月D AND 月K>=50 AND 月K<80;
    月K2050:=月K>月D AND 月K>=20 AND 月K<50;
    月K20501:=月K<月D AND 月K>=20 AND 月K<50;
    月K201:=EVERY(月K<20,3);
    月K20:=月K<=20;
    月金叉:=CROSS(月K,月D),NODRAW;
    月死叉:=CROSS(月D,月K);
    STICKLINE(月K20 ,1.0,1.4,3,1),COLOR32CD32;
    STICKLINE(月K20,1.0,1.4,1,0),COLOR32CD32;
    STICKLINE(月K201,1.0,1.4,3,0),COLOR32CD32;
    STICKLINE(月K20501,1.0,1.4,3,1),COLORE47833;
    STICKLINE(月K2050,1.0,1.4,3,0),COLORE47833;
    STICKLINE(月K50801,1.0,1.4,3,1),COLOR0B86B8;
    STICKLINE(月K5080,1.0,1.4,3,0),COLOR0B86B8;
    STICKLINE(月K80,1.0,1.4,3,1),COLORCD00CD;
    STICKLINE(月K80,1.0,1.4,1,0),COLORCD00CD;
    STICKLINE(月K801,1.0,1.4,3,0),COLORCD00CD;
    季K801:=EVERY(季K>80,3);
    季K80:=季K>80 ;
    季K5080:= 季K>季D AND 季K>=50 AND 季K<=80;
    季K50801:=季K<季D AND 季K>=50 AND 季K<80;
    季K2050:=季K>季D AND 季K>=20 AND 季K<50;
    季K20501:=季K<季D AND 季K>=20 AND 季K<50;
    季K201:=EVERY(季K<20,3);
    季K20:=季K<=20;
    季金叉:=CROSS(季K,季D),NODRAW;
    季死叉:=CROSS(季D,季K);
    STICKLINE(季K20 ,0.5,0.9,3,1),COLOR32CD32;
    STICKLINE(季K20,0.5,0.9,1,0),COLOR32CD32;
    STICKLINE(季K201,0.5,0.9,3,0),COLOR32CD32;
    STICKLINE(季K20501,0.5,0.9,3,1),COLORE47833;
    STICKLINE(季K2050,0.5,0.9,3,0),COLORE47833;
    STICKLINE(季K50801,0.5,0.9,3,1),COLOR0B86B8;
    STICKLINE(季K5080,0.5,0.9,3,0),COLOR0B86B8;
    STICKLINE(季K80,0.5,0.9,3,1),COLORCD00CD;
    STICKLINE(季K80,0.5,0.9,1,0),COLORCD00CD;
    STICKLINE(季K801,0.5,0.9,3,0),COLORCD00CD;
    年K801:=EVERY(年K>80,3);
    年K80:=年K>80 ;
    年K5080:= 年K>年D AND 年K>=50 AND 年K<=80;
    年K50801:=年K<年D AND 年K>=50 AND 年K<80;
    年K2050:=年K>年D AND 年K>=20 AND 年K<50;
    年K20501:=年K<年D AND 年K>=20 AND 年K<50;
    年K201:=EVERY(年K<20,3);
    年K20:=年K<=20;
    年金叉:=CROSS(年K,年D),NODRAW;
    年死叉:=CROSS(年D,年K);
    STICKLINE(年K20 ,0,0.4,3,1),COLOR32CD32;
    STICKLINE(年K20,0,0.4,1,0),COLOR32CD32;
    STICKLINE(年K201,0,0.4,3,0),COLOR32CD32;
    STICKLINE(年K20501,0,0.4,3,1),COLORE47833;
    STICKLINE(年K2050,0,0.4,3,0),COLORE47833;
    STICKLINE(年K50801,0,0.4,3,1),COLOR0B86B8;
    STICKLINE(年K5080,0,0.4,3,0),COLOR0B86B8;
    STICKLINE(年K80,0,0.4,3,1),COLORCD00CD;
    STICKLINE(年K80,0,0.4,1,0),COLORCD00CD;
    STICKLINE(年K801,0,0.4,3,0),COLORCD00CD;
    {以下为KD空头多头}
    DS1:=IF(KDJ.K#DAY>KDJ.D#DAY,1,0);
    DS2:=IF(KDJ.K#DAYZS1:=IF(KDJ.K#WEEK>KDJ.D#WEEK,2,0);
    ZS2:=IF(KDJ.K#WEEKMS1:=IF(KDJ.K#MONTH>KDJ.D#MONTH,3,0);
    MS2:=IF(KDJ.K#MONTHSS1:=IF(KDJ.K#SEASON>KDJ.D#SEASON,4,0);
    SS2:=IF(KDJ.K#SEASONKD多头:DS1+ZS1+MS1+SS1,COLORFF80FF,NODRAW;
    KD空头:DS2+ZS2+MS2+SS2,COLOR00FF00,NODRAW;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信KD望远镜指标公式 加入收藏