Page 1 of 1

Disparity Index

PostPosted: Wed Sep 05, 2012 9:11 am
by Apprentice
Di.png


A technical indicator that measures the relative position of the most recent closing price to a selected moving average and reports the value as a percentage. A value greater than zero suggests that the asset is gaining upward momentum, while a value less than zero can be interpreted as a sign that selling pressure is increasing.

Formula
Disparity Index = (Close - MA )/ MA *100

DI.lua
(2.11 KiB) Downloaded 1437 times

Averages DI.lua
(4.8 KiB) Downloaded 938 times

For Averages DI you will need to install averages indicator.
viewtopic.php?f=17&t=2430&p=5705&hilit=averages#p5705

Indicator-based strategy.
https://fxcodebase.com/code/viewtopic.php?f=31&t=72435

Re: Disparity Index

PostPosted: Thu Dec 27, 2012 9:49 pm
by Coondawg71
Can we please request this version of indicator added for development.

Histogram of Disparity Index

Thanks

Sjc

http://www.mql5.com/en/code/1353

Re: Disparity Index

PostPosted: Fri Dec 28, 2012 3:17 am
by Apprentice
Your request is added to the development list.

Re: Disparity Index

PostPosted: Fri Dec 28, 2012 5:02 am
by Apprentice
di.png

Disparity Index.lua
(5.21 KiB) Downloaded 1365 times

Averages Disparity Index.lua
(7.1 KiB) Downloaded 940 times

For Averages DI you will need to install averages indicator.
viewtopic.php?f=17&t=2430&p=5705&hilit=averages#p5705

Re: Disparity Index

PostPosted: Thu Oct 24, 2013 3:21 pm
by Patrick Sweet
Although simple and less sexy than many others, this is very useful.
Could we add the 'Averages' lua to it..that is can we expand the MAs available to include the other more sensative ones.....?

Re: Disparity Index

PostPosted: Thu Jul 02, 2015 4:43 am
by Apprentice
Averages Disparity Index.lua / Averages DI Added.

Re: Disparity Index

PostPosted: Thu Nov 24, 2016 6:01 pm
by Mattia
Hi!

It s possible make this indicator in this way:

Disparity Index = ((Close - MA )/ MA *100)*100

for see a bigger range. I think it's better...

_____________________________________________

And its possible make a quantitative version?

X * natural logarithm (Disparity Index1/Disparity IndexN)

Where;
Disparity Index = ((Close - MA )/ MA *100)*100
X= a variable>0 , a positive number
Disparity Index1= the current valor of Disparity Index
Disparity IndexN = Disparity Index of N candelstick ago ( example the previous 5 or 60)
____________________________________________________

I think it's a good indicator.

Thanks!!! :)

Mattia

Re: Disparity Index

PostPosted: Fri Nov 25, 2016 5:39 am
by Apprentice
EURUSD m1 (11-25-2016 1052).png

DI Modification.lua
(2.93 KiB) Downloaded 873 times

Disparity Index = ((Close - MA )/ MA *100)*100
DI Modification Quantitative.lua
(3.45 KiB) Downloaded 880 times

DI Modification Quantitative = X * natural logarithm (Disparity Index1/Disparity IndexN)

Re: Disparity Index

PostPosted: Fri Nov 25, 2016 12:31 pm
by swingtrader
hi apprendice,

can you create a strategy based on disparity index indicator

    buy; DI cross over Top line
    sell: DI cross under Bottom line

Re: Disparity Index

PostPosted: Fri Nov 25, 2016 4:46 pm
by Mattia
Thabks for modification! :D :D

Mattia