I looked everywhere and have been unable to find the Percent of Resistance (PCR or POR) indicator for MT4. I know the Dealbook 360 platform has it. Here is some information about it:
MarketInOut.com - Technical Analysis from A to Z
This is the CTL code:
indicator Percent_Of_Resistance;
input price = close, period = 12;
draw line("POR");
vars i(number), lo(number), dif(number);
begin
for i := front(price) + period - 1 to back(price) do begin
lo := movmin(low, i, period);
dif := movmax(high, i, period) - lo;
if dif > 0 then
line[i] := 100 * (price[i] - lo) / dif
else
line[i] := 100;
end;
end.
If anybody can write or find this code for MT4 I greatly appreciate it.