MBFX Timing indicator

MBFX Timing indicator

The MBFX Timing indicator is one of the indicator of the well known “MOSTAFA BELKHAYATE” system.
In fact this oscillator could be compared to a classic stochastic. It displays in percentage the current movement of the price around a mean calculated by the a dynamic scale.
It is commonly use to take trade decisions with the “center of gravity” (also named COG) to detect the potential reversion to the mean of the price.
This version is translated from a Pinescript code by a request on the french forum.



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. gabri • 04/25/2017 #

    Excellent job like always!! are you working also on the Barycenter indicator?

    • Nicolas • 04/25/2017 #

      No but I think you can find a lot of different version of the “center of gravity – COG” indicator in the forums.

  2. Bard • 82 days ago #

    I found a version of the Belkhayate COG indicator here:
    https://www.prorealcode.com/topic/center-of-gravity/#post-19393 (Link button not working with Safari v12)

    The Mostafe Belkhayate provided the rules here: http://www.mbfxsystem.com/mbfx-manual.pdf

    Yet, this is the only time using PRT however that I haven’t been able to get a system to take one single trade based on rules of a trading system! That’s including with relaxing the buy and sell rules, even reversing them so that a buy trade is taken on a crossover of the upper red COG lines (already tried price “equals” and price crosses under with no luck).

    The main problem is that you will find the COG and the Timing Indicator are never in time with each other (ironic right?). I used of the zero lines too for the “Timing” Chart (instead of price being between the -4 and -8 for long trades and +4 and +8 for the shorts), again no luck… I also tried using “previous periods” in the assisted creation too but again – not one singe trade on years of 4 hour S&P 500’s (or 1 hour data). If anyone ever gets it to take a trade please let me know.

    • Nicolas • 82 days ago #

      The COG code in the topic you mentioned uses DPO to get the future price in order to simulate the repainting behavior of the Center of Gravity (polynomial regression). That’s the reason why you’ll never get any chance to trigger the order like the way it should by looking at price chart of the past, because the COG wasn’t at the same place in real time.

  3. Bard • 81 days ago #

    Cheers @Nicolas, If Belkhayate’s COG Barycentre is repainting in his automated system, how does he get it to line up with his Timing indicator?

    I’m wondering if anyone has his original COG/Barycenter code? I searched for a long time and found these two Metatrader Timing codes (EA and Indicator code), but am unable to open them. I’m hoping at least one of them has the original Timing code because his Timing Indicator uses a simple colour coded green and red line with yellow being the trigger: https://www.dropbox.com/s/zicf73tybcn46oj/mbfx.png?dl=0


    Also is there anyway to get the Ehler’s Centre of Gravity indicator (with added std dev lines) onto a Price chart?

    Thanks again,

    Ps/ Here’s a good explanation of COG / Linear Regression repainting for anyone who prefers a visual chart example: https://forums.babypips.com/t/linear-regression-channel/67772/6

    • Nicolas • 81 days ago #

      The concept is simple. It’s the almost simple strategy based on mean reversing you can find. Wait for the price to exceed a very large standard deviation and bet on its return to its mean and with a confirmation with that so called timing indicator which is nothing more than a renamed stochastic oscillator. This strategy has gained success in the late 2000 because of the repainting issue that showed great signals on the past data.
      Anyway, there’s nothing more here than in any other mean reversion strategy, the fact is that it depends on how you represent the price deviation and its reversion. It’s pretty similar to your beloved Kase Dev Stop;)

  4. Bard • 56 days ago #

    Cheers Nicolas and sorry, I had no notification you’d replied here?

    there’s nothing more here than in any other mean reversion strategy,

    …Except now I get to play with linear regression and STE bands! Lol.

Register or


avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Vicari0us Hi Nicolas, How do I incorporate this indicator into my strategy? I mean what do I call ...
Nicolas Use the CALL function: https://www.prorealcode.com/documentation/call/ or use the 'fx' butto...
Vicari0us Perfect thanks! I got it
Carlos Garcia why doesn´t work on Dax?
Nicolas Try to restrain to trading hours when Volumes are present (customized trading hours: righ cl...
Maik2404 es sind leider nur long Positionen und keine Short zu erkennen.
Maik2404 Vytautas: es bleibt aber nur bei long Auslösungen
ullle73 this one is not a winner, have backtested it on almost all pairs, does not have an edge
teddy58 Ich habe es mit N= 1,5 und N=2,5 getestet mit 200000 Einheiten. Es funktioniert leider erst ...
Matriciel I use this indicator to help me make a decision when there is a divergence. The divergences ...
Jan Wind Hi, I personnaly am not a big fan of ZIGZAG indicator, as it repaints itself during time. ...
luxrun Good evening Nicholas, I can not see the colors on the line of the moving average, but only ...
Nicolas Yes, you must choose the oscillator that will color the moving average. Example: ONCE UseC...
Doddge Bonjour Nicolas, savez-vous s'il existe un indicateur pour Prorealtime similaire au ST-TL fi...
Nicolas Pour les demandes de conversion de code, et si vous possédez le code source de l'indicateur ...
Doddge Merci beaucoup Nicolas, j'ai utilisé le formulaire avec les informations que j'ai sur cet in...
abd78 @Vonasi I saw that you did some work on seasonality, I wondered if you wanted to go here and...
Vonasi Sorry - my understanding of Italian is zero so if I watch the video I won't understand it I'...
kuroobi Parfait , merci beaucoup .
Juan Salas Hi FULVIO09, Nice piece of work. It seems to work very well. Does only work for INDEXES??...
Johann Hi @FULVI09, I understand the instructions however I'm not too sure how to determine the "p...
supertiti Hola Ale Can we have this same code from Nicolas's code in smoothed heikin Ashi? Sorry...
ALE Ok, We can discuss in the topic "3D Candlesticks TOPIC" Write me more details
Gianluca Hello Nicolas, my prt become stuck when i load the indicator, is there any problem with it?
m-zeter Has anyone found a solution for Sofitech? Would it be possible to draw two lines? An upper l...
m-zeter Hm, i dont know exactly why, but I think, that the indicator needs lots of power. I need als...
Stenozar Hi I can't visualize the indicator on the chart? can anybody help me, please?
Nicolas Add it on price using the wrench on the left upper side of the price chart.
Stenozar thanks Nicolas, I' ll try again!
anametsinwha Is it possible to change it to highs and lows rather than open and close?
apachx Hi. Please, describe the algorithm in words. I want to understand how it works, but for now...
10 months ago
Alai-n Thanks...
GianfrancoCeck Salve Nicolas. Ho provato ad inserire anche questo suo indicatore, ma sulla T3 ho sempre la...
jeanroger411 bonjour, comment avez vous fait ? chez moi ils ne s'affichent pas merci
jeanroger411 bonjour, comment avez vous fait ? chez moi ils ne s'affichent pas merci