Inverse Fisher Transform Stochastic Oscillator - IFT

Created at 06 Nov 2015, 21:42
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MA

Matej_Bajec

Joined 25.08.2015

Inverse Fisher Transform Stochastic Oscillator - IFT
06 Nov 2015, 21:42


Hi,

i have one oscilator on thinkorswim that i would like to use on ctrader.

Is there anyone who can translate it to that language?

#
# TD Ameritrade IP Company, Inc. (c) 2012-2015
#
declare lower;
input price = close;
input length = 30;
input slowingLength = 5;
input over_bought = 60;
input over_sold = 30;
def rainbow = reference RainbowAverage(price = price, averageType = AverageType.WEIGHTED);
plot Stochastic = sum(rainbow - Lowest(rainbow, length), slowingLength) / (sum(Highest(rainbow, length) - Lowest(rainbow, length), slowingLength) + 0.0001) * 100;
def normStochRainbow = 0.1 * (Stochastic - 50);
plot IFT = 100 / (1 + exp(-2 * normStochRainbow));
plot OverBought = over_bought;
plot OverSold = over_sold;
Stochastic.SetDefaultColor(GetColor (1));
IFT.SetDefaultColor(GetColor(2));
OverBought.setDefaultColor(GetColor (5));
OverSold.setDefaultColor(GetColor(5 ));                     


@Matej_Bajec