Differential & Normalised Divergence indicators

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

Differential & Normalised Divergence indicators

Postby Alexander.Gettinger » Mon May 23, 2011 3:19 am

Inquiry for these indicators has entered me on mail.

Formulas:
Differential[i]=Price1[i]-Price2[i], if AsPercentage=false or
Differential[i]=(Price1[i]-Price1[i-1])/Price1[i]-(Price2[i]-Price2[i-1])/Price2[i], where
Price1 is a price of instrument 1 and Price2 is a price of instrument 2.

Normalised Divergence[i]=(Price1[i]-Price2[i]-Avg(Price1-Price2))/StDev(Price1-Price2), where
Avg is a average for range form [i-AveragePeriod] to [i] and StDev is a standard deviation for range form [i-AveragePeriod] to [i].

Differential.png


Download Differential indicator:
Differential_Indicator.lua
(6.31 KiB) Downloaded 797 times


Download Normalised Divergence indicator:
Normalised_Divergence_Indicator.lua
(6.2 KiB) Downloaded 802 times


The indicator was revised and updated
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Differential & Normalised Divergence indicators

Postby Showman » Tue May 24, 2011 6:55 pm

Thank you for your endeavours :D
Showman
 
Posts: 2
Joined: Sun Apr 03, 2011 7:14 pm



Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider] and 24 guests

cron