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?

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

  1. Abz • 75 days ago #

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

  2. camporan • 71 days ago #

    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 • 67 days ago #

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

    • camporan • 57 days ago #

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

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Nicolas Use the color variables R and G to test if the trend is bullish (R=0) or bearish (R>0).
s00071609 Where can i find the syntax to test the colour of the line, I am calling the indicator value...
Nicolas You should open a new topic to discuss about the strategy and its coding.
Sukhdev Golen Hi Nicolas, how to use this on tradingview?
Nicolas You can't. All codes here are made for the ProRealTime trading platform: https://www.proreal...
supertiti Bonjour Anthon...y ? On est vraiment tout près de ce que propose Julien , sur sa dernière...
anthon Salut à tous et merci ! Content que les indicateurs vous plaisent . Abonnez vous à ma page y...
Varadero54 Bonjour Anthon ... pourrais-tu me communiquer l'adresse ou le nom de ta chaine YOUTUBE ... j...
HeikinAshi https://www.prorealcode.com/topic/ssl-channel/
jobswaps oyes aste uno de soportes y recistencias
jobswaps eso lo necesitamos
Nicolas
1 month ago
Jan Wind "There are two methods of using Kagi: We buy when there is a turnaround and sell when there...
Nicolas Thanks, let us know how it is going?
Jan Wind Hallo Nicolas, I have tested the pre-mentioned concept, and had to change the concept : ...
Nicolas
1 month ago
LRMA
LRMA
0
Indicators
Alai-n @Vonasi Thanks
jiddan78 how to convert to afl amibroker ?
Nicolas We do not supply free coding assistance for AFL Amibroker on the website. You can ask for pa...
riz001 thnk u
geroniman bonjour Nicolas, j ai un indicateur le Tiger . J aiemrai placer des fleches buy et sell dire...
Nicolas Merci de formuler les demandes sur le forum. ça n'est pas le bon endroit et hors sujet ici ! ;)
GraHal Is there a switch to start / stop the Trailing SL / TP as when I GRAPH SL & TP neither a...
robertogozzi No GraHal, there's no topic open. It would be great if you could start one and post that lin...
GraHal Discussion Topic started here ... https://www.prorealcode.com/topic/discussion-re-auto-sy...
cavineet Hi Nicolas, I have been using pr real time extensively but just end of the day. I would app...
Nicolas Please ask questions on forums. Not the place here and not related to that post:)
ggolfet I tried to use it (with prorealtime version 11 - end of day version). I receive an error mes...
Nicolas Try to reduce the displayed units of the chart. MaxScale should always be superior to Start...
ggolfet Thanks Nicolas, I imported the itf file and solved the problem.
vandenacker THANKS A A LOT FOR SHARING. I like your trade. I try to remproduce your board but i dont arr...
umebon Tnx for sharing!! Can someone help me how i can call for the mydayhigh and mydaylow for to u...
LucioleLucide Clean view, thanks for sharing
Alberto Aguilera Hi! Thanks for your strategy Anyone can check it with 200 bars?
winnie37 yes. "No ground breaking math here, but I am finding very useful and some algo based on it i...
Jan Wind Also interesting to know what does not work, which set up you use, saves me investigating ! ...
winnie37 i just set the proorder like this: buy when 50/100/200 phase >0 and sell when under 0, go...
Jan Wind Good evening Roberto, I do not understand Italian, so I could not read the background. ...
robertogozzi Results, while matching when it's SMA compared to TRSMA, are different in the case of WMA an...
Vinks_o_7
5 months ago
Jan Wind fatcat, sorry to hear. Today I did run the code for 100.000 bars (from 17 dec 2017 till 31 ...
GraHal I confirm that I get almost exactly the same (+7 days difference now) results as Jan states ...
Jan Wind A discussion Topic is opened, and can be found at https://www.prorealcode.com/topic/di-tem...
coscar Ottimo lavoro. come sempre!
luxrun Nello studio di Sepiashvili viene descritto anche un altro indicatore, il Q-indicator, che è...

Top