TD结构9转 解密公布源码 提供tne格式
HMJTDL1:=REF(CLOSE,1)>=REF(CLOSE,5) AND CLOSE<REF(CLOSE,4);
HMJTDL2:=BARSLAST(HMJTDL1)=1 AND CLOSE<REF(CLOSE,4);
HMJTDL3:=BARSLAST(HMJTDL1)=2 AND CLOSE<REF(CLOSE,4);
HMJTDL4:=BARSLAST(HMJTDL1)=3 AND CLOSE<REF(CLOSE,4);
HMJTDL5:=BARSLAST(HMJTDL1)=4 AND CLOSE<REF(CLOSE,4);
HMJTDL6:=BARSLAST(HMJTDL1)=5 AND CLOSE<REF(CLOSE,4);
HMJTDL7:=BARSLAST(HMJTDL1)=6 AND CLOSE<REF(CLOSE,4);
HMJTDL8:=BARSLAST(HMJTDL1)=7 AND CLOSE<REF(CLOSE,4);
HMJTDL9:=BARSLAST(HMJTDL1)=8 AND CLOSE<REF(CLOSE,4);
HMJTDH1:=REF(CLOSE,1)<=REF(CLOSE,5) AND CLOSE>REF(CLOSE,4);
HMJTDH2:=BARSLAST(HMJTDH1)=1 AND CLOSE>REF(CLOSE,4);
HMJTDH3:=BARSLAST(HMJTDH1)=2 AND CLOSE>REF(CLOSE,4);
HMJTDH4:=BARSLAST(HMJTDH1)=3 AND CLOSE>REF(CLOSE,4);
HMJTDH5:=BARSLAST(HMJTDH1)=4 AND CLOSE>REF(CLOSE,4);
HMJTDH6:=BARSLAST(HMJTDH1)=5 AND CLOSE>REF(CLOSE,4);
HMJTDH7:=BARSLAST(HMJTDH1)=6 AND CLOSE>REF(CLOSE,4);
HMJTDH8:=BARSLAST(HMJTDH1)=7 AND CLOSE>REF(CLOSE,4);
HMJTDH9:=BARSLAST(HMJTDH1)=8 AND CLOSE>REF(CLOSE,4);
DRAWTEXT(HMJTDL1 AND BACKSET(HMJTDL9,9)=1,LOW*0.98,'1'),COLORGRAY;
DRAWTEXT(HMJTDL2 AND BACKSET(HMJTDL9,9)=1,LOW*0.98,'2'),COLORGRAY;
DRAWTEXT(HMJTDL3 AND BACKSET(HMJTDL9,9)=1,LOW*0.98,'3'),COLORGRAY;
DRAWTEXT(HMJTDL4 AND BACKSET(HMJTDL9,9)=1,LOW*0.98,'4'),COLORGRAY;
DRAWTEXT(HMJTDL5 AND BACKSET(HMJTDL9,9)=1,LOW*0.98,'5'),COLORGRAY;
DRAWTEXT(HMJTDL6 AND BACKSET(HMJTDL9,9)=1,LOW*0.98,'6'),COLORGRAY;
DRAWTEXT(HMJTDL7 AND BACKSET(HMJTDL9,9)=1,LOW*0.98,'7'),COLORGRAY;
DRAWTEXT(HMJTDL8 AND BACKSET(HMJTDL9,9)=1,LOW*0.98,'8'),COLORGRAY;
DRAWTEXT(HMJTDL9 AND BACKSET(HMJTDL9,9)=1,LOW*0.98,'9'),COLORFF00FF;
DRAWTEXT(HMJTDH1 AND BACKSET(HMJTDH9,9)=1,HIGH*1.02,'1'),COLORGRAY;
DRAWTEXT(HMJTDH2 AND BACKSET(HMJTDH9,9)=1,HIGH*1.02,'2'),COLORGRAY;
DRAWTEXT(HMJTDH3 AND BACKSET(HMJTDH9,9)=1,HIGH*1.02,'3'),COLORGRAY;
DRAWTEXT(HMJTDH4 AND BACKSET(HMJTDH9,9)=1,HIGH*1.02,'4'),COLORGRAY;
DRAWTEXT(HMJTDH5 AND BACKSET(HMJTDH9,9)=1,HIGH*1.02,'5'),COLORGRAY;
DRAWTEXT(HMJTDH6 AND BACKSET(HMJTDH9,9)=1,HIGH*1.02,'6'),COLORGRAY;
DRAWTEXT(HMJTDH7 AND BACKSET(HMJTDH9,9)=1,HIGH*1.02,'7'),COLORGRAY;
DRAWTEXT(HMJTDH8 AND BACKSET(HMJTDH9,9)=1,HIGH*1.02,'8'),COLORGRAY;
DRAWTEXT(HMJTDH9 AND BACKSET(HMJTDH9,9)=1,HIGH*1.02,'9'),COLORFF00FF;
{股票指标网WWW.}
DRAWTEXT_FIX(CLOSE>0,0,0,0,'说明:虽然使用了未来函数,但是核心算法无未来,出9后不消失,放心使用.'),COLORRED;
DRAWTEXT_FIX(CLOSE>0,0,0.05,0,'用未来函数的目的是为了过滤不出9的情况.'),COLORRED;
DRAWTEXT_FIX(CLOSE>0,0,0.1,0,'注:此版本不带完善结构.'),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
HMJTDL1赋值:1日前的收盘价>=5日前的收盘价 AND 收盘价<4日前的收盘价
HMJTDL2赋值:上次HMJTDL1距今天数=1 AND 收盘价<4日前的收盘价
HMJTDL3赋值:上次HMJTDL1距今天数=2 AND 收盘价<4日前的收盘价
HMJTDL4赋值:上次HMJTDL1距今天数=3 AND 收盘价<4日前的收盘价
HMJTDL5赋值:上次HMJTDL1距今天数=4 AND 收盘价<4日前的收盘价
HMJTDL6赋值:上次HMJTDL1距今天数=5 AND 收盘价<4日前的收盘价
HMJTDL7赋值:上次HMJTDL1距今天数=6 AND 收盘价<4日前的收盘价
HMJTDL8赋值:上次HMJTDL1距今天数=7 AND 收盘价<4日前的收盘价
HMJTDL9赋值:上次HMJTDL1距今天数=8 AND 收盘价<4日前的收盘价
HMJTDH1赋值:1日前的收盘价<=5日前的收盘价 AND 收盘价>4日前的收盘价
HMJTDH2赋值:上次HMJTDH1距今天数=1 AND 收盘价>4日前的收盘价
HMJTDH3赋值:上次HMJTDH1距今天数=2 AND 收盘价>4日前的收盘价
HMJTDH4赋值:上次HMJTDH1距今天数=3 AND 收盘价>4日前的收盘价
HMJTDH5赋值:上次HMJTDH1距今天数=4 AND 收盘价>4日前的收盘价
HMJTDH6赋值:上次HMJTDH1距今天数=5 AND 收盘价>4日前的收盘价
HMJTDH7赋值:上次HMJTDH1距今天数=6 AND 收盘价>4日前的收盘价
HMJTDH8赋值:上次HMJTDH1距今天数=7 AND 收盘价>4日前的收盘价
HMJTDH9赋值:上次HMJTDH1距今天数=8 AND 收盘价>4日前的收盘价
DRAWTEXT(HMJTDL1 AND BACKSET(HMJTDL9,9)=1,最低价*0.98,'1'),COLORGRAY
DRAWTEXT(HMJTDL2 AND BACKSET(HMJTDL9,9)=1,最低价*0.98,'2'),COLORGRAY
DRAWTEXT(HMJTDL3 AND BACKSET(HMJTDL9,9)=1,最低价*0.98,'3'),COLORGRAY
DRAWTEXT(HMJTDL4 AND BACKSET(HMJTDL9,9)=1,最低价*0.98,'4'),COLORGRAY
DRAWTEXT(HMJTDL5 AND BACKSET(HMJTDL9,9)=1,最低价*0.98,'5'),COLORGRAY
DRAWTEXT(HMJTDL6 AND BACKSET(HMJTDL9,9)=1,最低价*0.98,'6'),COLORGRAY
DRAWTEXT(HMJTDL7 AND BACKSET(HMJTDL9,9)=1,最低价*0.98,'7'),COLORGRAY
DRAWTEXT(HMJTDL8 AND BACKSET(HMJTDL9,9)=1,最低价*0.98,'8'),COLORGRAY
DRAWTEXT(HMJTDL9 AND BACKSET(HMJTDL9,9)=1,最低价*0.98,'9'),COLORFF00FF
DRAWTEXT(HMJTDH1 AND BACKSET(HMJTDH9,9)=1,最高价*1.02,'1'),COLORGRAY
DRAWTEXT(HMJTDH2 AND BACKSET(HMJTDH9,9)=1,最高价*1.02,'2'),COLORGRAY
DRAWTEXT(HMJTDH3 AND BACKSET(HMJTDH9,9)=1,最高价*1.02,'3'),COLORGRAY
DRAWTEXT(HMJTDH4 AND BACKSET(HMJTDH9,9)=1,最高价*1.02,'4'),COLORGRAY
DRAWTEXT(HMJTDH5 AND BACKSET(HMJTDH9,9)=1,最高价*1.02,'5'),COLORGRAY
DRAWTEXT(HMJTDH6 AND BACKSET(HMJTDH9,9)=1,最高价*1.02,'6'),COLORGRAY
DRAWTEXT(HMJTDH7 AND BACKSET(HMJTDH9,9)=1,最高价*1.02,'7'),COLORGRAY
DRAWTEXT(HMJTDH8 AND BACKSET(HMJTDH9,9)=1,最高价*1.02,'8'),COLORGRAY
DRAWTEXT(HMJTDH9 AND BACKSET(HMJTDH9,9)=1,最高价*1.02,'9'),COLORFF00FF
当满足条件收盘价>0时,在横轴0纵轴0位置书写文字
当满足条件收盘价>0时,在横轴0纵轴0.05位置书写文字
当满足条件收盘价>0时,在横轴0纵轴0.1位置书写文字