Close ALL Strategy

Strategies are published here.

Moderator: admin

Close ALL Strategy

Postby Apprentice » Thu Nov 03, 2016 8:03 am

Strategy will automatically close ALL open positions and cancel all pending orders when the target P/L in PIPs is reached.
Profit is based on all open positions.

Close ALL Strategy.lua
(9.62 KiB) Downloaded 802 times


The Strategy was revised and updated on January 18, 2019.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Close ALL Strategy

Postby marcolivorno » Thu Nov 03, 2016 1:14 pm

Good evening, I would, however, need to be able to close based on the total of open positions and not individually. For example, if the total of 10 pair arrives to +50 pips (5 pair +150 and - 5 pair -100), all positions are closed.
Many thanks
marcolivorno
 
Posts: 8
Joined: Sun Oct 30, 2016 5:13 am

Re: Close ALL Strategy

Postby Apprentice » Thu Nov 03, 2016 3:46 pm

Profit is calculated based on all open positions.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Close ALL Strategy

Postby marcolivorno » Thu Nov 03, 2016 4:54 pm

Good evening, I'm sorry, I did not understand.
thank you so much.
marcolivorno
 
Posts: 8
Joined: Sun Oct 30, 2016 5:13 am

Re: Close ALL Strategy

Postby panos59 » Fri Nov 04, 2016 7:11 am

Is it possible to add the option to choose between pips and grossp/l ?
panos59
 
Posts: 33
Joined: Sun Jul 21, 2013 10:33 am

Re: Close ALL Strategy

Postby Kilgharrah » Sun Nov 13, 2016 5:17 am

Hi, Is it possible to add the option to choose add or not to the calculation the daily benefit reached ?

Thanks
User avatar
Kilgharrah
 
Posts: 46
Joined: Wed Sep 28, 2016 3:56 pm


Re: Close ALL Strategy

Postby Kilgharrah » Sun Nov 13, 2016 10:00 am

I mean, for example beginning a strategy and start the day with $ 1,000 then closed x orders and I have benefited $ 40 and the target is 50 $, then for the strategy to stop note for your calculations not only currently open positions but also take into account is the benefit previously ($ 40) obtained. I explain ?. Sorry for my English.
User avatar
Kilgharrah
 
Posts: 46
Joined: Wed Sep 28, 2016 3:56 pm

Re: Close ALL Strategy

Postby Kilgharrah » Sun Nov 13, 2016 12:34 pm

the misunderstanding is because I use the word inappropriately benefit rather than profit, thanks and apology.
User avatar
Kilgharrah
 
Posts: 46
Joined: Wed Sep 28, 2016 3:56 pm



Return to Custom Strategies

Who is online

Users browsing this forum: Bing [Bot] and 39 guests