Breakeven Strategy

Strategies are published here.

Moderator: admin

Breakeven Strategy

Postby Apprentice » Thu Feb 16, 2012 2:21 pm

Breakeven Strategy.lua
(6.46 KiB) Downloaded 2203 times

This strategy set stop to breakeven when the position reaches a set amount of pips in profit.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17385
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Breakeven Strategy

Postby oritzbaba » Fri Feb 17, 2012 5:46 pm

Dear Apprentice,

Apart from setting stop breakeven, does it lock in profit by resuming its trailing stop?
oritzbaba
 
Posts: 10
Joined: Tue May 10, 2011 3:55 am

Re: Breakeven Strategy

Postby Apprentice » Sat Feb 18, 2012 4:23 am

Not for now.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17385
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Breakeven Strategy

Postby SJB944 » Sat Feb 18, 2012 8:34 am

Seem to get an error when I use this strategy on more than one position on the same pair -- despite ensure that the correct ticket no. is picked for each Strategy.

I'll try again and copy Error report, if that helps.
SJB944
 
Posts: 13
Joined: Wed Apr 06, 2011 2:40 am

Re: Breakeven Strategy

Postby SJB944 » Mon Feb 20, 2012 10:10 pm

Can any one else get this to work?

I enter two positions with 45pip stop, then open Breakeven Strategy, and set profit to 10 pips, for each position (order), when 10 pips profit is reach I get the following error pertaining to each position:

"Failed create/change stop Cannot place more than one order of this type for each trade."
SJB944
 
Posts: 13
Joined: Wed Apr 06, 2011 2:40 am

Re: Breakeven Strategy

Postby PipGrabber » Tue Feb 21, 2012 9:55 am

Hi Apprentice,

Thanks for making this new breakeven strategy, as the previous version of this strategy did not worked. This one works perfectly as expected.

Would it be possible if it can automatically update the ticket number of a newly open trade? Because along the way, the open trade is either closed by other strategies or hits limit/stops. It's tedious closing and reopening this breakeven strategy every time a new trade is opened. :roll:
User avatar
PipGrabber
 
Posts: 46
Joined: Fri Jan 21, 2011 9:22 am

Re: Breakeven Strategy

Postby Apprentice » Wed Feb 22, 2012 4:41 am

In theory, yes.
I hope I will find time soon.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17385
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Breakeven Strategy

Postby eyalbrin » Thu Feb 23, 2012 4:31 am

Dear Apprentice
I try to set the breakeven strategy and i get this message:Failed create/change stop Cannot place more than one order of this type for each trade."
i run the strategy on one chart.what is the reason i get this message.
Best Regards
eyal
eyalbrin
 
Posts: 9
Joined: Mon Dec 19, 2011 7:40 am

Re: Breakeven Strategy

Postby SJB944 » Thu Feb 23, 2012 4:44 am

Still can't get it to work. Following error:

"Failed create/change stop Cannot place more than one order of this type for each trade."

Seems to not work if there is more than one position in any pair -- this is despite making sure different orders are picked in Breakeven Strategy.
SJB944
 
Posts: 13
Joined: Wed Apr 06, 2011 2:40 am

Re: Breakeven Strategy

Postby SJB944 » Thu Feb 23, 2012 11:20 pm

Still can't get it to work even if only have one position open on a chart at a time. Same error.
SJB944
 
Posts: 13
Joined: Wed Apr 06, 2011 2:40 am

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 4 guests