The FX Forecaster provides buy and sell signals based on moving average cross-overs and the OSMA indicator.
The histograms are based upon Fisher transform calculation.
Trading Signals
Converted from MT4 indicator code by a request in our indicators coding forum.
//PRC_FxForecaster | indicator
//27.03.2018
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
// --- settings
period=10
MA1period=9
MA2period=45
// --- end of settings
price=customclose
if barindex>MA2period then
MaxH = highest[period](high)
MinL = lowest[period](low)
Value=0.33*2*((price-MinL)/(MaxH-MinL)-0.5) + 0.67*Value1
Value=Min(Max(Value,-0.999),0.999)
Fish=0.5*Log((1+Value)/(1-Value))+0.5*Fish1
MA1 = average[MA1period](Fish)
MA2 = weightedaverage[MA2period](MA1)
Fish1=Fish
Value1=Value
endif
RETURN MA1 coloured(238,130,238) style(histogram), MA2 coloured(255,255,255,150) style(histogram)