Forex



Go Back   Forex Trading > 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
  #1 (permalink)  
Old 10-08-2009, 10:57 PM
nittany1's Avatar
Senior Member
 
Join Date: Dec 2006
Location: Sarasota, FL
Posts: 207
nittany1 is on a distinguished road
Arrow SpiNNaker - A Neural Network EA

SpiNNaker - A Neural Network EA
This is an early version of a forward feeding perceptron with four inputs: Stochastics 5m, Stochastics 15m, ADX 5m, ADX 15m. It has two outputs: buy, sell.

A perceptron is the most basic kind of neural network you can find, or at least that is practical.

This is hopefully the beginning of a development cycle that will include forum member input from both users and programmers alike.

Training Using Optimization
You need to manually train this NN by optimizing all the NN weights and NN thresholds in the backtester. Please do not email me asking me how to teach you how to do this. There is good documentation on this forum to teach you how to do this.

You need to optimize both the buy and sell weights, for example w1b and w1s which correspond to "weight 1 buy" and "weight 1 sell", all the way to w4b and w4s. I suggest optimizing them from 0.1 to 0.9 for the buys and -0.1 to -0.9 for the sells in steps of 0.1 for each.

In fact, do not change the sell weights from negative. You will make the neural network give bad signals.

You also need to optimize ThresholdBUY and ThresholdSELL, for example try optimizing from 1.0 to 3.0 in steps of 0.1 for each.

When you are optimizing, both thresholds are being tested in the positive, but during use one of them is negative and the other is positive. The thresholds are inversely proportional and the trade signal comes from the one that is positive and past it's order placement threshold. The close order signal comes from an order existing and the output falling below your optimized threshold.

Pick a very short test period at first till you get used to it, say 3 or 4 trading days that look similar to whatever your charts look like right now. Under "Model" choose open prices only, since this EA trades on a new bar.

Timeframe
I wrote this EA with the intention that it be attached to a 5 minute chart, although it uses both 5 minute and 15 minute data.

Currency Pair
I wrote this EA with the EUR/USD in mind. That doesn't mean you won't be able to find another currency pair that it does well on.

Initial forward testing seems to indicate it does better during trending markets and less well in markets that are changing momentum.

Backtesting
Please don't post umpteen million backtests of this and that setting.

Forward Testing & .set files
Please share your forward test results and your .set files that correspond.

Development
It's taken me quite a while to understand how neural networks work and why they in fact do work. It probably longer than it should have but I've been raising my son and programming on the side.

I wanted to include everyone in the development of this EA in the hopes that it will provide benefits to people everywhere. As always, best of luck trading!
Attached Files
File Type: pdf Spinnaker v0.50a Chart.pdf (22.9 KB, 350 views)
File Type: mq4 SpiNNaker v0.50b.mq4 (12.7 KB, 272 views)
__________________
The best things in life come from open source development.
Myspace Facebook My Indicators: Trade Assistant Trend Friend ToR CCI Helper
Holder of US Patent 6,774,788

Last edited by nittany1; 10-10-2009 at 11:16 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
  #2 (permalink)  
Old 10-08-2009, 11:15 PM
Senior Member
 
Join Date: Jul 2006
Posts: 131
sentaco is on a distinguished road
Thanks for this EA going to test it and report about.

Regards
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
  #3 (permalink)  
Old 10-09-2009, 07:27 AM
Junior Member
 
Join Date: Dec 2007
Posts: 14
nemogamo is on a distinguished road
thx, tom
dowloaded & try it
good job..
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
  #4 (permalink)  
Old 10-09-2009, 07:44 AM
Junior Member
 
Join Date: Apr 2007
Posts: 18
drumr is on a distinguished road
I have been abusing it with testing and now working on forward testing.

Note: I only use it forward testing by enabling only buy or sells in the direction of the trend and with manual confirmation.
__________________
www.ircforex.com - #1 Forex Live Chat
www.managedforextrades.com - Forex Managed Accounts
www.iheartpips.com - Metatrader templates
www.drumrtrades.com - Trading site

Last edited by drumr; 10-09-2009 at 08:48 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
  #5 (permalink)  
Old 10-09-2009, 09:39 AM
Junior Member
 
Join Date: May 2006
Posts: 26
wananohoshi is on a distinguished road
regarding the ea..

just noted that you are not addressing the retraining problem here. is your intention to only train the ea once?
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
  #6 (permalink)  
Old 10-09-2009, 01:54 PM
xx3xxx's Avatar
Senior Member
 
Join Date: Sep 2008
Posts: 419
xx3xxx is on a distinguished road
actually, we should do datamining on NN and EA


to see which trading period , whcih currencies pairs that it really work -- which one does not

there will be underlying assumptions for each sydtem that we do not know from the description of each one


-- if we make the assumption that , indicator, EA we saw is PROVENed already, we are usually wrong (say 40% of the times) -- this refer to things we saw, in general, not any particular one

Last edited by xx3xxx; 10-11-2009 at 08:02 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
  #7 (permalink)  
Old 10-09-2009, 04:01 PM
nittany1's Avatar
Senior Member
 
Join Date: Dec 2006
Location: Sarasota, FL
Posts: 207
nittany1 is on a distinguished road
Quote:
Originally Posted by wananohoshi View Post
just noted that you are not addressing the retraining problem here. is your intention to only train the ea once?
I would recommend retraining every 3-4 trading days, even more often if you prefer.
__________________
The best things in life come from open source development.
Myspace Facebook My Indicators: Trade Assistant Trend Friend ToR CCI Helper
Holder of US Patent 6,774,788
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
  #8 (permalink)  
Old 10-09-2009, 04:58 PM
Senior Member
 
Join Date: Dec 2005
Location: Null
Posts: 586
drgoodvibe is on a distinguished road
Great!

Thank you for the post.. I wonder if we can change the indicators in this. I haven't really given NN EA's a shot yet.
__________________
Metatrader 4 - EA Live and Demo Hosting Solutions http://www.omegasupreme.com & Omega Trading Blog!
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
  #9 (permalink)  
Old 10-09-2009, 05:26 PM
nittany1's Avatar
Senior Member
 
Join Date: Dec 2006
Location: Sarasota, FL
Posts: 207
nittany1 is on a distinguished road
Quote:
Originally Posted by drgoodvibe View Post
Great!

Thank you for the post.. I wonder if we can change the indicators in this. I haven't really given NN EA's a shot yet.
Sure, change the indicators to whatever you feel you can be productive with. I gave the source code so people could adapt any trading ideas and have a basic package that people can build things from.

I'm in the middle of working up a way to stay out of sideways markets by using ADX on the longer timeframes, say 4h or 1d even. I think I can help it stay away from times of changing momentum during the longer trend distribution phases where price action sometimes gets unpredictable like today with the EUR/USD.

Anyway, in the source code you'll see the section where to put your indicators and the section to get signals from those indicators. You can then feed those signals into the NN on whatever timeframe you want, you can even add more timeframes than was included in the original version I released.
__________________
The best things in life come from open source development.
Myspace Facebook My Indicators: Trade Assistant Trend Friend ToR CCI Helper
Holder of US Patent 6,774,788
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
  #10 (permalink)  
Old 10-10-2009, 11:17 PM
nittany1's Avatar
Senior Member
 
Join Date: Dec 2006
Location: Sarasota, FL
Posts: 207
nittany1 is on a distinguished road
Download 0.50b, I found a bug in 0.50a that feeds the wrong data into one of the input neurodes.
__________________
The best things in life come from open source development.
Myspace Facebook My Indicators: Trade Assistant Trend Friend ToR CCI Helper
Holder of US Patent 6,774,788
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


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
Neural Networks newdigital Analytics 171 10-11-2009 03:16 AM
Probabilistic Perceptron Neural Network doshur Expert Advisors - Metatrader 4 15 06-21-2009 10:37 AM
Radial Basis Network (RBN) - As Fit Filter For Price IceXP Indicators - Metatrader 4 23 07-07-2008 06:07 PM


All times are GMT. The time now is 08:29 PM.



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