Need EA for closing all positions/orders by equity.

Post Reply
jiaos
Posts: 6
Joined: Fri Mar 09, 2012 1:06 pm

Need EA for closing all positions/orders by equity.

Post by jiaos »

I need a EA which can close all positons/orders when the equity is out of given range.
For example, I set the range as 500-1000, when the equity reaches 499 or 1001, then EA close all the trades immediately.
Does anybody know such EA?
Please tell me, thank you very much!
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Need EA for closing all positions/orders by equity.

Post by milanese »

jiaos » Wed Nov 05, 2014 11:06 am wrote:I need a EA which can close all positons/orders when the equity is out of given range.
For example, I set the range as 500-1000, when the equity reaches 499 or 1001, then EA close all the trades immediately.
Does anybody know such EA?
Please tell me, thank you very much!
The allPairTrademanagerPlus can do this, you must just calculate a win% and a loss% of equity you wish to close all open positions, you will find it here http://www.stevehopwoodforex.com/phpBB3 ... =21&t=3482

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Need EA for closing all positions/orders by equity.

Post by milanese »

jiaos » Wed Nov 05, 2014 11:06 am wrote:I need a EA which can close all positons/orders when the equity is out of given range.
For example, I set the range as 500-1000, when the equity reaches 499 or 1001, then EA close all the trades immediately.
Does anybody know such EA?
Please tell me, thank you very much!
I did this EA code for you, it uses an endless loop and so you should before setting or removing the EA first autotrading deactivate, just set the equity amounts you wish the EA to close all open trades ..
EquityForTP_Close = 1050;
EquityForSL_Close = 499;
EquitySLTP_EA.mq4
Cheers :)

Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Need EA for closing all positions/orders by equity.

Post by milanese »

The two users that the EA had downloaded please redownload it as I made a copypaste bug..

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
putusernamehere
Trader
Posts: 107
Joined: Fri Nov 15, 2013 8:56 pm

Need EA for closing all positions/orders by equity.

Post by putusernamehere »

Hi Tommaso :hi:

the EA is very usefull :good:

:hi: Thank you for the good work :good:

Cheers ;)
Gunter
jiaos
Posts: 6
Joined: Fri Mar 09, 2012 1:06 pm

Need EA for closing all positions/orders by equity.

Post by jiaos »

Thanks everyone!
You are so kind.
User avatar
Jemook
Trader
Posts: 1085
Joined: Thu May 10, 2012 10:19 am
Location: Bondi, Sydney, Australia

Need EA for closing all positions/orders by equity.

Post by Jemook »

I've used this one in the past with success:

http://www.ea-coder.com/equity-sentry-free-Empty4-ea/

Good luck!
Please note I am no longer affiliated with Global Prime. I've moved on to my next adventure with Afterprime.

Catch me here: https://www.afterprime.com
jiaos
Posts: 6
Joined: Fri Mar 09, 2012 1:06 pm

Need EA for closing all positions/orders by equity.

Post by jiaos »

Jemook » Sat Nov 08, 2014 11:19 pm wrote:I've used this one in the past with success:

http://www.ea-coder.com/equity-sentry-free-Empty4-ea/

Good luck!
Thank you!
Steadtler

Need EA for closing all positions/orders by equity.

Post by Steadtler »

milanese » Wed Nov 05, 2014 12:23 pm wrote:
jiaos » Wed Nov 05, 2014 11:06 am wrote:I need a EA which can close all positons/orders when the equity is out of given range.
For example, I set the range as 500-1000, when the equity reaches 499 or 1001, then EA close all the trades immediately.
Does anybody know such EA?
Please tell me, thank you very much!
I did this EA code for you, it uses an endless loop and so you should before setting or removing the EA first autotrading deactivate, just set the equity amounts you wish the EA to close all open trades ..
EquityForTP_Close = 1050;
EquityForSL_Close = 499;


Cheers :)

Tommaso

I Tommaso, I was wondering if this would stop all the other EA's that are trading from adding new trades ? Is this possible ?
Post Reply

Return to “General Forex Discussion”