• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 11:59pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 11:59pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Which Neural Network Software would work with MT5? 0 replies

Neural Network trading using Matlab and Metatrader 8 replies

neural network based systems in forex 22 replies

Neural Network anyone? 12 replies

The "Better" neural network 53 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 3
Attachments: Fast Artificial Neural Network and MT5 price prediction
Exit Attachments
Tags: Fast Artificial Neural Network and MT5 price prediction
Cancel

Fast Artificial Neural Network and MT5 price prediction

  • Post #1
  • Quote
  • First Post: Aug 1, 2010 3:43pm Aug 1, 2010 3:43pm
  •  Graff
  • | Joined May 2009 | Status: Member | 35 Posts
Hi there.

This weekends I wrote a small expert for MetaTrader 5 platform. It's using FANN and another currencies prices to predict price for target symbol. This expert will only try to predict prices and will not trade.

Installation:
1) Install fann2mql.
2) Copy Fann2MQL.dll and tbb.dll to MT5 TERMINAL DATA PATH\MQL5\Libraries\
3) Download fann2.mq5.txt, rename it to fann2.mq5
4) Copy fann2.mq5 to MT5 TERMINAL DATA PATH\MQL5\Experts\
5) Compile fann2.mq5 and attach it to EURUSD chart.

This is a first version so recommendations for how to improve this expert are welcomed.
Attached File(s)
File Type: txt fann2.mq5.txt   8 KB | 1,701 downloads
  • Post #2
  • Quote
  • Aug 2, 2010 3:06am Aug 2, 2010 3:06am
  •  MoForce
  • | Joined Jul 2007 | Status: BIG PIPIN' | 615 Posts
nice! I made an ANN to basically predict if a candle will close up or down in MT5 some months back. It could only predict with around 50% +/- 10% accuracy lol

so either my ANN sucked or the markets really are unpredictable (using technical analysis alone)
 
 
  • Post #3
  • Quote
  • Sep 23, 2010 1:47pm Sep 23, 2010 1:47pm
  •  haidzatul
  • | Joined Sep 2010 | Status: Junior Member | 4 Posts
Hi Graff,
Nice concept of trading using Neural Network on MT5. Actually i already try your mql5 (MT5 build 334) on geniune Intel CPU 2140 @ 1.60 GHz Window XP. It can compile but self exit when execute in chart (eurusd).

Are this problem of tbb.dll or other?

Haidzatul


Quoting Graff
Disliked
Hi there.

This weekends I wrote a small expert for MetaTrader 5 platform. It's using FANN and another currencies prices to predict price for target symbol. This expert will only try to predict prices and will not trade.

Installation:
1) Install fann2mql.
2) Copy Fann2MQL.dll and tbb.dll to MT5 TERMINAL DATA PATHMQL5Libraries
3) Download fann2.mq5.txt, rename it to fann2.mq5
4) Copy fann2.mq5 to MT5 TERMINAL DATA PATHMQL5Experts
5) Compile fann2.mq5 and attach it to EURUSD chart.

This is a...
Ignored
 
 
  • Post #4
  • Quote
  • Sep 24, 2010 10:20am Sep 24, 2010 10:20am
  •  stevegee58
  • Joined Oct 2005 | Status: Pip Slappa Extrordinaire | 1,012 Posts
Quoting MoForce
Disliked
nice! I made an ANN to basically predict if a candle will close up or down in MT5 some months back. It could only predict with around 50% +/- 10% accuracy lol

so either my ANN sucked or the markets really are unpredictable (using technical analysis alone)
Ignored
Neural networks only find patterns if they exist. So you either mis-coded the NN or basic premise for the NN has no edge.
You are in a maze of twisty little passages, all alike.
 
 
  • Post #5
  • Quote
  • Sep 24, 2010 4:08pm Sep 24, 2010 4:08pm
  •  haidzatul
  • | Joined Sep 2010 | Status: Junior Member | 4 Posts
It works on Windows 7 (32 bit) Intel Core 2 Duo CPU P8700 2.53 GHz using MT5 Build 338.

But have problem to execute on Windows 7 64 bit (Intel Xeon Quad-Core Processor X5667 3.06 GHz. MT5 Build 338. According to Fann Web Site, 64 bit are not supported. Any solution on 64 bit??
 
 
  • Post #6
  • Quote
  • Sep 28, 2010 12:05am Sep 28, 2010 12:05am
  •  haidzatul
  • | Joined Sep 2010 | Status: Junior Member | 4 Posts
to prevent from long time of download data from server, i suggested the symbol should be limited. In the case, only EURUSD are involved, so that the code for that should be (if symbol is at the top list of market watch MT5 client terminal)...

// symbols list
int symb_total=1;
ArrayResize(slist,symb_total);
for(int i=0;i<symb_total;i++) slist[i]=SymbolName(i,true);


Quoting Graff
Disliked
Hi there.

This weekends I wrote a small expert for MetaTrader 5 platform. It's using FANN and another currencies prices to predict price for target symbol. This expert will only try to predict prices and will not trade.

Installation:
1) Install fann2mql.
2) Copy Fann2MQL.dll and tbb.dll to MT5 TERMINAL DATA PATHMQL5Libraries
3) Download fann2.mq5.txt, rename it to fann2.mq5
4) Copy fann2.mq5 to MT5 TERMINAL DATA PATHMQL5Experts
5) Compile fann2.mq5 and attach it to EURUSD chart.

This is a...
Ignored
 
 
  • Post #7
  • Quote
  • Oct 5, 2010 9:37pm Oct 5, 2010 9:37pm
  •  haidzatul
  • | Joined Sep 2010 | Status: Junior Member | 4 Posts
Fann has release 64bit for MT5 only Windows 7. I just install and found error on result MSE compared from previous fann version.

Before:
Next Targer Price : 1.38345 MSE : 0.00000451

After install new release fann 0.1.4 beta windows 7
Next Targer Price : 9233356666666777.38345 MSE : 9233356666666777.38345451

Error? any explanation on this phenomena?
Tq
 
 
  • Post #8
  • Quote
  • Oct 6, 2010 7:02am Oct 6, 2010 7:02am
  •  stevegee58
  • Joined Oct 2005 | Status: Pip Slappa Extrordinaire | 1,012 Posts
I'm not sure how the FANN handles initial neuron states but other NNs I've worked with in the past randomize the initial states. So you'll get different results depending on this initial state. Sometimes the NN will train very quickly, (i.e. converges to a small MSE) and give clear outputs. Other times the NN takes a long time to train and gives what I consider "muddy" outputs.

I'm saying all this without knowing exactly what you're doing.
You are in a maze of twisty little passages, all alike.
 
 
  • Post #9
  • Quote
  • Oct 12, 2010 3:26pm Oct 12, 2010 3:26pm
  •  emsi
  • | Joined Nov 2007 | Status: Mariusz Woloszyn | 3 Posts
It's due to terminal bug.
See the post:
http://www.mql5.com/en/forum/2303
 
 
  • Post #10
  • Quote
  • Oct 14, 2010 3:04am Oct 14, 2010 3:04am
  •  Graff
  • | Joined May 2009 | Status: Member | 35 Posts
Hi there.

It works on Windows 7 x64 and MT 5 x32 fine.

2 emsi: thanks for fann2mql.

2 all: someone made profit with that indicator?
 
 
  • Post #11
  • Quote
  • Oct 18, 2010 12:50pm Oct 18, 2010 12:50pm
  •  emsi
  • | Joined Nov 2007 | Status: Mariusz Woloszyn | 3 Posts
You're welcome.
BTW: the bug is fixed, please upgrade to build 344 and recompile your expert.

Regarding the profit of this type of indicator it is highly unlikely to bring any. The old fashion forecasting approach is valuable only in terms of education.
The best approximation of future price value is its current value
 
 
  • Post #12
  • Quote
  • Oct 22, 2010 2:14am Oct 22, 2010 2:14am
  •  chan123
  • | Joined Oct 2010 | Status: Member | 6 Posts
hello sir,
I got some errors while compiling mq5. Pls see the sceen shot and i need your help. thanks
Attached Image (click to enlarge)
Click to Enlarge

Name: Fann2 compile.PNG
Size: 84 KB
 
 
  • Post #13
  • Quote
  • Oct 22, 2010 6:28am Oct 22, 2010 6:28am
  •  Pagouras
  • | Joined Mar 2010 | Status: Member | 45 Posts
I got the same error here...
Quoting chan123
Disliked
hello sir,
I got some errors while compiling mq5. Pls see the sceen shot and i need your help. thanks
Ignored
 
 
  • Post #14
  • Quote
  • Oct 25, 2010 3:21am Oct 25, 2010 3:21am
  •  Graff
  • | Joined May 2009 | Status: Member | 35 Posts
I have the same errors after terminal update. I'll fix them later.
 
 
  • Post #15
  • Quote
  • Oct 27, 2010 1:58am Oct 27, 2010 1:58am
  •  Graff
  • | Joined May 2009 | Status: Member | 35 Posts
Here is fixed version without errors and warnings
Attached File(s)
File Type: zip fann2.zip   3 KB | 1,232 downloads
 
 
  • Post #16
  • Quote
  • Oct 27, 2010 1:37pm Oct 27, 2010 1:37pm
  •  Pagouras
  • | Joined Mar 2010 | Status: Member | 45 Posts
thank u g
 
 
  • Post #17
  • Quote
  • Last Post: Mar 11, 2020 5:37am Mar 11, 2020 5:37am
  •  admir
  • | Joined Feb 2015 | Status: Member | 298 Posts
Quoting Graff
Disliked
Here is fixed version without errors and warnings {file}
Ignored
styll cetyng a error
'iClose' - override system function fann2.mq5 241 8
 
 
  • Platform Tech
  • /
  • Fast Artificial Neural Network and MT5 price prediction
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023