Money Flow Index + Alerts

v10.3
Money Flow Index + Alerts

This is an adaptation for Prorealtime v 10.3 of an indicator of the Tradingview platform.

1. Added a visual symbol of an overbought/oversold threshold cross in the form of a red/green circle, respectively. Sometimes it can be hard to see when a cross actually occurs, and if your scaling isn’t set up properly you can get misleading visuals. This way removes all doubt. Bear in mind they aren’t meant as trading signals, so DO NOT use them as such. Research the Money flow Index  if you’re unsure, but I use them as an early warning and that particular market/stock is added to my watchlist.

2. Added 60/40 lines as the Money flow Index respects these incredibly well in trends. E.g. in a solid uptrend the Money flow Index won’t go below 40, and vice versa. Use the idea of support and resistence levels on the indicator and it’ll be a great help. I’ve coloured the zones. Strong uptrends should stay above 60, strong downtrends should stay below 40. The zone in between 40-60 I’ve called the transition zone. Money Flow Index  often stays here in consolidation periods, and in the last leg of a cycle/trend the Money Flow Index will often drop into this zone after being above 60 or below 40. This is a great sign that you should get out and start looking to reverse your position. Hopefully it helps to spot divergences as well.

3. Added alerts based on an overbought/oversold cross. Also added an alert for when either condition is triggered, so hopefully that’s useful for those struggling with low alert limits. Feel free to change the overbought/oversold levels, the alerts + crossover visual are set to adapt.

Like any indicator, don’t use this one alone. It works best paired with indicators/techniques that contradict it. You’ll often see a OB/OS cross, and price will continue on it’s way for many weeks more. But Money flow Index is a great tool for identifying upcoming trend changes.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Barrabas15 • 06/26/2018 #

    Yo pondría las alertas (círculos) cuando vuelve a cruzar por debajo/arriba de los niveles de sobrecompra/sobreventa una vez han sido traspasados.

  2. bolsatrilera • 06/26/2018 #

    EM MONEY FLOW INDEX + ALERTS
    //@version=3
    // on platform Tradingview by DreamsDefined
    //adapted by platform Prorealtime v10.3 by bolsatrilera

    // This study is based on the work of TV user Beasley Savage (https://www.tradingview.com/script/g58H59ub-Money-Flow-Index-Beasley-Savage/)
    // and all credit goes to them.
    //
    // Changes I’ve made:
    //
    // 1. Added a visual symbol of an overbought/oversold threshold cross in the form of a red/green circle, respectively.
    // Sometimes it can be hard to see when a cross actually occurs, and if your scaling isn’t set up properly you can get
    // misleading visuals. This way removes all doubt. Bear in mind they aren’t meant as trading signals, so DO NOT use them as such.
    // Research the MFI if you’re unsure, but I use them as an early warning and that particular market/stock is added to my watchlist.
    //
    // 2. Added 60/40 lines as the MFI respects these incredibly well in trends. E.g. in a solid uptrend the MFI won’t go below 40,
    // and vice versa. Use the idea of support and resistance levels on the indicator and it’ll be a great help.
    // I’ve coloured the zones. Strong uptrends should stay above 60, strong downtrends should stay below
    // 40. The zone in between 40-60 I’ve called the transition zone. MFI often stays here in consolidation periods, and
    // in the last leg of a cycle/trend the MFI will often drop into this zone after being above 60 or below 40. This is a great
    // sign that you should get out and start looking to reverse your position. Hopefully it helps to spot divergences as well.
    //
    // 3. Added alerts based on an overbought/oversold cross. Also added an alert for when either condition is triggered, so hopefully
    // that’s useful for those struggling with low alert limits. Feel free to change the overbought/oversold levels, the alerts +
    // crossover visual are set to adapt.
    //
    // Any queries please comment or PM me.
    //
    // Cheers,
    // RJR

    //Inputs
    length = 14
    os = 20 // title = “Oversold”)
    ob = 80//title = “Overbought”)
    //MFI Calc
    hlc3 = (high+low+close)/3
    rawMoneyFlow = hlc3 * volume
    positiveMoneyFlow = 0.0

    if hlc3 > hlc3[1] then
    positiveMoneyFlow = positiveMoneyFlow + rawMoneyFlow
    else
    positiveMoneyFlow = positiveMoneyFlow
    endif

    negativeMoneyFlow = 0.0

    if hlc3 < hlc3[1] then
    negativeMoneyFlow = negativeMoneyFlow + rawMoneyFlow
    else
    negativeMoneyFlow = negativeMoneyFlow
    endif

    moneyFlowRatio = average [length](positiveMoneyFlow) /average[length](negativeMoneyFlow)

    mfi = 100 – 100 / (1 + moneyFlowRatio)

    if mfi crosses under os then
    drawtext("●",barindex,mfi,Dialog,Bold,10) coloured(0,255,0)
    endif

    if mfi crosses over os then
    drawtext("●",barindex,mfi,Dialog,Bold,10) coloured(0,0,0)
    endif

    if mfi crosses over ob then
    drawtext("●",barindex,mfi,Dialog,Bold,10) coloured(255,0,0)
    endif

    if mfi crosses under ob then
    drawtext("●",barindex,mfi,Dialog,Bold,10) coloured(0,0,0)
    endif

    h1 = 80 //"Overbought")
    h2 = 20 //"Oversold")
    h3 = 40 //"Bears")
    h4 = 60 //"Bulls")
    //(h4, h1, color=green, title="Uptrend")
    //(h3, h2, color=red, title="Downtrend")
    //(h3, h4, color=gray, title="Transition Zone")

    return mfi as "moneyflowIndex",h1 style(dottedline)as "h1",h2 style(dottedline)as "h2",h3 style(dottedline) as "h3",h4 style(dottedline)as "h4"

  3. Carlos Garcia • 06/26/2018 #

    Enorme. Gracias!

  4. Andraxx • 06/26/2018 #

    Buen indicador….
    Gracias

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+9 more likes

Related users ' posts
Alai-n I also have the same problem that I can not solve especially on LowVolume (Yellow) ... Sorry
Mert No need to apologise, my friend. It is great code. I hope you find a solution soon. Regards.
gabri I think it's because the lookback period changes at every new bar and that means that many c...
Giuseppe68 ciao, ho provato l'indicatore e mi sembra interessante, ma in fase di backtest non riesco ad...
poldoposta veramente bello.....complimenti
rb-72 Thank you, area of twist by dilatacion of the price, missing part of the code that is not pu...
Thomas007 after reading your blog now I understand why there is only a part of your code here. I'm try...
Juanjo Hola¡¡ la estrategia se podria aplicar sobre acciones con marco temporal diario?? gracias.
rb-72 5 Minutes, 15 Minutes, The most effective 1 Hour below 0 or above 0 as a turn signal in the ...
Andraxx Interpretación de el indicador??? Gracias
TAC Bolsa Oscilador que hace una medición ponderara basado en la distancia entre precio y una media Mó...
Nicolas Better to download the file from the page and import it into your platform in order to not c...
marcov66 Hi Nicolas, thanks for sharing the VWAP Date Indicator. It is really powerful. Nevertheless,...
Nicolas Are you sure you are using the same exact date, hours, minutes, seconds for anchor?
julien1978 changing the trendDetectionLength setting does not seem to have any effect on the wave calcu...
arran i can't seem to get this indicator to work on forex pairs. it works great on indices etc. An...
Nicolas Indicator needs Volume, and there are no volumes with forex pairs with IG.
Trading_En_El_Ibex35 El screener no busca acciones que estén en máximos absolutos , busca acciones en las que el...
Andraxx lo de volumen aceptable, lo dices en relación al Ibex 35 supongo. Porque se margen de volume...
Juanjo Hola Queria preguntarte si la idea de maximos anuales es tuya, o bien está basada en el sis...
BERTJES82 Hi Nicolas, is it possible to adjust the starting date of the VWAP on the charts? Thanks in ...
Nicolas Yes, have a look there: https://www.prorealcode.com/prorealtime-indicators/vwap-date-anchored/
Dadoo Merci Nicolas!
Thomas007 Is there any way to build something similar for FX? I wonder what would be the replacement f...
Jean-Pierre Poulain When I buy and when I sell ?
Nicolas The featured image of the post do not deserve the indicator you are right, I attached other ...
Nicolas It is described in the post already :) The BUY/SELL signals are quite similar of what you ca...
Nicolas
7 years ago
jiminykricket Hi Nicolas, Its fair to say i'm a relative novice with ProRealtime and as such i am not sur...
Nicolas You can use assisted creation in probacktest, you'll get a quick overview on how to call a p...
jiminykricket Thanks Nicolas, i'll take a look
bolsatrilera
7 years ago
Volume Stops
v10.3
Volume Stops
6
Indicators
Aragorna Hello, ask for a help, please. why the indicator in my PRT is in a different area and not in...
Nicolas Add it on the price chart: https://www.prorealcode.com/blog/video-tutorials/how-to-add-an-in...
Infanta Congratulations. Of all the indicators that I have been able to examine, in my opinion and f...
Nicolas
7 years ago
Voluminator
Voluminator
0
Indicators
Nicolas
7 years ago
Nicolas Sure, please open a new topic in the probuilder forum with all specifications needed.
toni1750 Hola, funciona en P11? lo he puesto y no me sale como en la imagen. gracias.
GustavoLoboOrenstein Hello Nicolas, I have a cumulative histogram update problem, the indicator often updates ...
Nicolas That's right, in ProScreener we can't have a lookback more than 254 days. There is nothing w...
cjdevasia Hi, Nicolas,     please guide me how can i scan following conditions in pro real time  S...
Nicolas For everyone benefit, I prefer to answer coding request in the forum. Please open a new topi...
Nicolas Thanks for contributing to the "ichimoku section" of the prorealtime code library Don't he...
sourberry Thank you , this is a great indicator works beautifully. Could you kindly modify to scr...
pp_playaflamenca Excuse me,... reading your code about spanB: [ SenkouSpanBFutureW = (Highest[SenkouSpanPerio...
Nicolas
7 years ago
Better Volume
Better Volume
38
Indicators
Nicolas Don't add it on the price, but like an oscillator in a separated window instead.
Keyeming Hello Nicolas; not sure to undersntad line 167, and in the video I d'ont remember that the a...
Nicolas I don't know, this code is 6 years old and I made a 1:1 translation of the provided code by ...

Top