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 ...






Cheap, Reliable, Low Latency, and Easy to Use Forex VPS Solution

(This is our own - Forex Nirvana - solution)


Sponsors

banner

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.

Forex Nirvana Economic Calendar

(Click on the arrow to the right to expand calendar)

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-13-2009, 11:34 PM
alan's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: Forex Nirvana
Posts: 3,165
Thanks: 121
Thanked 204 Times in 180 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, 282 views)
File Type: zip mt4-close-all-trades-scripts.zip (7.4 KB, 417 views)
Reply With Quote
The Following 2 Users Say Thank You to alan For This Useful Post:
mammad2111 (05-17-2010), orobinosin (08-14-2013)
Sponsored Links
  #2 (permalink)  
Old 08-05-2009, 12:01 PM
Soak614's Avatar
Baby Pip
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 8
Thanks: 0
Thanked 5 Times in 5 Posts
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!
Reply With Quote
The Following User Says Thank You to Soak614 For This Useful Post:
orobinosin (08-14-2013)
  #3 (permalink)  
Old 08-06-2009, 08:27 AM
alan's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: Forex Nirvana
Posts: 3,165
Thanks: 121
Thanked 204 Times in 180 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.
Reply With Quote
The Following User Says Thank You to alan For This Useful Post:
orobinosin (08-14-2013)
  #4 (permalink)  
Old 08-06-2009, 08:46 AM
Soak614's Avatar
Baby Pip
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 8
Thanks: 0
Thanked 5 Times in 5 Posts
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)
Reply With Quote
The Following User Says Thank You to Soak614 For This Useful Post:
orobinosin (08-14-2013)
  #5 (permalink)  
Old 08-06-2009, 09:00 AM
alan's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: Forex Nirvana
Posts: 3,165
Thanks: 121
Thanked 204 Times in 180 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.
Reply With Quote
The Following User Says Thank You to alan For This Useful Post:
orobinosin (08-14-2013)
  #6 (permalink)  
Old 08-06-2009, 10:52 AM
Soak614's Avatar
Baby Pip
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 8
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Many thx! Alan!
Reply With Quote
The Following User Says Thank You to Soak614 For This Useful Post:
orobinosin (08-14-2013)
  #7 (permalink)  
Old 08-07-2009, 07:58 AM
Soak614's Avatar
Baby Pip
 
Join Date: Aug 2009
Location: Hong Kong
Posts: 8
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Hi Alan, the closeontime EA works finally today. Thanks a lot!
__________________
http://www.wallaceforexlab.com
Researches on profitable expert advisors through forward tests.
Reply With Quote
The Following User Says Thank You to Soak614 For This Useful Post:
orobinosin (08-14-2013)
  #8 (permalink)  
Old 08-07-2009, 12:55 PM
alan's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: Forex Nirvana
Posts: 3,165
Thanks: 121
Thanked 204 Times in 180 Posts
Default

Glad to hear that! Good luck with your trading
Reply With Quote
The Following User Says Thank You to alan For This Useful Post:
orobinosin (08-14-2013)
  #9 (permalink)  
Old 08-17-2009, 04:01 AM
Senior Member
 
Join Date: Jan 2009
Posts: 903
Thanks: 80
Thanked 247 Times in 86 Posts
Default

Quik Shut Down does that too.
Reply With Quote
The Following User Says Thank You to thesecret For This Useful Post:
orobinosin (08-14-2013)
  #10 (permalink)  
Old 10-15-2009, 07:00 AM
alan's Avatar
Super Moderator
 
Join Date: Dec 2008
Location: Forex Nirvana
Posts: 3,165
Thanks: 121
Thanked 204 Times in 180 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.
Reply With Quote
The Following User Says Thank You to alan For This Useful Post:
orobinosin (08-14-2013)
Sponsored links
Reply

Bookmarks

Tags
drag, drop, ea, eas, experts, forex, metatrader, metatrader 4, mt4, tool, trade, 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-17-2011 05:32 AM 36
Closing multiple trades... - The Forex Autopilot, FapTurbo & FapTurbo Evolution Forum This thread Refback 02-04-2010 03:45 AM 13
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 31
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 499




All times are GMT -5. The time now is 11:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 PL2
Ad Management by RedTyger