Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Tools and utilities


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 (11) Thread Tools Display Modes
  #211 (permalink)  
Old 10-10-2008, 07:48 AM
Mr.Marketz's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 301
Mr.Marketz is on a distinguished road
Michel,

Thanks for the response. The Magic number feature does not seem to work on this EA. In other words, if it is affixed to GBP/USD & EUR/USD - it should close each individually based on its profit target parameters. Currently it does not. I've been using the Swiss Army EA, but it too has problems closing per symbol used. I don't believe that we have a solid working EA to close per "Total Pips Profit", and specific to the symbol.

This is a good EA and closes all orders efficiently, however it does seem to have a problem with managing the trades per individual pairs (magic number coding issue).

Again, any help in fixing this problem would be appreciated.

MM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #212 (permalink)  
Old 10-10-2008, 10:10 AM
Senior Member
 
Join Date: Feb 2006
Posts: 558
Michel is on a distinguished road
As I understand this Ea, its purpose is to manage the whole account, regardless the pair on wich it is attached. The Magic seems to work, but there is no discrimination of the pair.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #213 (permalink)  
Old 10-10-2008, 11:48 AM
Mr.Marketz's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 301
Mr.Marketz is on a distinguished road
Quote:
Originally Posted by Michel View Post
As I understand this Ea, its purpose is to manage the whole account, regardless the pair on wich it is attached. The Magic seems to work, but there is no discrimination of the pair.
Ok, I guess I misunderstood the function of the Magic number. I was under the impression that this EA could be affixed to multiple charts in order to manage the orders specific to that pair. Guess not.

Thanks for the help, Michel. Please let me know if I can help you with anything in return.

MM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #214 (permalink)  
Old 10-13-2008, 06:49 AM
Junior Member
 
Join Date: Aug 2008
Posts: 2
FastFreddy1 is on a distinguished road
Tried on several MT4 platforms, got same error message...4109 on all
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #215 (permalink)  
Old 10-13-2008, 10:23 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 3,305
Blog Entries: 46
Linuxser has disabled reputation
Quote:
Originally Posted by FastFreddy1 View Post
Tried on several MT4 platforms, got same error message...4109 on all
Did you enable checkbox "Allow live trading" in the expert properties?
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #216 (permalink)  
Old 10-15-2008, 07:55 PM
Junior Member
 
Join Date: Sep 2008
Posts: 16
bkr1969 is on a distinguished road
Now I can't post at all?

I just submitted a new post and it didn't even show up?! What gives?

Here was the post (I hope):

I've coded the following, (profit is defined in another part of the script) but the orders only close when I have "Ask Manual Confirmation" checked in the EA options. Otherwise, sometimes no orders close, sometimes 1 out of 4-6 open orders. What am I missing?

HTML Code:
if((profit>=1.5)||(profit<-1.5))
      {
        Alert("Profit is ",profit);
        for(x=totOrders-1;x>=0;x--)
          {
            if(OrderSelect(x,SELECT_BY_POS)==true)
              {
                switch(type)
                  {
                    case OP_BUY       : OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),0,0);
                          break;
      
                    case OP_SELL      : OrderClose( OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),0,0);
                          
                  }
                Alert("Closing order # ",OrderTicket()," which is in position ",x);
              }
            else
              {
                Alert("Error # ",GetLastError());
              }
          }
      }

Last edited by bkr1969; 10-15-2008 at 08:35 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #217 (permalink)  
Old 10-15-2008, 08:02 PM
Beno's Avatar
Senior Member
 
Join Date: Aug 2006
Location: London
Posts: 358
Beno is on a distinguished road
Has anyone managed to fix this e-CloseByPercentProfit.mq4 or if you speak his language I think it's Russian could you ask him for a fixed version
Attached Files
File Type: mq4 e-CloseByPercentProfit.mq4 (10.6 KB, 8 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #218 (permalink)  
Old 10-15-2008, 08:37 PM
Junior Member
 
Join Date: Sep 2008
Posts: 16
bkr1969 is on a distinguished road
No luck at all

None of the EA's or scripts throughout this post will close any of my open orders unless I turn on Manual Confirmation. I'm using MT4 through IBFX. Why won't this work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #219 (permalink)  
Old 10-16-2008, 05:53 AM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 3,305
Blog Entries: 46
Linuxser has disabled reputation
Quote:
Originally Posted by bkr1969 View Post
None of the EA's or scripts throughout this post will close any of my open orders unless I turn on Manual Confirmation. I'm using MT4 through IBFX. Why won't this work?

You windows looks like this one?

noone.JPG
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #220 (permalink)  
Old 10-16-2008, 03:54 PM
Junior Member
 
Join Date: Sep 2008
Posts: 16
bkr1969 is on a distinguished road
Exactly

Yes...that's how I'm set up. If I check the manual confirmation box, I get a pop up every time an order is supposed to close, I confirm it, and it closes. But without confirmation, the EA's and scripts will not close the orders.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
close, close all, close all positions, close all positions in MT4, close all trades, open close, profit, stop, trades, trailing, script, Stomper, mt4 close all script

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/tools-utilities/174-close-all-open-tools.html
Posted By For Type Date
Simple Trading Method with trader101 - Page 58 This thread Refback 09-29-2008 11:03 AM
Simple Trading Method with trader101 - Page 58 This thread Refback 09-29-2008 10:42 AM
Ind close sume post with one click? - Nogold.com This thread Refback 08-08-2008 12:34 PM
Close all trades with a push of a button? This thread Refback 07-21-2008 04:38 PM
Close all trades with a push of a button? This thread Refback 07-21-2008 04:28 PM
Close all trades !!! This thread Refback 06-24-2008 04:13 AM
Close all trades !!! This thread Refback 06-19-2008 11:53 AM
Close all trades !!! This thread Refback 06-19-2008 10:33 AM
Antara EA yang telah diLIVE test oleh MyMEFx Grup - Page 50 - Nogold.com This thread Refback 12-05-2007 04:58 PM
skrypty close i modify This thread Refback 08-07-2007 05:11 AM
Ind close sume post with one click? - Nogold.com This thread Refback 06-30-2007 04:02 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open/close trade on same bar's close? WNW Expert Advisors - Metatrader 4 2 03-29-2007 06:37 AM
close all open trades ea G-Riper General Discussion 2 08-02-2006 10:41 PM
Close all open positions jonjonau Expert Advisors - Metatrader 4 6 07-12-2006 06:01 AM
Close All Open Positions? lonespruce Metatrader 4 9 06-22-2006 08:20 AM


All times are GMT. The time now is 02:38 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.