Create your own neural network predictor easily (example: MA and RSI Predictors)

0
(0)
Name:
Create your own neural network predictor easily (example: MA and RSI Predictors)
Author: zenhop (2009.11.04 11:38)
Downloaded: 3795
Download:
Create your own neural network predictor easily (example: MA and RSI Predictors) 1
 MA predictor.mq4 (10.5 Kb) View
Create your own neural network predictor easily (example: MA and RSI Predictors) 1 RSI BNN Predictor.mq4 (10.5 Kb) View
Create your own neural network predictor easily (example: MA and RSI Predictors) 3 BPNN.dll (87.5 Kb)
 

Author:

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").

Image:

Create your own neural network predictor easily (example: MA and RSI Predictors) 4
MA Predictor and RSI predictor on EURUSD M30

 

Recommendations:

  • If you have questions about Neural network, please ask the original author, as I just modified the code in order to make it easier to create new indicators.
  • If you have questions about how to adapt an indicator, then I can answer, as long as you ask in either English, French, Spanish or Portuguese. please, no Russian, Chinese or Italian as I don't speak those languages.
  • The 2 examples MA and RSI are just examples. that's why they do not offer external variables to change their period or other options.
7 comments  To post a new comment, please log in or register

I have installed both indicators,they are visible properly.Please help me to interpret them

thanks

17.01.2012 16:57 nemac

Hi All,

I modified the BPNN.dll so it will (most probably) not crash: http://codebase.mql4.com/6588

Don't ask me about details - I'm a Mac user, I don't know about all your Windows stuff 😉

I had to download and install MS Visual Studio 2010 which took half a day and couple of Windows restarts (why?).
Only to comment two lines and compile...
The whole VS is like an old rusty car compared to XCode... Not to mention the XCode is a part of Mac OS bundle while VS has to be bought separately.

Fortunately I have the whole Windows on VM as just another application 😉

ALX

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.