Go to content Go to navigation Go to search

2008-09-17 10:04

Inverse Fisher Transform RSI

Posted in by Jeff Thorsett

Here is the thinkscript code for the Inverse Fisher Transform RSI that will work with thinkorswim charts.

#
# StinkyGreene 2008
#

def e = 2.718281828;
input length = 5;

def diff = if close > close[1] then close - close[1] else 0;
def diff2 = if close < close[1] then close[1] - close else 0;

rec avg = compoundValue(1, 2 / (length + 1) * diff + (length - 1) / (length + 1) * avg[1], diff * 2 / (length + 1));
rec avg2 = compoundValue(1, 2 / (length + 1) * diff2 + (length - 1) / (length + 1) * avg2[1], diff2 * 2 / (length + 1));

def value = if avg2 != 0 then 100 - 100 / (1 + avg / avg2) else 0;
def Value1 = 0.1 * (value - 50);
def Value2 = wma(Value1,9);
def IFish = (Power(e,(2 * Value2)) - 1) / (Power(e,(2 * Value2)) + 1 );
plot plot1 = IFish;
plot plot2 = 0.5;
plot plot3 = -0.5;

It seems as though textpattern (and my site format) is sticking those long lines through the right sidebar of the site. I you highlight the whole thing and copy it should work on the paste in Studies. Here is what it should look like if it is working right (click for a larger, readable picture):

Edit: That is fixed now, sorry about the scrollbars

Study set used on the /NQ trades

Leave a Comment

  Textile Help