• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 2:00am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 2:00am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

EA To Close All Trades When Profit Level Reached 1 reply

MT4 not closing trades on Take Profit 7 replies

Close all pending orders and open orders once they reach profit target 3 replies

Closing multiple trades with ea based profit/loss $ 4 replies

Prevent trades once a certain profit level is reached 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 2
Attachments: EA closing all trades and orders when profit reached?
Exit Attachments

EA closing all trades and orders when profit reached?

  • Post #1
  • Quote
  • First Post: Nov 6, 2014 3:56am Nov 6, 2014 3:56am
  •  Lrt.Ita
  • | Joined Jun 2014 | Status: Member | 296 Posts
Hi traders!

I'm testing a strategy for when i'm not able to be in front of the screen.
It is working very well and consists in putting orders near major S/R lines.

Do you know or can you code an EA that closes ALL trades and orders when the daily balance reaches a goal in percentage or money considering also the running trades?
If not based on daily data, it would be good also on money account value.

Example:
Account balance: 1000$
Daily goal: +50$ / 5%
Account goal value: 1050$

2 trades to TP: +30$
4 trades running: -20$ / + 12$ / +14$ / +14$ balance of running trades: +20$

30$+20$= +50$/5%/1050$ goal reached, ALL running trades closed and pending orders removed.


I found a lot of EAs that do this job but they work only on the balance of the currently running trades.
Being this a "scalping" strategy with only 10 pips TP (and a little more for SL), trades last only a few minutes and I'm putting a lot of orders.
It already happened to me to reach the goal at a certain point of the night (I'm using this during Asian Session, when I sleep), and after that hit a SL and run back the balance.

Every help will be appreciated a lot .

Thanks,
Lrt
"Every battle is won before it's fought."
  • Post #2
  • Quote
  • Nov 28, 2014 7:54am Nov 28, 2014 7:54am
  •  kaczucha11
  • | Joined Jul 2012 | Status: Member | 99 Posts
Quoting Lrt.Ita
Disliked
Hi traders! I'm testing a strategy for when i'm not able to be in front of the screen. It is working very well and consists in putting orders near major S/R lines. Do you know or can you code an EA that closes ALL trades and orders when the daily balance reaches a goal in percentage or money considering also the running trades? If not based on daily data, it would be good also on money account value. Example: Account balance: 1000$ Daily goal: +50$ / 5% Account goal value: 1050$ 2 trades to TP: +30$ 4 trades running: -20$ / + 12$ / +14$ / +14$ balance...
Ignored
Hi Lrt.Ita!!
Did you find some kind of this type of Ea???
Because I am looking for exactly the same thing.
Regards
 
 
  • Post #3
  • Quote
  • Nov 28, 2014 8:16am Nov 28, 2014 8:16am
  •  Motiram
  • Joined Nov 2014 | Status: Member | 565 Posts
Quoting Lrt.Ita
Disliked
Hi traders! I'm testing a strategy for when i'm not able to be in front of the screen. It is working very well and consists in putting orders near major S/R lines. Do you know or can you code an EA that closes ALL trades and orders when the daily balance reaches a goal in percentage or money considering also the running trades? If not based on daily data, it would be good also on money account value. Example: Account balance: 1000$ Daily goal: +50$ / 5% Account goal value: 1050$ 2 trades to TP: +30$ 4 trades running: -20$ / + 12$ / +14$ / +14$ balance...
Ignored
Hello Lrt.Ita, I do not have much knowledge about EA’s I found one have you tried this?
Regards,
Moti
Attached File
File Type: mq4 CloseTrades_After_Account_Profit_Reached.mq4   3 KB | 1,593 downloads
 
 
  • Post #4
  • Quote
  • Nov 28, 2014 9:33am Nov 28, 2014 9:33am
  •  profitfarmer
  • | Commercial Member | Joined Aug 2014 | 3,818 Posts | Invisible
this was coded for me by Dan, can give it a try...
Can set to close trades above or bellow equity amount, or above or bellow equity % drawdown.
Attached File
File Type: ex4 close all orders equity DD% profitfarmer.ex4   11 KB | 1,318 downloads
there is always, always another trade!!
 
5
  • Post #5
  • Quote
  • Dec 2, 2014 3:59am Dec 2, 2014 3:59am
  •  Motiram
  • Joined Nov 2014 | Status: Member | 565 Posts
Quoting Lrt.Ita
Disliked
Hi traders! I'm testing a strategy for when i'm not able to be in front of the screen. It is working very well and consists in putting orders near major S/R lines. Do you know or can you code an EA that closes ALL trades and orders when the daily balance reaches a goal in percentage or money considering also the running trades? If not based on daily data, it would be good also on money account value. Example: Account balance: 1000$ Daily goal: +50$ / 5% Account goal value: 1050$ 2 trades to TP: +30$ 4 trades running: -20$ / + 12$ / +14$ / +14$ balance...
Ignored
Hello Lrt.Ita did you get any, if yes please can you share it?
Thank you
Regards
Moti
 
 
  • Post #6
  • Quote
  • Last Post: Jun 4, 2020 11:20am Jun 4, 2020 11:20am
  •  Cerugo
  • | Joined May 2012 | Status: Member | 51 Posts
Quoting profitfarmer
Disliked
this was coded for me by Dan, can give it a try... Can set to close trades above or bellow equity amount, or above or bellow equity % drawdown. {file}
Ignored
Thanks a lot for sharing this EA. Dan is excellent coder
 
 
  • Platform Tech
  • /
  • EA closing all trades and orders when profit reached?
  • Reply to Thread
1 trader 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 / ©2022