Forex Nirvana Forum - Helping you reach forex enlightenment

Close all opened positions at the same time in MT4

This is a discussion on Close all opened positions at the same time in MT4 within the Trading Utilities forums, part of the Indicators & Utilities category; How to close all opened positions at the same time in MT4. Use the EAs + script I've attached to ...






Free Downloads: 14 Critical Lessons Every Trader Should Know & Learn Elliott Wave Analysis

Sponsors

Forex VPS



Forex Brokers









Go Back   Forex Nirvana Forum - Helping you reach forex enlightenment > Indicators & Utilities > Trading Utilities

The Path to Forex Enlightenment


Trading Utilities Share/discuss your favorite trading utilities such as position size, pip, and profit calculator, etc.

Reply

 

LinkBack (5) Thread Tools Display Modes
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-13-2009, 11:34 PM
alan's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: Forex Nirvana
Posts: 1,726
Thanks: 71
Thanked 69 Times in 57 Posts
Thumbs up Close all opened positions at the same time in MT4

How to close all opened positions at the same time in MT4. Use the EAs + script I've attached to this post.

The zip archive contains the following EAs:

Close and Reverse.mq4
CloseAllAtEquityLevel.mq4
CloseAll-PL.mq4
CloseTrades_After_Account_Profit_Reached.mq4
CloseOnTime.mq4
CloseTrades_After_Account_Loss_TooMuch.mq4

Enjoy!
Attached Files
File Type: ex4 closeall1.ex4 (2.1 KB, 48 views)
File Type: zip mt4-close-all-trades-scripts.zip (7.4 KB, 102 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-05-2009, 12:01 PM
Soak614's Avatar
Baby Pip
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks for sharing! could u advise how to apply the closeontime script? I tried to drag it onto the chart but nothing pop up request for any input. Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-06-2009, 08:27 AM
alan's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: Forex Nirvana
Posts: 1,726
Thanks: 71
Thanked 69 Times in 57 Posts
Default

Actually it's not a script it's an EA so you have to make sure you place it in your MT4's "experts" folder. Next restart MT4 then drag and drop the CloseOnTime EA on the chart and you should get a properties window where you can set the close time and all that good stuff.

Good luck.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-06-2009, 08:46 AM
Soak614's Avatar
Baby Pip
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks a lot! Could you brief explain the settings? I tried to use this EA today, but it didn't close the orders in my preset time (I assume that I should input the closing time based on the server time)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-06-2009, 09:00 AM
alan's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: Forex Nirvana
Posts: 1,726
Thanks: 71
Thanked 69 Times in 57 Posts
Default

To be honest I'm not that familar with the script to be able to describe all the settings, but I'll have a look at it later on and try my best to explain the settings. Yes, the closing time is SERVER time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-06-2009, 10:52 AM
Soak614's Avatar
Baby Pip
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

Many thx! Alan!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-07-2009, 07:58 AM
Soak614's Avatar
Baby Pip
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Alan, the closeontime EA works finally today. Thanks a lot!
__________________
http://www.wallaceforexlab.com
Researches on profitable expert advisors through forward tests.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 08-07-2009, 12:55 PM
alan's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: Forex Nirvana
Posts: 1,726
Thanks: 71
Thanked 69 Times in 57 Posts
Default

Glad to hear that! Good luck with your trading
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 08-17-2009, 04:01 AM
thesecret's Avatar
Senior Member
 
Join Date: Jan 2009
Posts: 865
Thanks: 79
Thanked 222 Times in 80 Posts
Default

Quik Shut Down does that too.
__________________
-=Think outside of the box=-
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 10-15-2009, 07:00 AM
alan's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: Forex Nirvana
Posts: 1,726
Thanks: 71
Thanked 69 Times in 57 Posts
Default Re: Close all opened positions at the same time in MT4

Apparently so. Thanks for pointing that out. That's the only Quik tool that I'm not using at the moment.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Reply

Bookmarks

Tags
forex, mt4, trading

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


LinkBacks (?)

LinkBack to this Thread: http://www.forexnirvana.com/f44/close-all-opened-positions-same-time-mt4-870/

Posted By For Type Date Hits
Closing multiple trades... - The Forex Autopilot, FapTurbo & FapTurbo Evolution Forum This thread Refback 02-04-2010 03:45 AM 6
Closing multiple trades... - The Forex Autopilot, FapTurbo & FapTurbo Evolution Forum This thread Refback 12-31-2009 03:59 AM 1
Closing multiple trades... - The Forex Autopilot, FapTurbo & FapTurbo Evolution Forum This thread Refback 12-24-2009 12:38 AM 7
Alan's Forex Blog - An Adventure In Currency Trading - Part 2 This thread Refback 07-22-2009 03:01 PM 1
How to close all opened positions at the same time in MT4 | Alan's Forex Blog This thread Pingback 07-14-2009 12:14 AM 50




All times are GMT -5. The time now is 04:38 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Ad Management by RedTyger