MFI Divergence v2

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
Remove from Favorite Scripts Add to Favorite Scripts


HI! This looks great. Would love to use it but I'm getting an error about length equaling 0 in the highestbars function when i add it to my chart. Any ideas?

matt_b ivanlandjr
@ivanlandjr, make sure the lookback periods, mfi length etc are not set to zero. Other than that I'm not sure what the problem could be, the 'highest bars' thing is a built in function in TV that I can't change.
Awesome thanks!
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out