• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 6:17pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 6:17pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

EA fix: Close all positions at profit target X 40 replies

Mt4 Close Profit positions before Market closed on weekend? 1 reply

Indicator displaying net profit/loss per pair for closed orders 11 replies

"Some positions were closed due to StopOut" 8 replies

Profit Target, Loss Target 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 3
Attachments: EA "Close all positions at profit target" closed all positions at loss ?
Exit Attachments
Tags: EA "Close all positions at profit target" closed all positions at loss ?
Cancel

EA "Close all positions at profit target" closed all positions at loss ?

  • Post #1
  • Quote
  • First Post: Aug 6, 2012 4:09am Aug 6, 2012 4:09am
  •  JohnCobb
  • | Joined Jul 2012 | Status: Member | 7 Posts
Hello,
I use Expet Advisor - "Close all positions at profit target ".
Last Friday this EA has closed my open positions when the total was in negative (with a loss). Why???
Did this happend to anyone?
I have noticed that just before the EA closed my open positions there was a gap in trading, would this be a reason? Is there an error in this EA ?
Anyone that has had any experence similar to mine please comment.
Can anybody tell me who else can I ask about this EA and if that could have happend because the gap in trading.
Waiting for comments.
John
  • Post #2
  • Quote
  • Aug 6, 2012 5:14am Aug 6, 2012 5:14am
  •  fxtr51
  • Joined Jan 2010 | Status: Member | 1,163 Posts
Post the source code. Without it, nobody can help you.
 
 
  • Post #3
  • Quote
  • Aug 6, 2012 5:49am Aug 6, 2012 5:49am
  •  JohnCobb
  • | Joined Jul 2012 | Status: Member | 7 Posts
Quoting fxtr51
Disliked
Post the source code. Without it, nobody can help you.
Ignored
Hello fxtr51,

I hope you mean the EA that I had a question about.
Where is the source code? Where do I find it?
I can send you a screenshot of the EA.
John
Attached Image (click to enlarge)
Click to Enlarge

Name: EA Close all positions.JPG
Size: 226 KB
 
 
  • Post #4
  • Quote
  • Aug 6, 2012 6:22am Aug 6, 2012 6:22am
  •  fxtr51
  • Joined Jan 2010 | Status: Member | 1,163 Posts
Attach the EA to your posting.
It has to be the mq4 file. That is the source code.
 
 
  • Post #5
  • Quote
  • Aug 6, 2012 6:23am Aug 6, 2012 6:23am
  •  Bruce Flea
  • | Joined Jan 2011 | Status: Member | 179 Posts
Quoting JohnCobb
Disliked
Hello fxtr51,

I hope you mean the EA that I had a question about.
Where is the source code? Where do I find it?
I can send you a screenshot of the EA.
John
Ignored

That's not the code.

The code will be an mql4 file. It can be found in the "Experts" folder right next to the EA that you compiled from it.

You have the source code, or else the EA icon wouldn't be in color as it is on your screen shot.

Forex Factory supports mql4 file uploads in "manage attachments".
Open that in your next post, and navigate to your experts folder in MetaTrader, and upload the file as an attachment.
No way I'll wreck this... It's a beer truck!
 
 
  • Post #6
  • Quote
  • Aug 6, 2012 6:46am Aug 6, 2012 6:46am
  •  JohnCobb
  • | Joined Jul 2012 | Status: Member | 7 Posts
Quoting Bruce Flea
Disliked
That's not the code.

The code will be an mql4 file. It can be found in the "Experts" folder right next to the EA that you compiled from it.

You have the source code, or else the EA icon wouldn't be in color as it is on your screen shot.

Forex Factory supports mql4 file uploads in "manage attachments".
Open that in your next post, and navigate to your experts folder in MetaTrader, and upload the file as an attachment.
Ignored
Thank you for trying to help. I have uploaded the file.
John
Attached File(s)
File Type: mq4 close all positions at profit target.mq4   5 KB | 3,020 downloads
 
 
  • Post #7
  • Quote
  • Nov 16, 2018 1:41pm Nov 16, 2018 1:41pm
  •  Ifly2hi
  • | Joined Nov 2018 | Status: Junior Member | 1 Post
I have tried adjusting it myself but it wasn't working...
I want it to do the same thing, but for a loss.
For example, it will close all trades as soon as they all go 25$ negative instead of positive.
Can i get some help?
 
 
  • Post #8
  • Quote
  • Dec 29, 2018 8:10am Dec 29, 2018 8:10am
  •  mkhezri1355
  • Joined Aug 2015 | Status: Member | 8 Posts
Quoting JohnCobb
Disliked
Hello, I use Expet Advisor - "Close all positions at profit target ". Last Friday this EA has closed my open positions when the total was in negative (with a loss). Why??? Did this happend to anyone? I have noticed that just before the EA closed my open positions there was a gap in trading, would this be a reason? Is there an error in this EA ? Anyone that has had any experence similar to mine please comment. Can anybody tell me who else can I ask about this EA and if that could have happend because the gap in trading. Waiting for comments. John...
Ignored
use this version , I tested it .
Attached File(s)
File Type: mq4 Close all positions at profit target v1.1.mq4   8 KB | 2,378 downloads
 
 
  • Post #9
  • Quote
  • May 18, 2022 11:29pm May 18, 2022 11:29pm
  •  vansana
  • | Joined Jul 2021 | Status: Member | 36 Posts
Quoting mkhezri1355
Disliked
{quote} use this version , I tested it . {file}
Ignored

this Ea close all when Profit in $ Money target ?
 
 
  • Post #10
  • Quote
  • Last Post: Edited 6:46am Jun 5, 2023 5:52am | Edited 6:46am
  •  mdhaider100
  • | Joined Jun 2017 | Status: Junior Member | 1 Post
hello

could you please help by making an EA for MT5 ?

EA will close all trade when all trade Floating PL will go 25$ negative (Default) instead of positive. Floating value will change time to time.

email: { email address deleted by staff }

Regards,
 
 
  • Platform Tech
  • /
  • EA "Close all positions at profit target" closed all positions at loss ?
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023