OPEN-SOURCE SCRIPT

MACD背离(MACD divergent)[公开版][gouge99]

Updated
注意:背离意味着做反转交易,所以入场要求很高,但是背离一般的收益风险比很大
MACD背离:收盘价创造新高或者新低,但是macd却没有出新高或者新低

计算原理:根据历史K线长度(默认90根K线)来判断收盘价的高低极值和macd的高低极值来进行比较判断

建议使用:
1.在震荡调整行情中,在支撑和压力位附近出现的突然的趋势K线,一般是假突破
2.在趋势末端,一般还会有一次缓慢的测试趋势极点的行情,一般这是趋势反转进入震荡的开始
3.结合其他形态如双顶,头肩,pin bar
4.结合其他指标如stoch随机指标做反转
5.推荐在1h, 30m, 15m级别中使用,5m也可以使用,但是最好背离计算长度设置大一点 比如150
Release Notes
v1.1
新增设置警告
Moving Average Convergence / Divergence (MACD)Stochastic Oscillator

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


微信18922889541
Also on:

Disclaimer