通达信波段转折主图预警 黄K起涨点 源码 附图

N:=10;
HJ_1:=IF(DATE<99999999,1,DRAWNULL);
HJ_2:=MFI(12,9);
M3:MA(CLOSE,3);
主力线:MA(CLOSE,13),COLORYELLOW;
趋势线:MA(CLOSE,34)*HJ_1,COLORRED,LINETHICK2;
IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL)*HJ_1,COLORGREEN,LINETHICK2;
HJ_3:=IF(DATETODAY(DATE)<99999999,1,DRAWNULL);
HJ_4:=EMA(CLOSE,2)*HJ_1;
HJ_5:=EMA(SLOPE(CLOSE,9)*20+CLOSE,37)*HJ_3;
HJ_6:=CROSS(HJ_4,HJ_5)*HJ_3;
HJ_7:=CROSS(HJ_5,HJ_4)*HJ_3;
DRAWICON(HJ_6,LOW*0.97,1);
DRAWICON(HJ_7,HIGH*1.03,2);
STICKLINE(HJ_4>=HJ_5,LOW,HIGH,0.01,0),COLOR0000DD;
STICKLINE(HJ_4>=HJ_5,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(HJ_4>=HJ_5,LOW,HIGH,0.01,0),COLOR0000DD;
STICKLINE(HJ_4>=HJ_5,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(HJ_4<HJ_5,LOW,HIGH,0.01,0),COLORFFDD00;
STICKLINE(HJ_4<HJ_5,CLOSE,OPEN,2,0),COLORCYAN;
STICKLINE(CROSS(HJ_4,HJ_5),OPEN,CLOSE,3.1,0),COLOR00BBFF;
STICKLINE(CROSS(HJ_4,HJ_5),OPEN,CLOSE,2.7,0),COLOR00BBFF;
STICKLINE(CROSS(HJ_4,HJ_5),OPEN,CLOSE,2.1,0),COLOR00CCFF;
STICKLINE(CROSS(HJ_4,HJ_5),OPEN,CLOSE,1.5,0),COLOR00DDFF;
STICKLINE(CROSS(HJ_4,HJ_5),OPEN,CLOSE,0.9,0),COLOR00EEFF;
STICKLINE(CROSS(HJ_4,HJ_5),OPEN,CLOSE,0.3,0),COLORYELLOW;
STICKLINE(CROSS(HJ_5,HJ_4),HIGH,LOW,0,1),COLOR666600;
STICKLINE(CROSS(HJ_5,HJ_4),OPEN,CLOSE,3.1,0),COLOR555500;
STICKLINE(CROSS(HJ_5,HJ_4),OPEN,CLOSE,2.7,0),COLOR888800;
STICKLINE(CROSS(HJ_5,HJ_4),OPEN,CLOSE,2.1,0),COLORAAAA00;
STICKLINE(CROSS(HJ_5,HJ_4),OPEN,CLOSE,1.5,0),COLORBBBB00;
STICKLINE(CROSS(HJ_5,HJ_4),OPEN,CLOSE,0.9,0),COLORCCCC00;
STICKLINE(CROSS(HJ_5,HJ_4),OPEN,CLOSE,0.3,0),COLOREEEE00;



来函数检测结果如下:
该公式没有未来函数


解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

N赋值:10
如果日期<99999999返回1否则返回DRAWNULL
HJ_2赋值:MFI(12,9)
输出M3:收盘价的3日简单移动平均
输出主力线:收盘价的13日简单移动平均,画黄色
输出趋势线:收盘价的34日简单移动平均*HJ_1,画红色,LINETHICK2
IF(趋势线<1日前的趋势线,趋势线,DRAWNULL)*HJ_1,COLORGREEN,LINETHICK2
HJ_3赋值:IF(日期TODAY(日期)<99999999,1,DRAWNULL)
HJ_4赋值:收盘价的2日指数移动平均*HJ_1
HJ_5赋值:EMA(SLOPE(收盘价,9)*20+收盘价,37)*HJ_3
HJ_6赋值:HJ_4上穿HJ_5*HJ_3
HJ_7赋值:HJ_5上穿HJ_4*HJ_3
当满足条件HJ_6时,在最低价*0.97和1之间画图标
当满足条件HJ_7时,在最高价*1.03和2之间画图标
当满足条件HJ_4>=HJ_5时,在最低价和最高价之间画柱状线
当满足条件HJ_4>=HJ_5时,在收盘价和OPEN之间画柱状线
当满足条件HJ_4>=HJ_5时,在最低价和最高价之间画柱状线
当满足条件HJ_4>=HJ_5时,在收盘价和OPEN之间画柱状线
当满足条件HJ_4当满足条件HJ_4 STICKLINE(HJ_4上穿HJ_5,OPEN,收盘价,3.1,0),COLOR00BBFF
STICKLINE(HJ_4上穿HJ_5,OPEN,收盘价,2.7,0),COLOR00BBFF
STICKLINE(HJ_4上穿HJ_5,OPEN,收盘价,2.1,0),COLOR00CCFF
STICKLINE(HJ_4上穿HJ_5,OPEN,收盘价,1.5,0),COLOR00DDFF
STICKLINE(HJ_4上穿HJ_5,OPEN,收盘价,0.9,0),COLOR00EEFF
STICKLINE(HJ_4上穿HJ_5,OPEN,收盘价,0.3,0),画黄色
STICKLINE(HJ_5上穿HJ_4,最高价,最低价,0,1),COLOR666600
STICKLINE(HJ_5上穿HJ_4,OPEN,收盘价,3.1,0),COLOR555500
STICKLINE(HJ_5上穿HJ_4,OPEN,收盘价,2.7,0),COLOR888800
STICKLINE(HJ_5上穿HJ_4,OPEN,收盘价,2.1,0),COLORAAAA00
STICKLINE(HJ_5上穿HJ_4,OPEN,收盘价,1.5,0),COLORBBBB00
STICKLINE(HJ_5上穿HJ_4,OPEN,收盘价,0.9,0),COLORCCCC00
STICKLINE(HJ_5上穿HJ_4,OPEN,收盘价,0.3,0),COLOREEEE00

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图