Request: Close At Breakeven - Specific Pair

MPTM's new home
longytravel
Trader
Posts: 27
Joined: Sun Dec 16, 2012 1:51 pm

Request: Close At Breakeven - Specific Pair

Post by longytravel »

Hi Guys.

I am playing with hedging as opposed to a SL.

I was wondering if anyone has a tool that closes all trades on a specific pair when BE is reached? Had a fiddle with MPTM but i think you need to use its own hedging to get it to close at BE, i would like to keep dropping trades at the places i think are right but the tool close when the trades when they all meet BE?

Any help appreciated.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Request: Close At Breakeven - Specific Pair

Post by milanese »

longytravel » Tue Mar 25, 2014 6:17 pm wrote:Hi Guys.

I am playing with hedging as opposed to a SL.

I was wondering if anyone has a tool that closes all trades on a specific pair when BE is reached? Had a fiddle with MPTM but i think you need to use its own hedging to get it to close at BE, i would like to keep dropping trades at the places i think are right but the tool close when the trades when they all meet BE?

Any help appreciated.
I will later look to code you some EA doing this..

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
longytravel
Trader
Posts: 27
Joined: Sun Dec 16, 2012 1:51 pm

Request: Close At Breakeven - Specific Pair

Post by longytravel »

What a legend!! Thank you!!
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Request: Close At Breakeven - Specific Pair

Post by milanese »

Ok here you go, use BEProfit for setting the BE minProfit you want for closing all positions of the pair you set the EA on.., you can set a magicnumber if you want..
CloseAllofPairIfBE_6xx.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
longytravel
Trader
Posts: 27
Joined: Sun Dec 16, 2012 1:51 pm

Request: Close At Breakeven - Specific Pair

Post by longytravel »

Like many others Tommaso, i am grateful for your input and support. I will give it a whirl and report back. Thanks again.
longytravel
Trader
Posts: 27
Joined: Sun Dec 16, 2012 1:51 pm

Request: Close At Breakeven - Specific Pair

Post by longytravel »

Hi Tommaso,

The ea has just closed a couple of trades at breakeven.....unfortunately, it was breakeven between gpdcad and audchf trades that I was using for hedges on their respective pairs.

Wondering if you could have another quick look? I would only want to close the audchf trade, for example, when audchf was at breakeven.

Thanks as ever!
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Request: Close At Breakeven - Specific Pair

Post by milanese »

longytravel » Wed Mar 26, 2014 8:01 am wrote:Hi Tommaso,

The ea has just closed a couple of trades at breakeven.....unfortunately, it was breakeven between gpdcad and audchf trades that I was using for hedges on their respective pairs.

Wondering if you could have another quick look? I would only want to close the audchf trade, for example, when audchf was at breakeven.

Thanks as ever!
it should only manage the pair you attach the EA.., but I will take a look what happened .. could you make a sccreen shout from the EA messages log output that Empty4 shows..
I tested the EA here and it closed only the trades from the pair attached, when this pair reached BE and I had the EA attached at the two pairs that had positions open..
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
longytravel
Trader
Posts: 27
Joined: Sun Dec 16, 2012 1:51 pm

Request: Close At Breakeven - Specific Pair

Post by longytravel »

Thanks. Is this what your after?
You do not have the required permissions to view the files attached to this post.
longytravel
Trader
Posts: 27
Joined: Sun Dec 16, 2012 1:51 pm

Request: Close At Breakeven - Specific Pair

Post by longytravel »

Or is?!
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Request: Close At Breakeven - Specific Pair

Post by milanese »

As I see the EA did how it should, closed each pair position, when each position reached BE, see journals you posted(was ech 1 position open).., maybe I missunderstand what exactly the EA should do you need..

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
Post Reply

Return to “Utilities Indicators and Scripts”