Forex
Google

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (94) Thread Tools Display Modes
  5 links from elsewhere to this Post. Click to view. #51 (permalink)  
Old 12-18-2007, 06:47 PM
giraia_br's Avatar
giraia_br giraia_br is offline
Senior Member
 
Join Date: Feb 2006
Posts: 130
giraia_br is on a distinguished road
Quote:
Originally Posted by elitecamper View Post
I think in the end filters r more powerful than NN's
digital filters?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #52 (permalink)  
Old 12-18-2007, 09:19 PM
barnix barnix is offline
Senior Member
 
Join Date: Mar 2006
Posts: 686
barnix is on a distinguished road
libsvmdll 2.85
Attached Files
File Type: zip mtg1.zip (1.13 MB, 268 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #53 (permalink)  
Old 12-19-2007, 03:59 AM
got_fx got_fx is offline
Junior Member
 
Join Date: Dec 2005
Posts: 6
got_fx is on a distinguished road
Good job.
How about directly passing the parameters without the help of files?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #54 (permalink)  
Old 12-19-2007, 03:27 PM
winters winters is offline
Member
 
Join Date: Jun 2006
Posts: 28
winters is on a distinguished road
Neural Networks Source Code:

Adaline Network - The Adaline is essentially a single-layer backpropagation network. It is trained on a pattern recognition task, where the aim is to classify a bitmap representation of the digits 0-9 into the corresponding classes. Due to the limited capabilities of the Adaline, the network only recognizes the exact training patterns. When the application is ported into the multi-layer backpropagation network, a remarkable degree of fault-tolerance can be achieved.

Backpropagation Network - This program implements the now classic multi-layer backpropagation network with bias terms and momentum. It is used to detect structure in time-series, which is presented to the network using a simple tapped delay-line memory. The program learns to predict future sunspot activity from historical data collected over the past three centuries. To avoid overfitting, the termination of the learning procedure is controlled by the so-called stopped training method.

Hopfield Model - The Hopfield model is used as an autoassociative memory to store and recall a set of bitmap images. Images are stored by calculating a corresponding weight matrix. Thereafter, starting from an arbitrary configuration, the memory will settle on exactly that stored image, which is nearest to the starting configuration in terms of Hamming distance. Thus given an incomplete or corrupted version of a stored image, the network is able to recall the corresponding original image.

Bidirectional Associative Memory - The bidirectional associative memory can be viewed as a generalization of the Hopfield model, to allow for a heteroassociative memory to be implemented. In this case, the association is between names and corresponding phone numbers. After coding the set of exemplars, the network, when presented with a name, is able to recall the corresponding phone number and vice versa. The memory even shows a limited degree of fault-tolerance in case of corrupted input patterns.

Boltzmann Machine - The Boltzmann machine is a stochastic version of the Hopfield model, whose network dynamics incorporate a random component in correspondence with a given finite temperature. Starting with a high temperature and gradually cooling down, allowing the network to reach equilibrium at any step, chances are good, that the network will settle in a global minimum of the corresponding energy function. This process is called simulated annealing. The network is then used to solve a well-known optimization problem: The weight matrix is chosen such that the global minimum of the energy function corresponds to a solution of a particular instance of the traveling salesman problem.

Counter-propagation Network - The counterpropagation network is a competitive network, designed to function as a self-programming lookup table with the additional ability to interpolate between entries. The application is to determine the angular rotation of a rocket-shaped object, images of which are presented to the network as a bitmap pattern. The performance of the network is a little limited due to the low resolution of the bitmap.

Self-Organizing Map - The self-organizing map (SOM) is a competitive network with the ability to form topology-preserving mappings between its input and output spaces. In this program the network learns to balance a pole by applying forces at the base of the pole. The behavior of the pole is simulated by numerically integrating the differential equations for its law of motion using Euler's method. The task of the network is to establish a mapping between the state variables of the pole and the optimal force to keep it balanced. This is done using a reinforcement learning approach: For any given state of the pole, the network tries a slight variation of the mapped force. If the new force results in better control, the map is modified, using the pole's current state variables and the new force as a training vector.

Adaptive Resonance Theory - This program is mainly a demonstration of the basic features of the adaptive resonance theory network, namely the ability to plastically adapt when presented with new input patterns while remaining stable at previously seen input patterns.

Neural Networks Source Code
Attached Files
File Type: zip 8nn-src.zip (285.8 KB, 357 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #55 (permalink)  
Old 12-19-2007, 04:21 PM
barnix barnix is offline
Senior Member
 
Join Date: Mar 2006
Posts: 686
barnix is on a distinguished road
Quote:
Originally Posted by got_fx View Post
Good job.
How about directly passing the parameters without the help of files?
Yes!
You are right!
Based on svm-toy.cpp example we can
write a dll without the text files.

Somebody can help me?
Attached Files
File Type: txt svm-toy.cpp.txt (10.5 KB, 188 views)

Last edited by barnix : 12-19-2007 at 04:24 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #56 (permalink)  
Old 12-19-2007, 10:10 PM
jdpnz jdpnz is offline
Junior Member
 
Join Date: May 2007
Posts: 29
jdpnz is on a distinguished road
Smile

Quote:
Originally Posted by got_fx View Post
I just thought that I should share my 5cc worth...
I've played a bit with NN's, SVM's, tree ensambles and other bizarre algs (see Flexible Neural Trees Ensemble for Stock Index (ResearchIndex)). (it works for standard problems but I did not develop it to the fullest realizing that I am spending too much time on the algorithm itself).
The key is not in the learning algorithm but rather than that in the predictors.
It took me quite a bit of wasted time to realize this. We cannot expect to find dependencies in data that has none.
One cannot predict the next bar. It's impossible and naive. We can try to capture patterns though. There was a post on Better's board stating the his approach had captured the market cycles. This was from a guy who claims to have experimented with NNs a lot (tried to find the post but couldn't, maybe it was in Russian, which I understand a bit) and I totally agree with him.
I'll give you a hint - think about MACD and try to predict the position of the next extremum (min or max) - an idea that I never really exploited meaningfully because of the little hurdles along the way (proper filtering).

I was fascinated in the past by modern machine learning algs but the truth is, once again, what we are actually trying to do. It's coming with the right approach.

BTW, libsvm is perhaps the best developed one out there but it did not give me the best results. Check mysvm and svmlight.
As for NNs, I mostly trust rbf nets as they tend to catch pockets of data very well. Those who know what a rbf is will understand. Properly configuring those (some sort of clustering first...) and training them is a pain.

I had abandoned the addiction called forex but now I am glad I found this thread.
Maybe we can make a team and really thoroughly work out the problem.
I've always believed that the solution is somewhere in the open but alas, could not find it by myself.
Must admit that I like the above.
This thread has been going for so long and it is quite clear that there are some (many) extremely competent people out there just waiting for some direction about where/how/what to implement this NN idea.
However, it also feels like so much time has been spend keeping the discussion theoretical that we are in danger of loosing the momentum (for this development) if we are unable to find direction soon.
Perhaps it may be time to take all we have learnt from this thread (and others) and try implement something?
As such, may I suggest perhaps:
1.) Let us try get a definition for what it is that we are actually trying to predict.
2.) Let us THEN define what input(s) may be best for the above prediction.
3.) Let us THEN take all we know, and try define a net that may be best suited for the task - and hopefully is reasonably easy to implement/code.
4.) Let us get down to actual experimenting - see what comes out of it.

Just my ideas - any other suggestions/directions out there?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #57 (permalink)  
Old 12-19-2007, 10:31 PM
jdpnz jdpnz is offline
Junior Member
 
Join Date: May 2007
Posts: 29
jdpnz is on a distinguished road
Smile what are we trying to predict?

My approach (to the market) is something like this:
When the market is trending - moving in a relative strait line up or down, it is relatively easy to predict where it is going next.
Unfortunately - trend is your friend till it breaks.
For a programmer the implication of the above is that, at some stage, price will turn.
Actually (I think) we only get paid on the turning points. This is where I'd like to open/close my trades.
As such - if I can predict turning points I have the foundation for a very powerful trading system and, what happens in between (the turning points) is of little/no interest to myself.
However - most indicators actually tell about market DIRECTION - in other words, the bits in between (the turning points) and NOT the turning points.
In fact - "predicting" turning points is still up to the individual and for this, we use SR lines, fibs, momentum, the moon or whatever else.
As such I have been working on the premise that a software package that can "predict" turning points (with a reasonabe accuracy) can, to some large degree, extend the individuals ability to make better decisions regarding turning points.

Bottom line - I think that, included in the definition of what we are trying to predict, we must have turning points/levels.

However (important I think) the next logical question would then be:
Do we need define turning points merely in the price domain - and/or in price AND time domain, or how else will we define a turning point?

Personally, I feel that, since I am only paid for accuracy in the price domain, this is where I should concentrate my efforts.
In fact - in my present systems, I do not define time periods - but rather price "periods" in some fashion and, I have no doubt in my mind that because of this, my price line is much smoother that most ordinary (time based) systems out there.
As such - time plays little/no part in any my live systems.

Comments would be appreciated greatly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #58 (permalink)  
Old 12-20-2007, 12:53 AM
tiger_wong tiger_wong is offline
Member
 
Join Date: Nov 2006
Posts: 94
tiger_wong is on a distinguished road
Hello guys,

Please suggest me what the best algorithm that I should learn so I won't be wasting my time. From what I read here, there are several method using PNN, SVM, GPF, etc. Which one is the best? Maybe experienced person could help me.

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #59 (permalink)  
Old 12-20-2007, 01:24 AM
giraia_br's Avatar
giraia_br giraia_br is offline
Senior Member
 
Join Date: Feb 2006
Posts: 130
giraia_br is on a distinguished road
barnix, please, look your message box. i sent a message for you about another stratgey i think you have interest.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #60 (permalink)  
Old 12-20-2007, 02:11 AM
jdpnz jdpnz is offline
Junior Member
 
Join Date: May 2007
Posts: 29
jdpnz is on a distinguished road
Smile

Quote:
Originally Posted by tiger_wong View Post
Hello guys,

Please suggest me what the best algorithm that I should learn so I won't be wasting my time. From what I read here, there are several method using PNN, SVM, GPF, etc. Which one is the best? Maybe experienced person could help me.

Thank you
I would suggest:

1.) Do a problem definition - define what it is you'd like the program to do
2.) Do a resource definition - define what (data, indicators etc.) do you have available
3.) Do a solution definition - read about different approaches, and try find the one that match your situation. Then - learn about that one.

Hope this may be of some help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/expert-advisors-metatrader-4/11096-better-nn-ea-development.html
Posted By For Type Date
Profile Better - Automated Trading Championship 2007 This thread Refback 07-14-2008 11:59 AM
פורום - STRATEGY BANK This thread Refback 07-14-2008 10:19 AM
Профиль Better - Automated Trading Championship 2007 This thread Refback 07-13-2008 08:48 AM
Bogie-NN-v8 (William Boatright - Wackena) | Facebook This thread Refback 07-12-2008 07:05 AM
:: Ķ - Better's EA - Զ״ھ This thread Refback 07-07-2008 02:32 AM
国外有人在研究PNN(神经EA)有点看不懂 - 「外汇交易」 - 『火线投资论坛』 外汇,外汇入门,外汇论坛,外汇社区,外汇保证金,外汇交易,投资,投资论坛,A股,股票 This thread Refback 07-01-2008 06:04 PM
פורום - STRATEGY BANK Post #41 Refback 06-28-2008 09:59 PM
:: Ķ - Better's EA - Զ״ھ This thread Refback 06-26-2008 12:41 PM
פורום - STRATEGY BANK This thread Refback 06-19-2008 12:03 PM
פורום - STRATEGY BANK Post #41 Refback 06-19-2008 10:43 AM
Forex Otomatik Islem Mekanizmalar - hisse.net : Ekonomi ve Borsa Forumu Post #18 Refback 06-18-2008 03:06 PM
Комментарии - Automated Trading Championship 2007 This thread Refback 06-16-2008 06:54 PM
Fraktale , Sieci neuronowe ,Algorytmy genetyczne... This thread Refback 06-06-2008 12:41 PM
:: Ķ - Better's EA - Զ״ھ This thread Refback 06-06-2008 12:44 AM
DELPHI与热动 - 频道预览 - 抓虾 This thread Refback 06-05-2008 08:24 PM
Профиль Better - 2007自动交易锦标赛 This thread Refback 05-23-2008 10:58 PM
Profile better - Automated Trading Championship 2007 This thread Refback 05-18-2008 12:21 PM
Профиль Better - Automated Trading Championship 2007 This thread Refback 05-12-2008 05:14 PM
Better's EA - Զ״ھ - This thread Refback 05-06-2008 03:56 AM
svm dll(Example for testing the svm dll) й˹ܴҵзֲ - ˹||Ŵ㷨|ģʽʶ|Ӿ|ҵ|Ŀ This thread Refback 05-01-2008 06:31 AM
Profile Better - Automated Trading Championship 2007 This thread Refback 04-14-2008 04:18 PM
EAForex :: View topic - Combo NN This thread Refback 04-14-2008 07:14 AM
Comments - Automated Trading Championship 2007 This thread Refback 03-30-2008 07:25 AM
Sieci neuronowe na giedzie Forex - system, dyskusja This thread Refback 03-23-2008 01:59 PM
svm dll(Example for testing the svm dll) й˹ܴҵзֲ - ˹||Ŵ㷨|ģʽʶ|Ӿ|ҵ|Ŀ This thread Refback 03-14-2008 09:24 AM
פורום - STRATEGY BANK This thread Refback 03-08-2008 06:05 PM
国外有人在研究PNN(神经EA)有点看不懂 - 「外汇交易」 - 『火线投资论坛』 外汇,外汇入门,外汇论坛,外汇社区,外汇保证金,外汇交易,投资,投资论坛,A股,股票 This thread Refback 03-02-2008 04:09 AM
Профиль Better - 2007自动交易锦标赛 This thread Refback 02-19-2008 02:36 AM
Комментарии - Automated Trading Championship 2007 This thread Refback 02-11-2008 09:25 AM
国外有人在 究PNN(神经EA)有点看不懂 - 「外汇交易」 - 『火线投资论坛』 外汇,外汇入门,外汇论坛,外汇社区,外汇保证金,外汇交易,投资,投资论坛,A股,股票 This thread Refback 02-10-2008 09:06 AM
פורום - STRATEGY BANK This thread Refback 01-29-2008 05:12 PM
Automated Trading Profit: The Automated Trading Championship 2007 Is Over! This thread Refback 01-29-2008 04:19 PM
Comments - Automated Trading Championship 2007 This thread Refback 01-27-2008 04:22 PM
פורום - STRATEGY BANK This thread Refback 01-26-2008 08:04 PM
Profile Better - Automated Trading Championship 2007 This thread Refback 01-25-2008 01:36 PM
Profile Better - Automated Trading Championship 2007 This thread Refback 01-25-2008 01:36 PM
Профиль Better - Automated Trading Championship 2007 This thread Refback 01-24-2008 12:12 PM
Profile Better - Automated Trading Championship 2007 This thread Refback 01-16-2008 01:33 PM
国外有人在研究PNN(神经EA)有点看不懂 - 「外汇交易」 - 『火线投资论坛』 外汇,外汇入门,外汇论坛,外汇社区,外汇保证金,外汇交易,投资,投资论坛,A股,股票 This thread Refback 01-16-2008 05:51 AM
国外有人在研究PNN(神经EA)有点看不懂 - 「外汇交易」 - 『火线投资论坛』 外汇,外汇入门,外汇论坛,外汇社区,外汇保证金,外汇交易,投资,投资论坛,A股,股票