Page 7 of 11

Re: Close strategy

PostPosted: Sat Jan 12, 2013 1:18 pm
by willcsk
[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-

Re: Close strategy

PostPosted: Sun Jan 13, 2013 6:43 am
by Apprentice
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.

Re: Close strategy

PostPosted: Mon Jan 14, 2013 8:10 pm
by willcsk
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-

Re: Close strategy

PostPosted: Thu Oct 31, 2013 9:40 am
by luigipg
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!!!

Re: Close strategy

PostPosted: Thu Oct 31, 2013 12:07 pm
by Apprentice
Your request is added to the development list.

Re: Close strategy

PostPosted: Wed Oct 15, 2014 12:33 pm
by mfoster
I am getting two errors when I load this strategy. Could someone please correct this? Thanks

Re: Close strategy

PostPosted: Thu Feb 19, 2015 5:57 am
by zoltanh
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]

Close strategy

PostPosted: Sun May 03, 2015 11:13 pm
by gabrielocomex
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

Re: Close strategy

PostPosted: Mon May 04, 2015 7:37 am
by Apprentice
Have fixed the strategy, it should work now.
Please re-download and re-install.
Evidently, the strategy worked once.
The question of compatibility.

Re: Close strategy

PostPosted: Mon May 04, 2015 11:15 am
by gabrielocomex
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.