Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-30-2007, 05:36 PM
Member
 
Join Date: Oct 2006
Posts: 59
Jovager is on a distinguished road
How can I close all trades

How can I close all open trades and pending orders together ?

Thanks for help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 03-30-2007, 05:50 PM
Junior Member
 
Join Date: Dec 2006
Posts: 16
fxgold is on a distinguished road
Close All

Here try these
Attached Files
File Type: zip close_scripts.zip (9.9 KB, 114 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 03-30-2007, 05:57 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,079
Blog Entries: 241
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
1. CloseAll-PL EA is here.

2. CloseTrades_After_Account_Profit_Reached Ea is here.

SpreadToCheck EA (spread checker): expert will record current time and current spread in *.csv file.

spread monitor indicator is here.

EA to delete pendind orders on specify pairs only: original thread.

EA to delete all pendind orders: original thread.

EA to close the orders on specify pairs only: original thread.

EA to close open trades based on equity or account floating loss reaches: public thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 03-30-2007, 08:58 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by newdigital
1. CloseAll-PL EA is here.

2. CloseTrades_After_Account_Profit_Reached Ea is here.

SpreadToCheck EA (spread checker): expert will record current time and current spread in *.csv file.

spread monitor indicator is here.

EA to delete pendind orders on specify pairs only: original thread.

EA to delete all pendind orders: original thread.

EA to close the orders on specify pairs only: original thread.

EA to close open trades based on equity or account floating loss reaches: public thread.
Please explain how to use the first one if I've already got an EA on the chart. Let's say I have an Full EA running on USD/CAD but don't like its internal SL and TP code would I add another USD/CAD chart then attach the close EA on it?
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 05-12-2007, 02:50 AM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 438
ryanklefas is on a distinguished road
Quote:
Originally Posted by Jovager
How can I close all open trades and pending orders together ?

Thanks for help.
My new EA can do that and more.

Swiss Army EA (Automatic order management)
__________________
"Don't work harder, work smarter." -- my Java professor

Advertise on The All New FireCell Network
"Where online investing makes sense"

Coder for Hire:
http://firecell.info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 05-12-2007, 06:32 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 820
wolfe is on a distinguished road
Will something like this work??

while(OrdersTotal()>0)
{
OrderSelect(0,SELECT_BY_POS);
if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),MarketInfo(Or derSymbol(),MODE_BID),999,Red);
if(OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),MarketInfo(Or derSymbol(),MODE_ASK),999,Orange);
if(OrderType()==OP_BUYSTOP||OrderType()==OP_SELLST OP||OrderType()==OP_BUYLIMIT||OrderType()==OP_SELL LIMIT) OrderDelete(OrderTicket());
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 05-12-2007, 06:23 PM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 438
ryanklefas is on a distinguished road
Quote:
Originally Posted by wolfe
Will something like this work??

while(OrdersTotal()>0)
{
OrderSelect(0,SELECT_BY_POS);
if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),MarketInfo(Or derSymbol(),MODE_BID),999,Red);
if(OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),MarketInfo(Or derSymbol(),MODE_ASK),999,Orange);
if(OrderType()==OP_BUYSTOP||OrderType()==OP_SELLST OP||OrderType()==OP_BUYLIMIT||OrderType()==OP_SELL LIMIT) OrderDelete(OrderTicket());
}
Yes, that will work.
__________________
"Don't work harder, work smarter." -- my Java professor

Advertise on The All New FireCell Network
"Where online investing makes sense"

Coder for Hire:
http://firecell.info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 05-12-2007, 11:33 PM
fxgrm's Avatar
Senior Member
 
Join Date: Mar 2007
Posts: 114
fxgrm is on a distinguished road
Will it work with this EA?

Hi Ryan:

Do I attach this EA to a duplicate chart of the pairs I am trading or attach it to the working chart I am running with the other EA? (no conflict?)

The other EA is the Bless FifthElement EA

Also, after it closes the trades, will it stop trading until I reset it? (This is what I want)

Will it do this?

Thanx ryan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 05-01-2009, 08:23 PM
Junior Member
 
Join Date: Oct 2008
Posts: 9
greg108 is on a distinguished road
close all open positions per chart or one pair only

Quote:
Originally Posted by fxgold View Post
Here try these

Quoted scripts don't work with 5 digit broker

"Close All open orders" scripts closes all positions on all pairs. But most of the time I have to close positions on one pair only.
So is there a script (not an EA) to close all positions per chart and not all positions per account.
Also there should be "Close all pending per chart script"

I wonder if there is anything of practical use here besides great code samples for aspiring coders?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 05-04-2009, 10:34 PM
Junior Member
 
Join Date: May 2009
Posts: 1
daresfile is on a distinguished road
HELP WITH My Ozfx

Hello!
It's nice to meet you all on this forum.
I'm a newbie, and I need your help. I'm trying to set up "My OZFx Squeeze refined v3[1][1].1" EA.
Please, I do want you to help me with the best setting you think I can use for it, i.e. the best currency pairs, best charts, etc.
I use FXDD presently, and may use IBFX in the nearest future.
Thanks to all.

Daresfile

---------------------------------------------------------------
God, the Author of all kowledge and wisdom.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Close Open Trades EAs based on Equity Tradinator Expert Advisors - Metatrader 4 32 11-10-2009 04:26 PM
Close all trades % of profit EA toddanderson Expert Advisors - Metatrader 4 4 04-29-2007 09:35 AM
close all open trades ea G-Riper General Discussion 2 08-02-2006 10:41 PM
How to close trades after a certain amount of time has passed Maji Metatrader 4 13 06-05-2006 01:11 PM


All times are GMT. The time now is 01:49 AM.



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