Phase Change Index

Custom MT4 expert advisors published here.

Moderator: admin

Phase Change Index

Postby Alexander.Gettinger » Mon Aug 18, 2014 2:05 pm

Original LUA oscillator: viewtopic.php?f=17&t=60141.

Formulas:
PCI = 100*Up/(Up+Dn), where
Up = Sum(Abs(Price[i-Length]-Gradient)), if Price[i-Length]>Gradient,
Dn = Sum(Abs(Price[i-Length]-Gradient)), if Price[i-Length]<Gradient,
Gradient[i] = Price[i-Length]+Momentum[i]*i,
Momentum[i] = (Price[i]-Price[i-Length+1])/Length.

PCI_MQL.PNG


Download:
PCI.mq4
(3.34 KiB) Downloaded 739 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 70 guests