Bill Williams Profitunity

Bill Williams Profitunity

Another method of studying Price and Volume by Bill Williams Profitunity

The Bill Williams Profitunity provides a unique way of quantifying price movement relative to volume. At the heart of it is the Market Facilatation Index (MFI). The MFI is the bar’s range (high – low) divided by the volume. Using the MFI, each bar has a mathematical relationship of the price activity versus the volume. In essence, the MFI is a measurement of market efficiency, tracking how much movement has occurred in price relative to volume. By comparing the MFI for the current bar to the previous bar’s, you can gauge the current bar’s ability to facilitate price to the previous bar’s ability. The Bill Williams Profitunity can be used on any period from daily bars to monthly bars.

The MFI as a stand-alone indicator has little value. However, by comparing the current bar’s MFI and volume with the previous bar’s MFI and volume, a very tradable system emerges.

Williams defines the four possible combinations of MFI and volume as follows. A plus sign means the current bar’s value is greater than the previous bar’s value. A minus sign means the current bar’s value is less than the previous bar’s value.

Volume MFI Label:

  • Green //Green
  • Fade //Blue
  • Fake //Red
  • Squat //Violet

Green. This bar shows an increase in volume and the MFI relative to the previous bar. Hence, there is price movement, and the MFI is larger for this bar than that for the previous bar. Further, more players are entering the market as signaled by the increase in volume. This activity in the futures market means that off-floor traders are very active. In addition, the price action is directional–that is, the market is moving in one direction due to the involvement of new traders putting on new positions. This is the kind of day that you would already want to have a trade on in the same direction.

Fade. This bar shows a decrease in volume and the MFI relative to the previous bar. The market has slowed and there is a minor amount of activity as indicated by the low volume. This type of day is called a fade, as the traders’ interest in the market by this point is fading. Often, this sort of day happens at the end of a trend. The market has simply reached a point where nobody is willing to establish any new positions. At this point the market appears to be suffering from a certain amount of boredom. Keep in mind, however, that out of this market condition, a new trend could emerge.

Fake. This bar shows a decrease in volume but an increase in the MFI. This condition means that the market is moving more relative to the previous bar (the greater MFI), but the lack of volume is evidence that there is no new participation. The price action may be driven by just the traders in the pit and is not attracting new players from the outside. Williams has an hypothesis, that the traders in the pit may be just strong enough to push the market to price levels where there are many stop orders resting in the hands of the brokers, hence faking out the off-floor traders.

Squat. This bar shows an increase in volume relative to the previous bar, but the MFI is lower. The increase in volume indicates heavy activity, but the decrease in the MFI indicates that the market is unable to make any real headway. Volume increased, the trend has stalled and the price movement has stopped. This price action usually, but not always occurs prior to an important move in the opposite direction. This type of bar is called a squat bar because the market appears to be squatting prior to a breakout. Often, the breakout of such a bar will indicate whether this squat is a trend reversal squat or a trend continuation squat.


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?

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

  1. TAC Bolsa • 07/05/2018 #

    Improved version in the Blog

  2. Real Pro • 07/05/2018 #

    Thanks for sharing this. I understand the 4 conditions, but can you explain the following please?

    – how is labelling above the bar different from below the bar?
    – what does a large arrow with no other labelling mean?


  3. Real Pro • 07/05/2018 #

    From the updated version, here is a screenshot. The first bar has “Green” text with a large purple up arrow. The second bar has “Green” text with a small green up arrow.

    • TAC Bolsa • 07/05/2018 #

      Sorry, it’s a file error.

      I have already uploaded a new File.

  4. Real Pro • 07/05/2018 #

    Thank you; the new version looks better. I wonder if you’d mind explaining what it means when the arrow is above or below the candle?

    • TAC Bolsa • 07/05/2018 #

      Here you have the documentation of the indicator

  5. Bard • 07/05/2018 #

    Hi TAC Bolsa, thanks for providing this interesting indicator. I’m wondering how would you adjust the code so that it draws a histogram along the horizontal axis instead of candles? Cheers.

    • TAC Bolsa • 07/05/2018 #

      remove the ATR, and drawcandle (open, high, low, close)

      substitute everything
      DrawText (“▾”, barindex, high, SansSerif, Standard, 20) colored (200,0,0)
      DrawText (“”, barindex, high + atr / 2, SansSerif, Standard, 10) colored (200,0,0)

      signal = -1

      substitute everything
      DrawText (“▴”, barindex, low, SansSerif, Standard, 20) colored (153,0,153)
      DrawText (“”, barindex, low-atr / 2, SansSerif, Standard, 10) colored (153,0,153)

      signal = 1

      return signal

  6. Bard • 07/05/2018 #

    Thanks, I have tried altering and adding my amended code many times but without getting the indicator to work.. I’m not sure I understand what you meant by, “substitute everything”?

    I’ve removed:
    atr = averagetruerange[10](close)*0.5 and
    drawcandle(open,high,low,close) and replaced with “return signal”

    I’ve removed all reference to atr within the code so a line of code now reads


    “Fake”,barindex,high…, (instead of the original “Fake”,barindex,high+atr/2… ).

    I have done that for all atr’s so they all now read as either “low,” (instead or “low+atr/2”), or “high,” (instead of “high+atr/2″). (I appreciate that the apostrophes ” ” only surround the words like Fake etc)

    I have placed “signal = 1” or “signal = -1” for every condition from (a) to (ee).


    ee = meanminus and b31 and volplus and MFIminus
    if ee then
    signal = -1

    Any ideas what I am doing wrong?

    Thanks again,

    • TAC Bolsa • 07/05/2018 #

      substitute / removed everything


  7. Bard • 07/05/2018 #

    I’m sorry I don’t understand. Perhaps you could explain in your language and I can try Google translate?
    Or perhaps write two lines of this code as they are meant to be for the indicator to function as it was originally designed along the x-axis? Thanks again!

    • TAC Bolsa • 07/05/2018 #

      Este es el código original..

      Nada que ver con la versión 1,1 del blog donde se mejora con el cumulative Delta en el Volumen.

  8. TAC Bolsa • 07/05/2018 #

    //Bill Williams Profitunity

    MFI0 = RANGE*(high – low) / volume
    MFI1 = RANGE*(high[1] – low[1]) / volume[1]

    MFIplus = MFI0 > MFI1
    MFIminus = MFI0 high[1]
    meanminus = (high + low) /2 volume[1]
    volminus = volume < volume[1]

    b13 = open (high + low) /2 and close > open[1]
    b31 = open > (high + low) /2 and close < (high + low) /2 and close < open[1]


    a= meanplus and b13 and volplus and MFIplus
    if a then
    signal =1

    b = meanplus and b13 and volminus and MFIminus
    if b then
    signal =1

    c = meanplus and b13 and volminus and MFIplus
    if c then
    signal =1

    d = meanplus and b13 and volplus and MFIminus
    if d then
    signal =1

    e = meanminus and b13 and volplus and MFIplus
    if e then
    signal =1

    f = meanminus and b13 and volminus and MFIminus
    if f then
    signal =1

    g = meanminus and b13 and volminus and MFIplus
    if g then
    signal =1

    j = meanminus and b13 and volplus and MFIminus
    if j then
    signal =1

    i = meanplus and b31 and volplus and MFIplus
    if i then
    signal =-1

    o = meanplus and b31 and volminus and MFIminus
    if o then
    signal =-1

    t = meanplus and b31 and volminus and MFIplus
    if t then
    signal =-1

    aa = meanplus and b31 and volplus and MFIminus
    if aa then
    signal =-1

    bb = meanminus and b31 and volplus and MFIplus
    if bb then
    signal =-1

    cc = meanminus and b31 and volminus and MFIminus
    if cc then
    signal =-1

    dd = meanminus and b31 and volminus and MFIplus
    if dd then
    signal =-1

    ee = meanminus and b31 and volplus and MFIminus
    if ee then
    signal =-1

    if signal =1 then

    return signal coloured (r,g,b) style(histogram)

  9. Bard • 07/05/2018 #

    Thanks for providing the code @TAC Bolsa.

    Do you think this code below is doing what Bill Williams intended the price / volume indicator to do?
    (I am not a coder, I put this together from 3 different versions)

  10. Bard • 07/05/2018 #

    The code will not “add” so here it is:

    Bill Williams’ Price/Volume Indicator:

    //Bill Williams’ Price/Volume Indicator

    MFI = RB / V
    RB = Range //high-low in points
    V = Volume

    MFI0 = Range / Volume
    MFI1 = (Range[1]) / Volume[1]

    MFIPlus = MFI0 > MFI1
    MFIMinus = MFI0 Volume[1]
    VolMinus = Volume < Volume[1]

    if MFIPlus and VolPlus then
    elsif MFIMinus and VolMinus then
    elsif MFIPlus and VolMinus then
    elsif MFIMinus and VolPlus then

    return MFI1 coloured (0,255,0) as "Follow Trend Green", MFI2 coloured (0,0,255) as "Fade Blue", MFI3 coloured (255,0,0) as "Fake Red", MFI4 coloured (255,0,255) as "Squat Violet"

    • TAC Bolsa • 07/05/2018 #

      // More info:

  11. Bard • 07/05/2018 #

    Thanks but the links broken and I can’t find it by searching for parts of the URL?

    I am not sure why you posted an image of Williams Price / Volume Indicator and then gave a posted code that is not Williams code? Your code makes it harder to actually read the volume changes because your indicator floats (and references ATR) and is not based on the x-axis.
    Thanks again for your input.

    • TAC Bolsa • 07/05/2018 #

      You confuse the things “Bacon with speed” ..

      The links work perfectly.

      The indicators are reviewed and validated by their authors or active representative.

    • TAC Bolsa • 07/05/2018 #

      What you have is an evolution of an indicator validated by its authors ..

      What Ulted seeks is for payment .. and for them if you want it you can pay it in other platforms …

      You have to know how to differentiate between an evolution of an original indicator.

      Instead of criticizing the work, you should develop it yourself.

    • TAC Bolsa • 07/05/2018 #

      What you are looking for is the Market Facilitation Index (MFI), which has nothing to do with this indicator.

      Now I understand why I wanted to convert it into Histogram …

      First you should be informed of the differences of one or the other indicator to request or make changes … if NO you know the bases of the indicators.

  12. Bard • 07/05/2018 #

    “Bacon with speed” is a new one on me,

    Apologies, the link was not working on my iphone but works okay on my Macbook. Thanks.

    I am not criticising, and there is no need to take any offence, I am simply stating a fact. Where is this image at the top of this page that you posted taken from? Is it Williams original indicator or an evolution by a programmer, because to me, it looked exactly like the Williams Price/Vol indicator that I had seen on the web and which I assumed was the code I was downloading in the in the itf file.

    But as I later realised it was not, as you clearly have explained above and that this code on this page is for an evolution of Williams’ code.
    Hence my request for a histogram fixed to the x-axis like WIlliams’ indicator, so it is very easy to see volume differences — That mismatching of the images was confusing but it’s no big deal, really. If you had posted the floating ATR candlesticks image I wouldn’t have downloaded it and then spent hours trying to configure it to be like WIlliams’ intended it to be! I hope I got it right though but you have not said of the code I posted is good? Anyway, I was simply after the original code.

    • TAC Bolsa • 07/05/2018 #

      I already published it … in prorealcode …

      Next time … request a change of programming from the indicator to prorealcode ..

    • TAC Bolsa • 07/05/2018 #

      I already published it … in prorealcode …

Register or


avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
TACBOLSA A new version is missing that solves some programming problems that I requested, As soon ...
Gianluca Realy. Thank you!
Geronima Ortiz okay bien estaré pendiente en esta pagina gracias
Domenec Aqui dejo colgado link del video para ver como funciona el indicador
Geronima Ortiz Gracias Domenec
gabri Hi Bard, the second arrow should have appeared 16 bars before. You can write me at ggabri@me...
dertopen @gabri hi Gabri i get the same error: define highlow and highhigh whic are the good numbe...
Abz Violet , when trying to automate this my trades are not opening at the same entry point as w...
Violet Abz, the arrows and circles are only the *first part* of a trade setup. If certain conditio...
gabri Violet, you did an excellent job. I attached here
gabri Gianni, io non faccio trading automatico ma sono sicuro che Nicolas ti potra' aiutare.
Matt B Bonjour, Savez-vous à combien de bougies après apparaît l'ellipse ? Il faut faire attention,...
Matt B RolanBay, L'ellipse apparaît-elle à la bougie notifiée et reste ?
GraHal Please forgive the daft question, but why is 3-bars-trailing-stop-williams-3.itf included a...
Kris75 Hi, Seems great but what would be the code for a stock ? Thanks, Chirs
oakenstream Paul, what is the best way in your opinion to know if I have over optimized?
Al Ok grazie Gabri
Paul thnx for posting. Combine it with Williams’ 3 bar trailing stop to create strategy!
gabri Paul, he uses the best day of the week to trade (he figured out the best day to enter, exit...
Steven Bahia Hi Nicolas - great indicator - is there a way to place a alert when the Oscillator crosses ...
Nicolas Alerts can't be programmed, you have to set them yourself with the Alert tool of the platfor...
Steven Bahia just to add to this would there be a way to establish a entry price from the Oscillator
Paul Good work ! I was looking for way to maximise profits and this serves it's purpose well !
gabri Thanks!!
Kris75 Hi Gabri I launched a very simple strategy based on the 3 bars trailing stop that you cre...
3 years ago
Haos Visual
Haos Visual
Lyny @Nicolas, how can i put this code in ProOder when for example i want to buy 1 share with con...
Nicolas Please open a new topic on forums for coding requests, I'll help you there. 
Johan Swarts Lyny / Nicolas Please advise whether you proceded with the code in ProOrder and if so where...
Nicolas This is the Bill Williams' Alligator not fractals.
Nicolas The code is correct, don't know if the label and color are the same as other trading softwar...
peppe novellino Hi Nicolas, the settings of the alligators are not editable. How can I change it? Thanks in ...
xel Thanks a lot Nicolas! Always kind words and attention from you! Cheers!
lglmrc Can't make it work, says: "Define p variable"
Ezio Hi Xel and thanks, do you know if there is a way in PRC of reading/counting intraday ticks?...