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

 

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

I've modified the "Next price predictor" posted by gpwr to allow any developer to create its own BPNN predictor easily, even without understanding how a neural network works. So easy even beginners can do it. Included: MA predictor and RSI predictor.

Author: Julien

 
There has been a critical error
Time : 2009.11.04 22:54
Program : Client Terminal
Version : 4.00 (build: 225, 10 Jul 2009)
OS : Windows XP Professional 5.1 Dodatek Service Pack 3 (Build 2600)
Processors : 2 x X86 (level 6)
Memory : 2097151/483584 kb
Exception : E06D7363
Address : 7C812AEB
Access Type : NA
Access Addr : 00000000

Registers : EAX=0012E4E0 CS=001b EIP=7C812AEB EFLGS=00000206
: EBX=01C82270 SS=0023 ESP=0012E4DC EBP=0012E530
: ECX=00000000 DS=0023 ESI=0012E568 FS=003b
: EDX=01C55910 ES=0023 EDI=00000001 GS=0000

Stack Trace : 01C44220 01C43515 01C4184C 01C41159
: 004588B5 00463E17 00455691 063361E0
: 0048BBC0 BE8D016A 00000000 00000000
: 00000000 00000000 00000000 00000000

Modules :
1 : 00400000 002B1000 e:\metatrader 4 kopia 2 do demo\terminal.exe
2 : 01860000 002D2000 c:\windows\system32\xpsp2res.dll
3 : 01C40000 0001C000 e:\metatrader 4 kopia 2 do demo\experts\libraries\bpnn.dll
4 : 10000000 0003E000 c:\program files\portrait displays\pivot software\winphook.dll
5 : 10100000 0000E000 c:\program files\logitech\setpoint\lgscroll.dll
6 : 16080000 00025000 c:\program files\bonjour\mdnsnsp.dll
7 : 5B1D0000 00038000 c:\windows\system32\uxtheme.dll
8 : 61E30000 0000D000 c:\windows\system32\mfc42loc.dll
9 : 66780000 00058000 c:\windows\system32\hnetcfg.dll
10 : 719F0000 00040000 c:\windows\system32\mswsock.dll
11 : 71A30000 00008000 c:\windows\system32\wshtcpip.dll
12 : 71A40000 00008000 c:\windows\system32\ws2help.dll
13 : 71A50000 00017000 c:\windows\system32\ws2_32.dll
14 : 71BA0000 00013000 c:\windows\system32\samlib.dll
15 : 72C80000 00007000 c:\windows\system32\msadp32.acm
16 : 72CA0000 00008000 c:\windows\system32\msacm32.drv
17 : 72CB0000 00009000 c:\windows\system32\wdmaud.drv
18 : 73D60000 000FE000 c:\windows\system32\mfc42.dll
19 : 746D0000 0004C000 c:\windows\system32\msctf.dll
20 : 76350000 00005000 c:\windows\system32\msimg32.dll
21 : 76380000 00049000 c:\windows\system32\comdlg32.dll
22 : 769A0000 000B5000 c:\windows\system32\userenv.dll
23 : 76B20000 0002E000 c:\windows\system32\winmm.dll
24 : 76C20000 0002E000 c:\windows\system32\wintrust.dll
25 : 76C80000 00028000 c:\windows\system32\imagehlp.dll
26 : 76D50000 00019000 c:\windows\system32\iphlpapi.dll
27 : 76F10000 00027000 c:\windows\system32\dnsapi.dll
28 : 76F50000 0002D000 c:\windows\system32\wldap32.dll
29 : 76FA0000 00008000 c:\windows\system32\winrnr.dll
30 : 76FB0000 00006000 c:\windows\system32\rasadhlp.dll
31 : 77110000 0008B000 c:\windows\system32\oleaut32.dll
32 : 773C0000 00103000 c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
33 : 774D0000 0013D000 c:\windows\system32\ole32.dll
34 : 77680000 00021000 c:\windows\system32\ntmarta.dll
35 : 77A70000 00096000 c:\windows\system32\crypt32.dll
36 : 77B10000 00012000 c:\windows\system32\msasn1.dll
37 : 77BC0000 00007000 c:\windows\system32\midimap.dll
38 : 77BD0000 00015000 c:\windows\system32\msacm32.dll
39 : 77C00000 00058000 c:\windows\system32\msvcrt.dll
40 : 77DC0000 000AC000 c:\windows\system32\advapi32.dll
41 : 77E70000 00092000 c:\windows\system32\rpcrt4.dll
42 : 77F10000 00049000 c:\windows\system32\gdi32.dll
43 : 77F60000 00076000 c:\windows\system32\shlwapi.dll
44 : 77FE0000 00011000 c:\windows\system32\secur32.dll
45 : 78130000 0009B000 c:\windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\msvcr80.dll
46 : 7C800000 000FD000 c:\windows\system32\kernel32.dll
47 : 7C900000 000B1000 c:\windows\system32\ntdll.dll
48 : 7C9C0000 0081E000 c:\windows\system32\shell32.dll
49 : 7E360000 00091000 c:\windows\system32\user32.dll

Call stack :

 

I saw that many people get this error when using this DLL.

I got it a couple of time also.

When it's like this I just restart MetaTrader and usually it works.

I'm not the author of the library, so I don't know what is the cause.


I'm working on a version using the more stable and open-source Fann instead (http://leenissen.dk/fann/) via the Fann2MQL Library (http://fann2mql.wordpress.com/).

I will post it when it's ready.

A tutorial about how to create simple neural networks (with a pattern recognition example) has been posted and is awaiting approval to be published on this site.

 

I wanted a Stochastic predictor

double getValue(int i) {
return(iStochastic(NULL,0,5,3,3,MODE_SMMA,PRICE_OPEN,0,i));
}
 

but  there was no graph, what's wrong with the code ?

 
mel8331:

I wanted a Stochastic predictor

double getValue(int i) {
return(iStochastic(NULL,0,5,3,3,MODE_SMMA,PRICE_OPEN,0,i));
}

but there was no graph, what's wrong with the code ?

you must use the RSI base code which writes in a separate windows and use the right parameters in stoch function call !! (like this)


return(iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,i));

Really nice develop, thanks zenhop !

 
zenhop:

I saw that many people get this error when using this DLL.

I got it a couple of time also.

When it's like this I just restart MetaTrader and usually it works.

I'm not the author of the library, so I don't know what is the cause.


I'm working on a version using the more stable and open-source Fann instead (http://leenissen.dk/fann/) via the Fann2MQL Library (http://fann2mql.wordpress.com/).

I will post it when it's ready.

A tutorial about how to create simple neural networks (with a pattern recognition example) has been posted and is awaiting approval to be published on this site.

This dll really has a lot of trouble.

I'm actually using the first release published by gpwr (really great work !) and it works, but this one crashes terminal.exe !!

Someone can work on a stable release ?

 

Hi All,

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

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


 

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

thanks

Reason: