Disparity Index

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Disparity Index

Postby Apprentice » Wed Sep 05, 2012 9:11 am

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 687 times

Averages DI.lua
(4.8 KiB) Downloaded 190 times

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

The indicator was revised and updated
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18849
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Disparity Index

Postby Coondawg71 » Thu Dec 27, 2012 9:49 pm

Can we please request this version of indicator added for development.

Histogram of Disparity Index

Thanks

Sjc

http://www.mql5.com/en/code/1353
User avatar
Coondawg71
FXCodeBase: Graduate
 
Posts: 324
Joined: Sat Jan 15, 2011 11:45 am

Re: Disparity Index

Postby Apprentice » Fri Dec 28, 2012 3:17 am

Your request is added to the development list.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18849
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Disparity Index

Postby Apprentice » Fri Dec 28, 2012 5:02 am

di.png

Disparity Index.lua
(5.21 KiB) Downloaded 570 times

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

For Averages DI you will need to install averages indicator.
viewtopic.php?f=17&t=2430&p=5705&hilit=averages#p5705
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18849
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Disparity Index

Postby Patrick Sweet » Thu Oct 24, 2013 3:21 pm

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.....?
Patrick Sweet
 
Posts: 72
Joined: Fri Apr 26, 2013 4:23 am

Re: Disparity Index

Postby Apprentice » Thu Jul 02, 2015 4:43 am

Averages Disparity Index.lua / Averages DI Added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18849
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Disparity Index

Postby Mattia » Thu Nov 24, 2016 6:01 pm

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
Mattia
 
Posts: 12
Joined: Tue Mar 08, 2016 9:18 am

Re: Disparity Index

Postby Apprentice » Fri Nov 25, 2016 5:39 am

EURUSD m1 (11-25-2016 1052).png

DI Modification.lua
(2.93 KiB) Downloaded 124 times

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

DI Modification Quantitative = X * natural logarithm (Disparity Index1/Disparity IndexN)
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18849
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Disparity Index

Postby swingtrader » Fri Nov 25, 2016 12:31 pm

hi apprendice,

can you create a strategy based on disparity index indicator

    buy; DI cross over Top line
    sell: DI cross under Bottom line
swingtrader
 
Posts: 29
Joined: Mon Oct 24, 2011 3:14 pm

Re: Disparity Index

Postby Mattia » Fri Nov 25, 2016 4:46 pm

Thabks for modification! :D :D

Mattia
Mattia
 
Posts: 12
Joined: Tue Mar 08, 2016 9:18 am


Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 19 guests