I found this indicator has some utility for some forex traders around here. I translated this code from another trading platform to prorealtime for the benefit of everyone on our site. This indicator is made of a recent highest and lowest (10 periods default) passed into a fisher transform filter. Then a simple moving average is set other this value to generate signals like a MACD. Another weighted moving average smooth the whole value to act like an overall trend.
Of course because of average smoothing, signals maybe too late. You can play with period of highest/lowest looback, as well of the 2 moving average.
period = 10
MA1period=9
MA2period=45
MaxH = highest[period](high)
MinL = lowest[period](low)
price = customclose
if(barindex>MA2period) then
Value = 0.33*2*((price-MinL)/(MaxH-MinL)-0.5) + 0.67*Value[1]
Fish = 0.5*LOG((1+Value)/(1-Value))+0.5*Fish[1]
MA1 = Average[MA1period](Fish)
MA2 = WeightedAverage[MA2period](MA1)
endif
RETURN Fish as "Fish", Fish as "line-Fish", MA1 as "MA fast signal",MA2 as "MA slow signal"
Hello Nicolas, thanks for posting this Fisher Transform code. I was reading John Ehler's MESA site and found this averaging crossover/under method at the very bottom of his article: https://www.mesasoftware.com/papers/UsingTheFisherTransform.pdf "This suggests the use of a momentum function to identify the major turning points. Since a 10 bar channel is used, I multiplied the rate of change of the Fisher Transform by 10 and plotted this amplified rate of change over the Fisher Transform in the subgraph of Figure 6" Can this be added to this indicator? Cheers!