分时顶底(通达信公式 和谐源码分享 K线图)

[复制链接]
查看69 | 回复0 | 2022-6-27 20:08:08 | 显示全部楼层 |阅读模式

 {公式名称: 分时顶底

公式描述: 顶底 板块 趋势
参数数量: 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.70822.com}
分时顶: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;
 

p20197201554992718.jpg

p20197201554992718.jpg

20197201554262687.rar

3.55 KB, 下载次数: 0

售价: 4 金钱  [记录]  [购买]

20197201554262687.rar

回复

使用道具 举报

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

本版积分规则