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 (9) Thread Tools Display Modes
  #91 (permalink)  
Old 02-07-2008, 07:32 PM
Member
 
Join Date: Jul 2006
Posts: 32
agarwalsharma is on a distinguished road
Is there an EA that close all the orders when the equity increase or decrease certain $ ?

Thank you



Quote:
Originally Posted by wolfe View Post
Here you go, I made this. Hope it helps. In the external parameter enter a number as a dollar amount for Take_Profit and Stop_Loss. This EA will execute according to the TOTAL VALUE of all open orders, it also deletes any pending orders.

example:

Take_Profit=200
Stop_Loss=-200
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #92 (permalink)  
Old 02-10-2008, 03:29 PM
Junior Member
 
Join Date: Jan 2008
Posts: 1
helwanif is on a distinguished road
closing all open orders

Hello everyone

I'm trying to create my first EA using Meta Editor.

I need in a certain point of execution to close all the open orders of a certain type. for example when my EA places a sell order it should close all the buy orders that are open.

I wrote something like the following

Code:
        total=OrdersTotal();
         for(int i=total-1; i>=0; i--) {
         OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
         if(OrderType()== OP_BUY) {
         OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet); 
             }
}
but it didn't do the job since it sometimes close the newest order only, but not all the opened order.

can anyone help me please ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #93 (permalink)  
Old 02-12-2008, 01:34 PM
goldenequity's Avatar
Member
 
Join Date: Feb 2006
Location: Arizona, USA
Posts: 36
goldenequity is on a distinguished road
Close and Reverse all Open Trades script

Here are 3 scripts: close all open trades;close all pendings; close both


My question:
  • Is there an existing .mq4 script that allows/enables the trader to manually Close and Reverse all Open Trades?
A single script that offers the trader both option(s)..... to either:
  1. Close all Open Trades, OR
  2. Close and Reverse all Open Trades
is really what I'm seeking.

This is sorely needed to enhance the standard MT4 trading platform to accommodate manual scalping techniques using 1 and 5 min charting.

Thanks in advance for any help with this.
Attached Files
File Type: mq4 Close all pending orders.mq4 (1.0 KB, 32 views)
File Type: mq4 Close all open positions.mq4 (1.2 KB, 42 views)
File Type: mq4 Close all open and pending orders.mq4 (1.4 KB, 40 views)
__________________
Vote Ron Paul 2008 ".....it's later than you think."
www.ronpaulaudio.com
www.ronpaulforums.com

Last edited by goldenequity; 02-12-2008 at 01:46 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #94 (permalink)  
Old 02-12-2008, 01:42 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 2,415
Blog Entries: 2
Linuxser has disabled reputation
Quote:
Originally Posted by goldenequity View Post
Here are 3 scripts: close all open trades;close all pendings; close both


My question:
Is there an existing .mq4 script that allows/enables the trader to manually close and reverse all open trades?
This would be needed for a manual scalping technique using 1 and 5 min charting.

Thanks in advance for any help with this.
Hi, I just moved your post to the correspondent thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #95 (permalink)  
Old 02-12-2008, 01:49 PM
goldenequity's Avatar
Member
 
Join Date: Feb 2006
Location: Arizona, USA
Posts: 36
goldenequity is on a distinguished road
Thanks

Quote:
Originally Posted by Linuxser View Post
Hi, I just moved your post to the correspondent thread.
Thanks Linuxer
__________________
Vote Ron Paul 2008 ".....it's later than you think."
www.ronpaulaudio.com
www.ronpaulforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #96 (permalink)  
Old 02-12-2008, 03:38 PM
Administrator
 
Join Date: Sep 2005
Posts: 15,862
Blog Entries: 51
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by goldenequity View Post
Here are 3 scripts: close all open trades;close all pendings; close both


My question:
  • Is there an existing .mq4 script that allows/enables the trader to manually Close and Reverse all Open Trades?
A single script that offers the trader both option(s)..... to either:
  1. Close all Open Trades, OR
  2. Close and Reverse all Open Trades
is really what I'm seeking.

This is sorely needed to enhance the standard MT4 trading platform to accommodate manual scalping techniques using 1 and 5 min charting.

Thanks in advance for any help with this.
Yes. There is close and everse script. It was posted on this thread, or it is on Metaquotes codebase. It is old well-known script.

Just found it inside my computer ... may be difference as I did not check it.
Attached Files
File Type: mq4 Reverse.mq4 (1.5 KB, 69 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #97 (permalink)  
Old 02-13-2008, 02:48 AM
goldenequity's Avatar
Member
 
Join Date: Feb 2006
Location: Arizona, USA
Posts: 36
goldenequity is on a distinguished road
Thanks

Thanks for the quick response NewDigital
__________________
Vote Ron Paul 2008 ".....it's later than you think."
www.ronpaulaudio.com
www.ronpaulforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #98 (permalink)  
Old 02-13-2008, 01:26 PM
Junior Member
 
Join Date: Apr 2006
Posts: 1
Rambaldi is on a distinguished road
Hi,

i have a big problem, i try to code a script to "close a Part of a actuall Position", but my code skills are not so well, is there any chance to find this script?

Many Thanks, Ram

Last edited by Linuxser; 02-13-2008 at 01:40 PM. Reason: Duplicated Post
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #99 (permalink)  
Old 02-17-2008, 05:32 AM
Senior Member
 
Join Date: Nov 2006
Posts: 122
Yoda_Glenn is on a distinguished road
EA to shutdown other EAs?

Is there an EA out there that will shutdown my EA when a certain amount of drawdown is hit? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #100 (permalink)  
Old 02-17-2008, 06:03 AM
Banned
 
Join Date: Nov 2007
Posts: 374
oilfxpro is on a distinguished road
Hi

I haver had chance to test this EA

OILFXPRO Master E A free version

oilfxpro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
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
Ind close sume post with one click? - Nogold.com This thread Refback 08-08-2008 11:34 AM
Close all trades with a push of a button? This thread Refback 07-21-2008 03:38 PM
Close all trades with a push of a button? This thread Refback 07-21-2008 03:28 PM
Close all trades !!! This thread Refback 06-24-2008 03:13 AM
Close all trades !!! This thread Refback 06-19-2008 10:53 AM
Close all trades !!! This thread Refback 06-19-2008 09:33 AM
Antara EA yang telah diLIVE test oleh MyMEFx Grup - Page 50 - Nogold.com This thread Refback 12-05-2007 03:58 PM
skrypty close i modify This thread Refback 08-07-2007 04:11 AM
Ind close sume post with one click? - Nogold.com This thread Refback 06-30-2007 03: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 05:37 AM
close all open trades ea G-Riper General Discussion 2 08-02-2006 09:41 PM
Close all open positions jonjonau Expert Advisors - Metatrader 4 6 07-12-2006 05:01 AM
Close All Open Positions? lonespruce Metatrader 4 9 06-22-2006 07:20 AM


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



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