Login Page - Create Account

Support Board


Date/Time: Fri, 07 Oct 2022 09:43:42 +0000



Post From: Fisher Transform and TTM Squeeze

[2014-01-16 01:34:32]
User74987 - Posts: 16
I have the Fisher Transform code for you. Its a "lower study" so the code I have reflects that, as follows:

declare lower;

input price = hl2;
input length = 10;

def maxHigh = Highest(price, length);
def minLow = Lowest(price, length);
def range = maxHigh - minLow;
def value = if IsNaN(price)
then Double.NaN
else if IsNaN(range)
then value[1]
else if range == 0
then 0
else 0.66 * ((price - minLow) / range - 0.5) + 0.67 * value[1];
def truncValue = if value > 0.99 then 0.999 else if value < -0.99 then -0.999 else value;
def fish = 0.5 * (log((1 + truncValue) / (1 - truncValue)) + fish[1]);

plot FTOneBarBack = fish[1];
plot FT = fish;
plot ZeroLine = 0;

FTOneBarBack.SetDefaultColor(GetColor(1));
FT.SetDefaultColor(GetColor(music));
ZeroLine.SetDefaultColor(GetColor(5));


I'm still looking at the Squeeze studies to see how they compare. Thanks for your help with the Fisher Transform :)