Go Back   Forex-TSD > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #581 (permalink)  
Old 01-13-2009, 03:43 PM
Senior Member
 
Join Date: Dec 2008
Posts: 131
finimej is on a distinguished road
I am testing the PNN code from Paco Hernández Gómez. The only thing that I did is after trained the pnn-trainer, I then optimized the limit and stop for last 2 days.

I then put the "PNN trainer" as expert assistant on EUR USD M1 and at the same time put the PNN system as EA on another EURUSD M1 chart.

Look at last 48 hours running results! It picked up exakt at the zigzag turnning points! However, it only make it to BUY operation. So if this is so nice can pick up the pattern for zigzag turning points, then only help is need is some help to get the right direction, such as AND if stochastic.. and RSI turns, then follow the direction.
Attached Images
File Type: gif pnn.gif (49.0 KB, 664 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #582 (permalink)  
Old 01-14-2009, 07:45 AM
progressapama's Avatar
Member
 
Join Date: Apr 2008
Posts: 67
progressapama is on a distinguished road
Hi Finimej,

I am also testing the PNN but i keep getting the following error in the expert log

PNN EURUSD, M1: zero Divide

it indicates that the library file PNN.mq4 is having issues with a certain division but i can't seem to find out what or where . Any suggestion
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #583 (permalink)  
Old 01-14-2009, 10:40 AM
Senior Member
 
Join Date: Oct 2008
Posts: 181
fajst_k is on a distinguished road
training/optimalization data

Hello everybody,

I followed this thread from the beginning and I miss some information.

Can you explain me what is an input data for training of NN in the EA ??

What sort of optimalization is being done for input paramaters of NN, and NN itself, how often etc.

Thanks, Krzysztof
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #584 (permalink)  
Old 01-14-2009, 08:19 PM
Senior Member
 
Join Date: Dec 2008
Posts: 131
finimej is on a distinguished road
Hi, progressapama,
I have not changed anything in the code at all. Download and compile and works. On the FXDD demo account.
Backtest, used the option "open price on each bar" to training the pnn traininger, with selected week period. then use the EA to use the week after the selected period, the result is so: PNN can doing will direct for the first 2 days after the training data, and start to less it's edge after 2 dags good winning ratio, for the days in the week.

Real time demo forwarding test.
1) traing PNN trainer with option "every tick in the bar" use the 3 days data (included current day), it takes whole night to finish it.
2) then put PNN trainer as EA on EURUSD M1 chart, and put EA on another chart of EURUSD M1.

Forwarding test result is : it can realy pick up the trade exakt at the turning point with very precision entries. Howerver, it's so frustrated that the EA only do buying trading. (Although it can do sell trade in the backtest, so it is not the codes fault). I put it "only Short", then the EA is not doing anytrade at all. An EA can do SELL as well, is very much appreciated when we have a financial crise, isn't ? hasn't check out the code yet.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #585 (permalink)  
Old 01-15-2009, 02:40 PM
Senior Member
 
Join Date: Dec 2008
Posts: 131
finimej is on a distinguished road
See forwarding test PNN system on demo account, has changed any code.
It has realy nice entries on all the right points and does not take any trading when the EURUSD is congesting. It is also stupid enough only do buy operations!
Attached Images
File Type: gif pnn.gif (20.6 KB, 429 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #586 (permalink)  
Old 01-15-2009, 03:06 PM
Senior Member
 
Join Date: Oct 2008
Posts: 181
fajst_k is on a distinguished road
Question to Barnix

Quote:
Originally Posted by fajst_k View Post
Hello everybody,

I followed this thread from the beginning and I miss some information.

Can you explain me what is an input data for training of NN in the EA ??

What sort of optimalization is being done for input paramaters of NN, and NN itself, how often etc.

Thanks, Krzysztof
Barnix, maybe you can answer me those question ??

Krzysztof
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #587 (permalink)  
Old 01-17-2009, 07:55 AM
Senior Member
 
Join Date: Mar 2006
Posts: 1,072
barnix is on a distinguished road
Quote:
Originally Posted by fajst_k View Post
Barnix, maybe you can answer me those question ??

Krzysztof
The input values you can find in indicator source:
http://www.forex-tsd.com/attachments...tribind_2d.mq4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #588 (permalink)  
Old 01-17-2009, 07:57 AM
Senior Member
 
Join Date: Mar 2006
Posts: 1,072
barnix is on a distinguished road
FANN library 2.0.0
Better NN EA development
http://leenissen.dk/fann/
Type: fann_type
fann_type is the type used for the weights, inputs and outputs of the neural network.

fann_type is defined as a:
float - if you include fann.h or floatfann.h
double - if you include doublefann.h
int - if you include fixedfann.h (please be aware that fixed point usage is
only to be used during execution, and not during training).
==================================
struct fann_train_data
{
enum fann_errno_enum errno_f;
FILE *error_log;
char *errstr;

unsigned int num_data;
unsigned int num_input;
unsigned int num_output;
fann_type **input;
fann_type **output;
};

Last edited by barnix; 01-17-2009 at 05:20 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #589 (permalink)  
Old 01-17-2009, 08:10 AM
Senior Member
 
Join Date: Mar 2006
Posts: 1,072
barnix is on a distinguished road
Read fann_train_data from file:
xor.data

4 2 1
-1 -1
-1
-1 1
1
1 -1
1
1 1
-1

/*
* INTERNAL FUNCTION Reads training data from a file descriptor.
*/
struct fann_train_data *fann_read_train_from_fd(FILE * file, const char *filename)
.....
if(fscanf(file, "%u %u %u\n", &num_data, &num_input, &num_output) != 3)

num_data=4
num_input=2
num_output=1

4 2 1 //num_data, num_input, num_output
-1 -1 //input
-1 //output
-1 1 //input
1 //output
1 -1 //input
1 //output
1 1 //input
-1 //output

Last edited by barnix; 01-17-2009 at 08:30 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #590 (permalink)  
Old 01-17-2009, 08:25 AM
Senior Member
 
Join Date: Mar 2006
Posts: 1,072
barnix is on a distinguished road
Error structure:
/* Struct: struct fann_error

Structure used to store error-related information, both
<struct fann> and <struct fann_train_data> can be casted to this type.

See also:
<fann_set_error_log>, <fann_get_errno>
*/
struct fann_error
{
enum fann_errno_enum errno_f;
FILE *error_log;
char *errstr;
};

===============================
/* INTERNAL FUNCTION
Initialize an error data strcuture
*/
void fann_init_error_data(struct fann_error *errdat)
{
errdat->errstr = NULL;
errdat->errno_f = FANN_E_NO_ERROR;
errdat->error_log = fann_default_error_log;
}

Last edited by barnix; 01-17-2009 at 08:29 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
better ea, neural network, svm forex, cache:Jtu9ppOwDvsJ:www.forex-tsd.com/expert-advisors-metatrader-4/11096-better-nn-ea-development.htm, better, nn ea, better ea development, forex better ea, cortex, forex, Better NN EA, better development, better NN development, wackena NN-EA, libsvm, ea better, kalman, auto-scalper, Forex Auto-Scalper, search, Abdul Rahman EA Forex, fapturbo, betterea, GaussPNN, neuro, MT4_FANN, Auto-Scalper.ex4, better nn, Matrix NN ea


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BrainSystem: indicators development newdigital Brain Systems 59 01-07-2010 11:04 PM
Zigzag system development newdigital Indicators - Metatrader 3 14 05-20-2009 04:52 AM
StochThreshold | ... under development wibitiens Indicators - Metatrader 4 0 05-26-2007 02:26 AM
Brainwashing: system development newdigital Brain Systems 45 11-24-2006 11:55 AM
Help with simple EA idea development Spider4896 Metatrader 4 2 04-21-2006 01:23 PM


All times are GMT. The time now is 05:39 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.