Dual Distance From Average indicator

v10.3
Dual Distance From Average indicator

I still debate myself between indicators that try to predict the future and those that illustrate a simplified view of the obvious market moves. I think that indicators that are very clear help in 2 ways: 1) indicating trades that are conceptually simple, that everybody understands and where you visualise your edge and 2) not forgetting to look at the basics.

This indicator won’t predict any future: it aims to put in a clear way what the market does, and it is conceptually very simple.

I use it for trend following. It measures the distances between price (smooth version of price) and moving averages (exponential, default of 70 and 200 as I use for Spanish stocks). The behaviour that I look for are bounces with (or close to) the 0 line. Interpretation: a bounce in the 0 line simply is the moving average acting as a support (if the bounce is a local minima) or resistance (if the bounce is a local maxima).

I use a smoothed version of the price (exp moving average, default 15) for 2 reasons: 1) close price on itself it gives too spiky signals that become more complex to interpret, 2) it is very common for price to pierce a moving average, but it is far less likely that a smooth version of close (i.e. another moving average) pierces it.

Finally, I print (red line) the distance between the 2 moving averages (70 and 200). This is simply to bring in the longer term trend (bull > 0, bear < 0) as well as MA crossings.

You may likely see this as a redundant indicator if you print your moving averages in the chart, and you will be right. This is just a way to bring moving average interpretation to a simplified form.

I hope someone finds it useful. Any feedback or comments are welcome!

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. Abz • 07/30/2019 #

    hello ,
    Thanks for this indicatior , what timeframe do you use it on ?

  2. camporan • 07/30/2019 #

    You can use it 5M onwards, but the longer timeframe the more accurate it is. My preferred are 30M and daily. Also, use your judgement to see if the bounces do happen historically: the edge is just likelihood, and the best way to know how good your edge is, is by looking at the past 🙂

  3. manchokcity • 07/30/2019 #

    can we have it in mql4 platform? or how or which platform do we use it?

    • camporan • 07/30/2019 #

      I don’t use MetaTrader so I won’t be able to do the translation myself. Sorry!

  4. Alexander9 • 07/30/2019 #

    This can for amibroker ? . Thanks

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Xenotrax A première vue, sa à l'air d'être un indicateur très puissant sur de petites temporalités, j...
merri Bonjour Nicolas, Comment transformer cet indicateur en bot sur PRT ?
Nicolas Cela a déjà été fait, voir ce sujet: https://www.prorealcode.com/topic/strategia-con-lindica...
Nicolas change the last line with: return v coloured(r,g,b) style(line,2), v+band coloured(168,168,1...
Paolo.B Thanks ... works as i wanted.
Kanamax Bonjour Nicolas, comme Paolo.B je souhaiterais utiliser cette indicateur au sein d'un code. ...
Boris Hi IVMcm, thanks for your amazing work. I have tested all of your indicators and use some of...
IV Mcm With pleasure and thanks!
ashiash how to use this indicator can i use tradingview platform
zilliq Thanks @Nicolas. I tried to use it as Trend in a proorder system, but don't know why, it doe...
Suzu Yuk He is right. MT and mavgMT are not defined and causing errors.....
Maxime Baudin Super travail !
Yanic c'est top j'adore
Maxime Baudin Merci l'ami, passe une bonne semaine
IV Mcm Merci de même ;)
Roland57800 Bonjour Noobywan, si je comprends bien l'utilisation de ce code que je trouve particulièr...
Noobywan Bonjour, quand la question a été posée dans le forum à celui qui avait fait la requête en am...
Fabian This Code draws only a retangle if the condition has been confirmed and NOT before (in that ...
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands
Emperor.it "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm https://www.prorealcode.com/programming-with-prorealtime/
Daniele Maddaluno Écrivez-moi où vous préférez you can easily find me on LinkedIn
AK27 C'est payant visiblement sur linkdin je peux pas vous envoyer, discord vous avez ?
Nicolas C'est dans ce sujet: https://www.prorealcode.com/topic/trendline-une-approche-du-trading/ M...
Pensera Bonjour Nicolas, comment est-il possible de backtester cet indicateur? cela fait une erreu...
Nicolas Oui bien sûr, il doit y avoir pas mal de sujets dans le forum à ce propos.
fazel53 How do i attach this indicator to my mt5 platform?
Nicolas You can't! All indicators here are for ProRealTime trading platform: https://www.prorealtime...
Manu L. Bonjour Nicolas, j'ai créé un screener avec l'aide à la prog en TF weekly mais je voudrai...
wtangsiri C'est exactement le même signal que donne le croisement et le décroisement de deux EMA (7 et...
PHAN100 bonjour, j'ai un bug sur le programme recopié prorealtime me dit qu'il y a un problème à ...
Nicolas c'est exactement ce que je fais entre les lignes 58 et 64 pour pouvoir tracer la ligne complète
Italo Fabian Nicolas, Ces matrices sont-elles des vecteurs unidimensionnels ou multidimensionnels? Depu...
Denis Bonjour Nicolas et RicLg, Merci Nicolas pour cet indicateur intéressant et merci RicLg pour...
IV Mcm Vous devez faire un clic droit sur le prix > propriété > ajouter indicateur Si vous...
punch1 Fonctionne pas chez moi il s'affiche rien pourtant j'ai bien fait le clic droit sur le prix ...
punch1 Je peux te faire un screen d'ecran si tu as un email :)
ferros bonjour , super votre indicateur!!!! est-il possible de l'avoir en histograme +1 /-1 por en...
IV Mcm V2 is coming
SudhirRN is this code working for on tradingview plartform?
Nicolas No. All our codes are made to be used with ProRealTime trading platform: https://www.proreal...

Top