FXCM Forex Trading

Close strategy

Strategies are published here.

Moderator: admin

Re: Close strategy

Postby willcsk » Sat Jan 12, 2013 1:18 pm

[quote="Alexander.Gettinger"]Strategy for close all open orders if all total profit/loss above/below user's level.

hi Alex,,,

i know it has been a while since u created this stretagy,
i just wana say thank you as i find it very usefull.

Alex, i would like to ask for your help to futher enhance the stretagy if u have time,
thanks in advance.

i would like the stretagy place 2 trade at market price when it loaded.
1. buy trade, user specify instrument and lot number.
2. sell trade, user specify instrument and lot number.

thank you Alex ,,,^^

-willie-
willcsk
 
Posts: 16
Joined: Sat Jan 05, 2013 3:21 am

Re: Close strategy

Postby Apprentice » Sun Jan 13, 2013 6:43 am

Something like a hedge.

If profit reaches a certain level.
Open new position, not to close, existing one.
Or offer a choice, Close Existing or Open New One.

Can you confirm that.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16966
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Close strategy

Postby willcsk » Mon Jan 14, 2013 8:10 pm

Apprentice wrote:Something like a hedge.

If profit reaches a certain level.
Open new position, not to close, existing one.
Or offer a choice, Close Existing or Open New One.

Can you confirm that.


hi Apprentice,

1. yes , itz a hedge.
2.when the stretagy start/loaded, open one buy trade, and one sell trade of my choice n lot num.
3. when profit level of my choice reach, close trade, n stop.
4. end stretagy n exit.

that all Apprentice, iz the same as original one, just modify to enable entry of trade.

thank you n have a nice day ,,,^^

-willie-
willcsk
 
Posts: 16
Joined: Sat Jan 05, 2013 3:21 am

Re: Close strategy

Postby luigipg » Thu Oct 31, 2013 9:40 am

Hi apprentice, can You add to this strategy the ability to close all opened positions (all currencies) when the "Equity" reaches a specified ammount? Thanks a lot for ever. Luigi!!!
luigipg
 
Posts: 69
Joined: Sun May 23, 2010 8:01 am

Re: Close strategy

Postby Apprentice » Thu Oct 31, 2013 12:07 pm

Your request is added to the development list.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16966
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Close strategy

Postby mfoster » Wed Oct 15, 2014 12:33 pm

I am getting two errors when I load this strategy. Could someone please correct this? Thanks
mfoster
 
Posts: 1
Joined: Wed Oct 15, 2014 12:25 pm

Re: Close strategy

Postby zoltanh » Thu Feb 19, 2015 5:57 am

Hi,

This strategy is quite cool and thanks for it however I would have an idea to maximize the profit.

The S/L part is OK with me but I would change the T/P logic adding a [TrailingProfit].
For example the [ProfitLevel] is set to $500 and the [TrailingProfit] to $100 -> if the Gross P/L reaches the $500 the strategy doesn't close any deals but set the S/L to $400. If the P/L goes up to $600 ( [ProfitLevel] + [TrailingProfit] ) then it sets the S/L to $500 which is then trailing by the [TrailingProfit]
zoltanh
 
Posts: 22
Joined: Tue Aug 26, 2014 2:24 pm

Close strategy

Postby gabrielocomex » Sun May 03, 2015 11:13 pm

Good night Alexander, I'm trying to install your strategy "close strategy" but I get the next messages: Levelclosestrategy.lua:16:attempt to index field "host" (a nil value) and the next message too: Levelclosestrategy.lua:2:attempt to index global strategy (a nil value).

Could you help me please to install the close strategy?

Thank you


Gabriel Martinez
gabrielocomex
 
Posts: 2
Joined: Sun May 03, 2015 11:04 pm

Re: Close strategy

Postby Apprentice » Mon May 04, 2015 7:37 am

Have fixed the strategy, it should work now.
Please re-download and re-install.
Evidently, the strategy worked once.
The question of compatibility.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 16966
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Close strategy

Postby gabrielocomex » Mon May 04, 2015 11:15 am

Apprentice wrote:Have fixed the strategy, it should work now.
Please re-download and re-install.
Evidently, the strategy worked once.
The question of compatibility.



Thank you. It works.
gabrielocomex
 
Posts: 2
Joined: Sun May 03, 2015 11:04 pm

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 4 guests