MQL4 - automated forex trading   /  

Forum

Multiple EA Instances

Back to topics list To post a new topic, please log in or register

avatar
9
tomcat1762 2008.03.31 15:59 

I ran the same EA on multiple charts and it starting doing some wacky things, what am I missing? And what is the 'magic number' for? I thought if I saved the ticket number in an external variable I could use that to identify the trades of individual EA's. Each EA has only one trade open at all and any time.


Thanks!

Tom

article

Betting Modeling as Means of Developing "Market Intuition"

The article dwells on the notion of "market intuition" and ways of developing it. The method described in the article is based on the modeling of financial betting in the form of a simple game.


avatar
1235
BarrowBoy 2008.03.31 16:42 
TC

Dont use ticket number for this - use MagicNumber, which is set in the OrderSend line.

Best to have this as an extern variable


See 'MagicNumber: "Magic" Identifier of the Order'


You can then use the same EA on multiple charts with different values for the MagicNumber (set in the extern variable list that pops up when you add an EA to a chart)


Good Luck

-BB-


avatar
9
tomcat1762 2008.03.31 17:40 
BarrowBoy wrote:
TC

Dont use ticket number for this - use MagicNumber, which is set in the OrderSend line.

Best to have this as an extern variable


See 'MagicNumber: "Magic" Identifier of the Order'


You can then use the same EA on multiple charts with different values for the MagicNumber (set in the extern variable list that pops up when you add an EA to a chart)


Good Luck

-BB-

Received and understood - thank you! However, this all implies that there is a sharing of the orders database among EA's. But external variables are not 'shared' among EA's, with this said, the confusing part for me is - How can the ticket number, when stored in an external, not be unique and sufficient to identify an order for a particular EA?
Back to topics list  

To add comments, please log in or register