Hi all, I'm a new eSignal user, but not new to trading. I'm moving over my indicators from my current software platform, but I'm having difficulty with one of them. This is the PFE indicator originally developed by Hans Hannula.
I like this indicator; I find it to be a very useful indicator in providing me with clues about what the market is doing. However, I find the eSignal efs version of it (which can be found here in the forum ) to be limited.
I know very little about javascript; I have been able to go into it and modify the length, but the code from my broker contains an additional input for smoothing length... here is their version in its entirety:
Would someone help me modify the PFE.efs file to include a smoothing length and two inputs that I can change without having to go into the efs file - one for length and the other for smoothing length?
Any help would be greatly appreciated.
I like this indicator; I find it to be a very useful indicator in providing me with clues about what the market is doing. However, I find the eSignal efs version of it (which can be found here in the forum ) to be limited.
I know very little about javascript; I have been able to go into it and modify the length, but the code from my broker contains an additional input for smoothing length... here is their version in its entirety:
declare lower;
input length = 10;
input smoothingLength = 5;
def diff = close - close[length - 1];
def val = 100 * Sqrt(Sqr(diff) + Sqr(length)) / sum(Sqrt(1 + Sqr(close - close[1])), length - 1);
plot PFE = ExpAverage(if diff > 0 then val else -val, smoothingLength);
plot UpperLevel = 50;
plot ZeroLine = 0;
plot LowerLevel = -50;
PFE.SetDefaultColor(GetColor(8)); UpperLevel.SetDefaultColor(GetColor(5)); ZeroLine.SetDefaultColor(GetColor(5)); LowerLevel.SetDefaultColor(GetColor(5));
input length = 10;
input smoothingLength = 5;
def diff = close - close[length - 1];
def val = 100 * Sqrt(Sqr(diff) + Sqr(length)) / sum(Sqrt(1 + Sqr(close - close[1])), length - 1);
plot PFE = ExpAverage(if diff > 0 then val else -val, smoothingLength);
plot UpperLevel = 50;
plot ZeroLine = 0;
plot LowerLevel = -50;
PFE.SetDefaultColor(GetColor(8)); UpperLevel.SetDefaultColor(GetColor(5)); ZeroLine.SetDefaultColor(GetColor(5)); LowerLevel.SetDefaultColor(GetColor(5));
Any help would be greatly appreciated.
Comment