Forex
Google

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 Thread Tools Display Modes
  #1 (permalink)  
Old 02-02-2006, 08:40 PM
jonjonau jonjonau is offline
Junior Member
 
Join Date: Oct 2005
Posts: 1
jonjonau is on a distinguished road
Close all open positions

I am trying to find an expert that will close all open positions when an accumulated dollar profit level is reached, does anyone have one.

jonjonau
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-03-2006, 11:21 AM
LazyPawn LazyPawn is offline
Junior Member
 
Join Date: Oct 2005
Posts: 9
LazyPawn is on a distinguished road
You have 3 scripts here, save them to the MT4\experts\scripts folder. Not sure if that's what you're looking for.
Attached Files
File Type: zip close.zip (1.8 KB, 118 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-03-2006, 12:11 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by jonjonau
I am trying to find an expert that will close all open positions when an accumulated dollar profit level is reached, does anyone have one.

jonjonau
Do you mean you want to close all opened position in the case you made a specific total profit in all the positions.
For example: When my total profit is 1000USD close all the opened positions?
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-03-2006, 12:28 PM
BrunoFX's Avatar
BrunoFX BrunoFX is offline
Senior Member
 
Join Date: Sep 2005
Posts: 819
BrunoFX will become famous soon enough
Quote:
Originally Posted by codersguru
When my total profit is 1000USD close all the opened positions?


Open your speakers : Link audio

Last edited by BrunoFX : 02-03-2006 at 01:03 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-03-2006, 12:42 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Talking

Quote:
Originally Posted by BrunoFX
What's the wrong? 1000USD?
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-03-2006, 01:15 PM
BrunoFX's Avatar
BrunoFX BrunoFX is offline
Senior Member
 
Join Date: Sep 2005
Posts: 819
BrunoFX will become famous soon enough
Hello codersguru,

Not of wrong, but I had believed has a note of humour, because much would like to close all their positions with 10000USD ....


if you want nevertheless to slacken you a small moment even for another thing, follow the link above and to open your speakers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-12-2006, 05:01 AM
jerseydevil20 jerseydevil20 is offline
Junior Member
 
Join Date: Nov 2005
Posts: 25
jerseydevil20 is on a distinguished road
Yes!

Quote:
Originally Posted by codersguru
Do you mean you want to close all opened position in the case you made a specific total profit in all the positions.
For example: When my total profit is 1000USD close all the opened positions?
Let's resurrect this old thread if you don't mind...

I can't speak for jonjonau, but I am looking for the ability to do just this (and so far unsuccessfully trying to hack my way through altering some code from another EA). I stumbled across this discussion by accident. Does anybody have something like this developed? Thanks!

EDIT - The answer is yes - Codersguru did (surprise! ): how to let the EA close all opening order of a specific symbol?
Now if I could just figure out how to implement this (my weak prog skills frustrates the heck out of me)... Thanks in any case Codersguru

Last edited by jerseydevil20 : 07-12-2006 at 05:22 AM. Reason: follow-up
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
EA to close positions after profit/loss hit james2ko Expert Advisors - Metatrader 4 1 05-22-2007 04:03 AM
Open/close trade on same bar's close? WNW Expert Advisors - Metatrader 4 2 03-29-2007 05:37 AM
Fx Open Positions & Market Hours drgoodvibe Tools and utilities 1 09-07-2006 08:08 PM
Can't get EA to close 2 Open positions??? skorcht Expert Advisors - Metatrader 4 4 08-07-2006 10:15 PM
Close All Open Positions? lonespruce Metatrader 4 9 06-22-2006 07:20 AM


All times are GMT. The time now is 09:04 PM.