Nicolas

FX Forecaster

Category: Indicators By: Nicolas Created: March 27, 2018, 7:43 AM
March 27, 2018, 7:43 AM
Indicators
4 Comments
FX Forecaster

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

  • BUY: Wait for the black and purple bar to appear above the 0 level.
  • SELL: Wait for the black and purple bar to appear below the 0 level.

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)

 

Download
Filename: PRC_FxForecaster.itf
Downloads: 327
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Anonymous
8 years ago
#

@mecon, did you ever get one?

mecon
8 years ago
#

I will do so, thank you!

mecon
8 years ago
#

I was looking for the "pure" OSMA (moving average of oscillator) from MT4. Does anybody know the code for OSMA?

Nicolas
8 years ago
#

Please add a request on forums for any MT4 code conversion, thank you. Follow these easy steps for any request: https://www.prorealcode.com/topic/free-conversion-mt4-indicators-mql4/

ProRealCode ProRealCode
Loading...