Close strategy

Strategies are published here.

Moderator: admin

Re: Close strategy

Postby CARBON » Fri Nov 03, 2017 11:58 am

Is it possible to close all positions when Loss is above a specific percentage of balance instead of fixed $ ? because when i setup -4% for exemple thats give me an error
CARBON
 
Posts: 2
Joined: Fri Nov 03, 2017 11:56 am

Re: Close strategy

Postby CARBON » Fri Nov 03, 2017 12:01 pm

Is it possible to close all positions when "Loss" is above a specific percentage of balance instead of fixed $ ? for exemple when i setup -1% thats give me a error and don't work
CARBON
 
Posts: 2
Joined: Fri Nov 03, 2017 11:56 am

Re: Close strategy

Postby Mountaintrader » Fri Nov 03, 2017 2:34 pm

Hi,

Is it possible to add the parameter option to select between "Gross or Net" P/L ?
Attachments
Screen Shot - Closed_Positions_-_Gross_Net__P_L.png
User avatar
Mountaintrader
 
Posts: 9
Joined: Fri Dec 18, 2015 9:52 pm

Re: Close strategy

Postby Apprentice » Tue Nov 21, 2017 7:11 am

Sent to development team.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 20033
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Close strategy

Postby conjure » Thu Jan 18, 2018 6:02 am

conjure wrote:Is it possible to close all positions when profit is above a specific percentage of balance instead of fixed $ ?


Apprentice wrote:Try this version.
LevelCloseStrategy.lua


Apprentice
I tested the strategy and it's sending the order to "Close All Positions for Symbol" rather than "Close All Positions". So if I have multiple currency pairs open, it will only close the trades which I have the strategy attached to. And if I attach the strategy to both currency pairs and set the profit target to say 2.5%, it will close all trades in 1or2 currency pair when total profit reaches 2.5% but remaining trades stay open. The remaining trades will only close when the profit on remaining trades goes back up to 2.5%.

Can it be fixed?
Thank you
conjure
 
Posts: 91
Joined: Sat Jul 22, 2017 7:27 am

Re: Close strategy

Postby Apprentice » Wed Jan 24, 2018 7:23 am

Your request is added to the development list under Id Number 4024
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 20033
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Close strategy

Postby Apprentice » Sun Jan 28, 2018 9:08 am

Please "Use on All Symbols" parameter.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 20033
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Close strategy

Postby Apprentice » Mon Feb 19, 2018 6:55 am

by luigipg » Wed Feb 14, 2018 11:23 pm

I would need, and I think that it was very usefull, who someone can add the ability to close all opened positions (all currencies) AND/OR delete all pending orders when the "EQUITY" reaches a specified ammount (NOT when total profit/loss is above/below user's level).

Try this version.
LevelCloseStrategy.luigipg.lua
(15.2 KiB) Downloaded 284 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 20033
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Close strategy

Postby luigipg » Fri Feb 23, 2018 7:13 am

Thanks so much and best wishes for your birthday. Luigi!!!
luigipg
 
Posts: 74
Joined: Sun May 23, 2010 8:01 am

Re: Close strategy

Postby luigipg » Fri Feb 23, 2018 7:25 am

In all cases you can add the option to also close pending orders? Thank you. Luigi!!!
luigipg
 
Posts: 74
Joined: Sun May 23, 2010 8:01 am

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 7 guests