MetaTrader4: Running an EA with a simulated tick input - HOW?
  #1 (permalink)  
Old 05-04-2008, 07:40 AM
Freshman
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
knoxgrant is on a distinguished road
Question MetaTrader4: Running an EA with a simulated tick input - HOW?

Hi Everyone,
I've recently discovered the MetaTrader4 lanuage and it is awesome. I've written an EA which I think is very promising - but I have a problem.

It seems to me that the only way I can test my EA (i.e. run it) is with live ticks coming in from my broker's server (I have a demo account). So over a weekend when the Forex market is closed, I can't run my code. Surely there must be some way to simulate a tick input (with psuedo Bid and Ask values), so that one can actually run one's code.

Anyone that writes their own EA will have this problem. I really hope there is someone out there who has solved it and can enlighten me.

Thanks guys (in anticipation)
Robin
Reply With Quote
  #2 (permalink)  
Old 05-04-2008, 10:51 AM
Freshman
 
Join Date: Mar 2008
Posts: 12
Thanks: 0
Thanked 5 Times in 3 Posts
Dael is on a distinguished road
Default

Quote:
Originally Posted by knoxgrant View Post
Hi Everyone,
I've recently discovered the MetaTrader4 lanuage and it is awesome. I've written an EA which I think is very promising - but I have a problem.

It seems to me that the only way I can test my EA (i.e. run it) is with live ticks coming in from my broker's server (I have a demo account). So over a weekend when the Forex market is closed, I can't run my code. Surely there must be some way to simulate a tick input (with psuedo Bid and Ask values), so that one can actually run one's code.

Anyone that writes their own EA will have this problem. I really hope there is someone out there who has solved it and can enlighten me.

Thanks guys (in anticipation)
Robin
Hmm. Why can't you try tester in MT4? Press Ctrl+R, choose your EA in list, choose preferable pair and timeframe and check "visual mode" box to look what EA is doing on chart. That's all, start it.
Reply With Quote
  #3 (permalink)  
Old 05-04-2008, 05:16 PM
Freshman
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
knoxgrant is on a distinguished road
Default

Hi Dael,
Really appreciate your response. Great idea. I don't yet know Tester too well. But I will learn. Tried my EA on Tester following your instructions, but results were zero - all the readouts were zero.

What I actually want to do is to set break points in the code and see what is going on in the variables and expressions. Tester can't do that for me. The EA works in a live feed situation, but it won't work on Test. Strange. I'll keep working on it. Persistence will win through.

Thanks again for your response.
Robin
Reply With Quote
  #4 (permalink)  
Old 05-04-2008, 08:29 PM
bossxero's Avatar
Forex Leader
 
Join Date: Nov 2006
Posts: 454
Thanks: 110
Thanked 87 Times in 53 Posts
bossxero has a spectacular aura aboutbossxero has a spectacular aura about
Send a message via ICQ to bossxero Send a message via MSN to bossxero Send a message via Yahoo to bossxero Send a message via Skype™ to bossxero
Default

Quote:
Originally Posted by knoxgrant View Post
Hi Dael,
Really appreciate your response. Great idea. I don't yet know Tester too well. But I will learn. Tried my EA on Tester following your instructions, but results were zero - all the readouts were zero.

What I actually want to do is to set break points in the code and see what is going on in the variables and expressions. Tester can't do that for me. The EA works in a live feed situation, but it won't work on Test. Strange. I'll keep working on it. Persistence will win through.

Thanks again for your response.
Robin
Hi knox... unfortunately thats one of the drawbacks that metatrader currently has... it does not have a debugger to debug the codes...
__________________
F r e e___F o r e x___E b o o k s___a n d___S t u f f s

-> Cheap MQL Coding service for your EA/indicator is Here <- <-

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tick counter. Ravique Indicators 25 04-18-2008 09:40 PM
ECN broker with MetaTrader4? tulip09 Brokers/Platforms 2 11-18-2007 08:01 PM
EA Help , How to first tick up from below in mac histogram ? gknows Trading Systems 0 11-07-2007 08:36 AM
Expert Advisor Program for Metatrader4 (MT4) jebigabre Classified Ads 0 05-18-2007 08:35 PM
Anyone have Input on these EA's? jimbo61 Commercial Products 1 02-28-2007 02:38 PM


All times are GMT. The time now is 04:41 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast