http://fxcodebase.com/code/viewtopic.php?f=38&t=59584php
Original LUA indicator: viewtopic.php?f=17&t=24131.
Formulas:
PPMCC = Numerator/Denominator, where
Numerator = MVA(AB),
Denominator = Sqrt(DenominatorC*DenominatorD),
DenominatorC = MVA(C),
DenominatorD = MVA(D),
AB = A*B,
C = A*A,
D = B*B,
A = Price(SymbolX)-MVA(SymbolX, PriceX, Length),
B = Price(SymbolY)-MVA(SymbolY, PriceY, Length).
xcode
Download:post