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
Jesper Great share!
eckaw Hi Nicolas, I'm using this indicator when there is confluence over 3 different timeframes (5...
Nicolas Yes it is indeed possible. Create a topic in the screener forum and explain what you need an...
KyleReed i've been using this for a few days now and it's really helped me a lot in timing the execut...
Ben Ji Bonjour Nicolas, je souhaiterais exploiter votre screener sur la plateforme TradingView. Pou...
Nicolas Non désolé, je ne fournis pas de support pour cette plateforme.
luxrun Thanks, bolsatrilera, for a very good and solid screener!
luxrun sorry... indicator!
Lily Rios Gracias por el indicador, tengo una pregunta necesito programar un screener de valores que e...
mmoren44 no esta el color azul (Fade //Blue), No aparece en las barras el color azul.
larouedegann changer fade coloured (0,0,255)
Nicolas 1. yes 2. maybe yes?! 3. why not?
patapouf Bonjour Nicolas. Je viens de découvrir cet indicateur, que je trouve bien intéressant Mais...
Nicolas Tu peux modifier le paramètre "scalefactor" pour adapter la hauteur des barres à ton graphiq...
TAC Bolsa All indicators share some code of other TAC indicators that improve the functioning of this ...
ramonjp Hi Tac, Great job. Please, can you provide latest code version of this indicator without ...
Tze Khai Lim Hi Tac, pls provide latest code version of this indicator. Thanks in advance.
TAC Bolsa Estas equivocado al 99,9%. La correlación entre las series de precios y volúmenes las des...
Domenec Si hablas de un indice regional como el Ibex es posible que sea asi yo nunca lo he operado y...
TAC Bolsa Regional de Mostoles, en una cosa tienes razón mejor dejarlo aquí...
Xusto Hello, Fully Agree, I will update it with your advice. Btw Can would you like share you co...
Niklas johansson hägglund do you now if it's possible to use this strategy with this code in tradingview also?
Alexander9 This code for metastock ?, can for amibroker . Thanks
TACBOLSA
6 years ago
luxrun Thank you so much Tac BOLSA, I can not post the picture tonight I'll try tomorrow. I loaded ...
TAC Bolsa A new version of TAC Volume HPI DIV10.4 is available. that marks the divergence In the fo...
Raymundo Buenas tardes. Como puedo descargar algunos indicadores de esta pagina ?
mangiaragni Buongiorno io non riesco a visualizzare nessun tipo di volume , mi torna sempre una linea dr...
Nicolas Assicurati che lo strumento che stai guardando abbia dei volumi! È il caso?
Carlos Garcia If price tags the lower BBand, look for IIIX has positive values to enter a trade. Converse...
Thally Thanks for the quick response Nicholas. Would you have any idea how to resolve. Manually ref...
Thally Do you think adjusting the below code might help? newperiod = minuteminute[1] if newperi...
Nicolas There is no "second" instruction.
YvesRobert Merci beaucoup Nicolas. Existe t'il un petit programme qui permet de tracer sur la graphe en...
Nicolas Oui il y a celui ci: https://market.prorealcode.com/product/prt-renko/?lang=fr
YvesRobert Bonjour Nicolas, j'ai une question technique à te poser. Je visualise souvent le cours en RE...
GenesisEX Thank you all for your contributions this is a great submission. Thanks for your inputs.
tino Bonjour nicolas. Je ne parviens pas à recopier le screener de l'indicateur. Auriez vous la g...
Nicolas Quel screener svp? C'est dans un des sujets du forum? Merci de fournir le lien.
gabri Ha ragione in computer, ho sbagliato io BullAD = summation[period](ADvolbull*((Close-Low) –...
marcov66 Perfetto! Funziona. Grazie di tutto!
SkrHugo Bonjour, J'essaye d'utiliser le script avec le graphique renko mais sa ne marche pas, quelq...
Tonicejudo Hola Nicolas, a ver si me puedes ayudar. Hay un indicador que se llama volumen stop de bolsa...
Nicolas Utilice los foros para hacer preguntas no relacionadas con la página actual ...
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...

Top