OPEN-SOURCE SCRIPT

MFI Divergence v2

Updated
Edited the RSI div indicator by Libertus to use MFI & show on candles. V2 update filters the divs using stochastic oversold & overbought & removes the lagging signals (they were offset back by 1 bar).
Default settings were tuned for xbtusd 1hr; works well if after a signal you wait for a stochastic indicator to stop being oversold or overbought, so if eg. you see a cluster of sell signals at a top, wait for the stoch to cross below 80 before entry. Please backtest before trading with this, DYOR NFA GLHF!
Release Notes
Alert conditions working now. To use them create an alert as usual then in the condition menu pick 'mfi divs' & either 'bull div' or 'bear div'.
Release Notes
added ability to set lookback periods per timeframe
MFImfi_divergenceMoney Flow Index (MFI)

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?

Disclaimer