Forex
Google

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-02-2006, 10:59 PM
ycomp's Avatar
ycomp ycomp is offline
Member
 
Join Date: Jan 2006
Posts: 93
ycomp is on a distinguished road
having trouble with multiple EAs

Hi,

I'm having trouble attaching more than 1 EA to a chart.

Is this simply not possible or is there an option to enable this somewhere?

Reason I ask is because MetaTrader leads you to believe this is possible... right click on the chart and it says "Expert Advisors" for the sub-menu.

But I suspect this may be because MT was written by Russians and so might just be a typo.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-02-2006, 11:41 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Impossible

Quote:
Originally Posted by ycomp
Hi,

I'm having trouble attaching more than 1 EA to a chart.

Is this simply not possible or is there an option to enable this somewhere?

Reason I ask is because MetaTrader leads you to believe this is possible... right click on the chart and it says "Expert Advisors" for the sub-menu.

But I suspect this may be because MT was written by Russians and so might just be a typo.
It's Impossible to attach more than one expert advisor to a chart!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-02-2006, 11:54 PM
ycomp's Avatar
ycomp ycomp is offline
Member
 
Join Date: Jan 2006
Posts: 93
ycomp is on a distinguished road
ok... that's what I was thinking but just wanted to make sure. thx.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-03-2006, 01:05 AM
cockeyedcowboy's Avatar
cockeyedcowboy cockeyedcowboy is offline
Senior Member
 
Join Date: Nov 2005
Posts: 267
cockeyedcowboy is on a distinguished road
ycomp

You can attach two EAs to the same chart ( Symbol and Time Frame ), but on two different windows. If you need, you can form a communication link between the two EAs as well. A round about way to get Two EAs working together employing the same data series.


The CockeyedCowboy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-03-2006, 01:18 AM
ycomp's Avatar
ycomp ycomp is offline
Member
 
Join Date: Jan 2006
Posts: 93
ycomp is on a distinguished road
CC, you read my mind... that was my intention to have 2 EAs working together.

Just would have been nice to have it on one chart so I wouldn't have to have so many windows open.

I am going to use global variables. Is that the best way to do it? are they reliable?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-03-2006, 04:08 AM
cockeyedcowboy's Avatar
cockeyedcowboy cockeyedcowboy is offline
Senior Member
 
Join Date: Nov 2005
Posts: 267
cockeyedcowboy is on a distinguished road
Quote:
Originally Posted by ycomp
CC, you read my mind... that was my intention to have 2 EAs working together.

Just would have been nice to have it on one chart so I wouldn't have to have so many windows open.

I am going to use global variables. Is that the best way to do it? are they reliable?
Ycomp

I assume here your talking about GlobalVariable() function calls. I have not had any problems and use them offen. You should consider that, they can only hold one unit of data, and that being of type double. If your needing to move more data points then just a few then you needed to use files to transfer information. I've used files very offen to communicate between EAs and different software, as well, with great success. If you plan your code just right you can have the same file open in both EAs at the same time and be able to read and/or write to the file from both directions. I have done this and its not that difficult.




" you read my mind " ... sounds just like French Canada too me. A little like 'trow me out the window, the hammer'



The CockeyedCowboy Z}.'^)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-03-2006, 04:41 AM
ycomp's Avatar
ycomp ycomp is offline
Member
 
Join Date: Jan 2006
Posts: 93
ycomp is on a distinguished road
Quote:
Originally Posted by cockeyedcowboy
I assume here your talking about GlobalVariable() function calls. I have not had any problems and use them offen. You should consider that, they can only hold one unit of data, and that being of type double. If your needing to move more data points then just a few then you needed to use files to transfer information. I've used files very offen to communicate between EAs and different software, as well, with great success. If you plan your code just right you can have the same file open in both EAs at the same time and be able to read and/or write to the file from both directions. I have done this and its not that difficult.
yes the MT4 global variable function calls. I didn't look into using them yet, just thought that could be useful. Currently I'm just thinking about passing only a few pieces of data, maybe 4 or so.

I'm wondering if there are any known reliability problems with them working in live trading. ?

Quote:
Originally Posted by cockeyedcowboy
" you read my mind " ... sounds just like French Canada too me. A little like 'trow me out the window, the hammer'
been there a couple of times... girls are sexy especially with the accents.

funny thing is it also jumped out at me when I first wrote it... it does look strange on a web page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
anyone having trouble with marketiva increase General Discussion 2 02-09-2007 03:08 AM
Having trouble finding Broker matrixebiz Metatrader 4 1 12-11-2006 12:06 PM
Trouble Shooting Mr.Marketz Metatrader 4 mql 4 - Development course 5 11-07-2006 08:48 PM
Trouble with bars pabloschiki Metatrader 4 4 08-29-2006 08:09 PM


All times are GMT. The time now is 09:33 AM.