Create your own neural network predictor easily (example: MA and RSI Predictors) – indicator for MetaTrader 4

0
632

gpwr, posted on http://codebase.mql4.com/5738/

I simply renamed a few vars in order to make the code easier to read, and created a new proxy function.

All the credits must go to gpwr for his much excellent source.

Description:

The BNN predictor posted by gpwr is a great indicator, but many traders were wondering how to use the source code in order to create predictors based on their own indicator.

this question being left unanswered on all the neural network related sources, I’ve decided to answer it.

With this modified version of the BNN Predictor, you will be able to create your own predictor, based on your own indicator.

At the end of the code, you will find a function:

double getValue(int i) {
return(iMA(NULL,0,15,0,MODE_SMMA,PRICE_OPEN,i));
}

As presented, the indicator is a Moving Average predictor. Simply replace the Moving Average indicator by another indicator. You can even use iCustom() in order to get predictions on your own indicators.

For example, if you want a RSI predictor:

double getValue(int i) {
return(iRSI(NULL,0,14,PRICE_OPEN,i));
}

Installation:

BPNN.DLL must be copied to your experts/libraries/ folder.

You must configure MT4 to allow DLL imports (Tools > options > Expert Advisors > Check “Allow DLL imports”).

Recommended MT4/MT5 Brokers

XM Broker

  • Free $50 To Start Trading Instantly! (Withdraw-able Profit)
  • Deposit Bonus up to $5,000
  • Unlimited Loyalty Program
  • Award Winning Forex Broker
  • Additional Exclusive Bonuses Throughout The Year

XM broker

>> Sign Up for XM Broker Account here <<

FBS Broker

  • Trade 100 Bonus: Free $100 to kickstart your trading journey!
  • 100% Deposit Bonus: Double your deposit up to $10,000 and trade with enhanced capital.
  • Leverage up to 1:3000: Maximizing potential profits with one of the highest leverage options available.
  • ‘Best Customer Service Broker Asia’ Award: Recognized excellence in customer support and service.
  • Seasonal Promotions: Enjoy a variety of exclusive bonuses and promotional offers all year round.

fbs broker

>> Sign Up for FBS Broker Account here <<

 

(Free MT4 Indicators Download)

Click here below to download:

Create your own neural network predictor easily indicator for MetaTrader 4

LEAVE A REPLY

Please enter your comment!
Please enter your name here