molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Mon May 20, 2024 10:31 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: MT4 CRASHES WHILE BACKTESTING
PostPosted: Mon Dec 28, 2009 4:09 am 
Offline

Joined: Mon Dec 28, 2009 4:04 am
Posts: 9
HI

DOES ANYONE HAVE BACKTESTED EA CREATED USING MOLANIS STRATEGY BUILDER (MSB). WELL I HAVE PREPARED AN EA USING MOVING AVERAGES BUT WHILE BACKTESTING MT4 CRASHES IT GIVES A LIST OF ALL THE FILES U CAN SEE IN DIRECTORY WHERE MT4 IS INSTALLED AND ONCE U CLICK OK IT WILL EXIT.

I TRIED SEVERAL DIFFERENT BROKERS MT4 PLATFORMS BUT SAME THING IS HAPPENING. I TRIED IT EVEN ON VPS BUT IT CRASHED TOO, IT WAS A DEMO ACCOUNT.

ANY HELP WILL BE MUCH APPRECIATED.

THANKS


Top
 Profile  
 
 Post subject: Re: MT4 CRASHES WHILE BACKTESTING
PostPosted: Mon Dec 28, 2009 4:57 am 
Offline

Joined: Mon Dec 28, 2009 4:04 am
Posts: 9
HI

THE ACTUAL ERROR DIALOG BOX IS LIKE THIS

************************************************************

There has been a critical error
Time : 2009.12.28 15:04
Program : Client Terminal
Version : 4.00 (build: 225, 10 Jul 2009)
OS : Windows Vista Professional 6.0 (Build 6000)
Processors : 1 x X86 (level 6)
Memory : 1562016/723644 kb
Exception : C0000005
Address : 004608ED
Access Type : read
Access Addr : FF013F0B

Registers : EAX=FF013F0B CS=001b EIP=004608ED EFLGS=00010206
: EBX=8F6AC68E SS=0023 ESP=029BBD28 EBP=029BBD60
: ECX=DED3B088 DS=0023 ESI=00460044 FS=003b
: EDX=00000007 ES=0023 EDI=020474CC GS=0000

Stack Trace : 00455691 FFFFFFFF 00000000 00000000
: 00000000 00000000 00000000 00000000
: 00000000 00000000 00000000 00000000
: 00000000 00000000 00000000 00000000

Modules :
1 : 00400000 002B1000 d:\miscellaneous\1\terminal.exe
2 : 10000000 00059000 c:\program files\trusteer\rapport\bin\rooksbas.dll
3 : 6C1B0000 00005000 c:\windows\system32\avgrsstx.dll
4 : 6CA40000 00038000 c:\windows\system32\odbcint.dll
5 : 6CE70000 00065000 c:\windows\system32\odbc32.dll
6 : 6D6C0000 0011C000 c:\windows\system32\mfc42.dll
7 : 6DC70000 00015000 c:\windows\system32\msacm32.dll
8 : 6E330000 00007000 c:\windows\system32\midimap.dll
9 : 6E370000 00009000 c:\windows\system32\msacm32.drv
10 : 6E5C0000 00030000 c:\windows\system32\wdmaud.drv
11 : 6E820000 00004000 c:\windows\system32\ksuser.dll
12 : 6F7A0000 0009B000 c:\program files\trusteer\rapport\bin\msvcr80.dll
13 : 70C50000 00066000 c:\windows\system32\audioeng.dll
14 : 70CC0000 00021000 c:\windows\system32\audioses.dll
15 : 74220000 00027000 c:\windows\system32\mmdevapi.dll
16 : 74290000 00038000 c:\windows\system32\oleacc.dll
17 : 74450000 00033000 c:\windows\system32\winmm.dll
18 : 74540000 00194000 c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100\comctl32.dll
19 : 746F0000 00007000 c:\windows\system32\avrt.dll
20 : 74840000 0003F000 c:\windows\system32\uxtheme.dll
21 : 74940000 0002D000 c:\windows\system32\wintrust.dll
22 : 74A00000 00005000 c:\windows\system32\msimg32.dll
23 : 74C10000 00038000 c:\windows\system32\rsaenh.dll
24 : 74CA0000 0003B000 c:\windows\system32\mswsock.dll
25 : 74DF0000 00006000 c:\windows\system32\wshtcpip.dll
26 : 750A0000 000F1000 c:\windows\system32\crypt32.dll
27 : 751F0000 00012000 c:\windows\system32\msasn1.dll
28 : 75500000 00008000 c:\windows\system32\version.dll
29 : 75650000 00014000 c:\windows\system32\secur32.dll
30 : 75670000 0001E000 c:\windows\system32\userenv.dll
31 : 75720000 00007000 c:\windows\system32\psapi.dll
32 : 757C0000 00144000 c:\windows\system32\ole32.dll
33 : 75910000 000AA000 c:\windows\system32\msvcrt.dll
34 : 759C0000 000E6000 c:\windows\system32\wininet.dll
35 : 75AB0000 00188000 c:\windows\system32\setupapi.dll
36 : 75C40000 00006000 c:\windows\system32\nsi.dll
37 : 75C50000 00074000 c:\windows\system32\comdlg32.dll
38 : 75CD0000 000D8000 c:\windows\system32\kernel32.dll
39 : 75DB0000 0004B000 c:\windows\system32\gdi32.dll
40 : 75E00000 00003000 c:\windows\system32\normaliz.dll
41 : 75E10000 00084000 c:\windows\system32\clbcatq.dll
42 : 75EA0000 00009000 c:\windows\system32\lpk.dll
43 : 75EB0000 00029000 c:\windows\system32\imagehlp.dll
44 : 75EE0000 0007D000 c:\windows\system32\usp10.dll
45 : 75F60000 00132000 c:\windows\system32\urlmon.dll
46 : 760A0000 000C7000 c:\windows\system32\msctf.dll
47 : 76170000 0008C000 c:\windows\system32\oleaut32.dll
48 : 76200000 00055000 c:\windows\system32\shlwapi.dll
49 : 76260000 0009E000 c:\windows\system32\user32.dll
50 : 76300000 0001E000 c:\windows\system32\imm32.dll
51 : 76320000 0002D000 c:\windows\system32\ws2_32.dll
52 : 76350000 001E8000 c:\windows\system32\iertutil.dll
53 : 76540000 00ACE000 c:\windows\system32\shell32.dll
54 : 77010000 000BF000 c:\windows\system32\advapi32.dll
55 : 770D0000 0011E000 c:\windows\system32\ntdll.dll
56 : 77240000 000C3000 c:\windows\system32\rpcrt4.dll

Call stack :


Top
 Profile  
 
 Post subject: Re: MT4 CRASHES WHILE BACKTESTING
PostPosted: Mon Dec 28, 2009 7:18 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Before the beta launch we did several tests related to backtesting and did not find any errors. However, MT4 can not backtest strategies which involve multiple currency pairs. It is likelly that the problem is related to MetaTrader. Can you send your startegy to support@molanis.com for us to backtest?

Molanis Team


Top
 Profile  
 
 Post subject: Re: MT4 CRASHES WHILE BACKTESTING
PostPosted: Tue Dec 29, 2009 12:52 am 
Offline

Joined: Mon Dec 28, 2009 4:04 am
Posts: 9
Hi

its just a simple moving average of 9 and 100 over an hourly timeframe.

currency pair any, lot mgt type 1 stoploss and trailing stop 40.

obviously its a beta version so cant see the mql4 code however i tried attaching ex4 file but doesnt allow it.


thanks


Top
 Profile  
 
 Post subject: Re: MT4 CRASHES WHILE BACKTESTING
PostPosted: Tue Dec 29, 2009 10:44 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
The file we need is the .mol file. It's the file created by Molanis Strategy Builder
Molanis Team


Top
 Profile  
 
 Post subject: Re: MT4 CRASHES WHILE BACKTESTING
PostPosted: Sat Jan 02, 2010 5:11 am 
Offline

Joined: Mon Dec 28, 2009 4:04 am
Posts: 9
i am attaching here the .mol file which was created.

thanks


Attachments:
9100.mol [5.94 KiB]
Downloaded 486 times
Top
 Profile  
 
 Post subject: Re: MT4 CRASHES WHILE BACKTESTING
PostPosted: Sun Jan 03, 2010 9:10 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Your lot size for SELL is 0. This creates an error when sending the order to the server. However this does not lead to MT4 crashing. The MetaTrader crash is not due to the code generated by Molanis Strategy Builder. Instead it's related to MetaTrader. One of the reasons for this issue is related to using different MetaTrader versions. If you compile with one MetaTrader version and trade or backtest with another one, MT4 will crash -sometimes-. This has been mentioned several times in MetaTrader forums. The solution is to install the latest MT4 version and generate the code again.

If you have two or more MetaTrader installations in your pc and MT4 crashes, you need to use the same MT4 version (build) to generate the code and trade/backtest. If you can't install the same version, you need to do the following:

-Go to Molanis installation directory (C:\Molanis\Strategy_Builder)
-Make a copy of the file molanis-pref.xml just in case you need it later. This file contains Molanis configuration parameters.
-Open the file molanis-pref.xml with notepad (or any text editor) and find the line:
<entry key="mt4dir">C:\Program Files\MetaTrader 4</entry>
-Change C:\Program Files\MetaTrader 4 for the directory where your MetaTrader installation -the one you want to use for trading or backtesting- is located. DO NOT CHANGE ANY OTHER LINE!
-Open Molanis Strategy Builder
-Create your strategy with Molanis Strategy Builder (.mol file) and generate your EA

In the next version, we'll make this process friendlier.

If you get this message when generating the MQL code: "Error: The file couldn't be opened on the MetaTrader editor. Please review the MetaTrader settings in Molanis' preference file." the directory you added is wrong. You need to change it.

Molanis Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by Molanis © 2009