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 Thu May 16, 2024 7:50 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Magic numbers, manual entries to be closed by an EA
PostPosted: Thu Dec 27, 2012 8:20 am 
Offline

Joined: Mon Nov 12, 2012 1:11 pm
Posts: 2
Hi,

Can someone comment on this please. I have several EA's that alert to a trading opportunity. If I manually enter several positions over the course of a trend, the magic number is 0.

Let's say I create 5 add on trades that were created by a manual entry.

If I attach an EA to close these positions with the magic number is 0, when triggered will this EA close the 5 trades?

Additionally I use a Trade Manager application to execute the manual entries. With this application I can input a magic number prior to executing a manual entry. Therefore that trade will have a magic number referenced to it.

Same question, if my EA magic number to close the magic entries is the same as the magic number I inputted, will it close all of my manual trades?

Much appreciated.

Rob


Top
 Profile  
 
 Post subject: Re: Magic numbers, manual entries to be closed by an EA
PostPosted: Tue Jan 01, 2013 4:57 pm 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
Quote:
If I attach an EA to close these positions with the magic number is 0, when triggered will this EA close the 5 trades?

Yes
Same for the other application - you need to be sure that magic number and pair is the same


Top
 Profile  
 
 Post subject: Re: Magic numbers, manual entries to be closed by an EA
PostPosted: Tue Jan 01, 2013 7:28 pm 
Offline

Joined: Mon Nov 12, 2012 1:11 pm
Posts: 2
Cheers, thanks for the reply


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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