[通达信] 分时顶底 显示顶底线 通达信主图指标 源码 贴图

[复制链接]
查看94 | 回复0 | 2024-11-5 12:29:03 | 显示全部楼层 |阅读模式
分时顶底 显示顶底线 通达信主图指标 源码 贴图
wp1.jpg

{公式名称: 分时顶底
公式描述: 顶底 板块 趋势
参数数量: 1
参数1: 显示顶底线, 最小: 0, 最大: 1, 缺省: 1
}
X_1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
DRAWBAND(X_1,RGB(150,30,30),EMA(X_1,60),RGB(0,110,30));
DRAWTEXT_FIX(ISLASTBAR,IF(FROMOPEN<120,0.6,0.01),0.05,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,IF(FROMOPEN<120,0.6,0.01),0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,IF(FROMOPEN<120,0.55,0.01),0.9,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,IF(FROMOPEN<120,0.55,0.01),0.95,0,FGBLOCK),COLORYELLOW;
X_2:=IF(显示顶底线=1,HHV(HIGH,480),DRAWNULL);
X_3:=IF(显示顶底线=1,LLV(LOW,480),DRAWNULL);
{WWW.GSZB.TOP}
分时顶:IF(X_2=REF(X_2,2),X_2,DRAWNULL),DOTLINE,COLORMAGENTA;
分时底:IF(X_3=REF(X_3,2),X_3,DRAWNULL),DOTLINE,COLORGREEN;
CLOSE,COLORWHITE;

 

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

488

主题

0

回帖

3661

积分

游资

积分
3661