AlfyParticipant
Average
Good afternoon guys, I’m trying to apply the Fisher Transform to 3 stochastics. Someone has already kindly posted the Fisher transform code which I’ve also posted here but i don’t know how to apply it to the % K stochastics lines. I’m looking to apply it to the stochastics (5,3), (8/5) and (17/5). Any help you can give me is much appreciated.
Best wishes
IF BARINDEX < 5 THEN
value1 = 0
fish = 0
ELSE
MaxH = Highest[5](MEDIANPRICE)
MinL = Lowest[5](MEDIANPRICE)
Value1 = ( (MEDIANPRICE - MinL)/(MaxH - MinL) - .5) + .67 * Value1
If Value1 > .99 then
Value1 = .999
ENDIF
If Value1 < -.99 then
Value1 = -.999
ENDIF
Fish = 0.5*Log((1 + Value1)/(1 - Value1)) + .5 * Fish
Trigger=fish[1]
a=1.2
b=-1.2
ENDIF
RETURN Fish,Trigger,a,b