TrailingStopStrategy

Strategies are published here.

Moderator: admin

TrailingStopStrategy

Postby Apprentice » Fri Sep 15, 2017 4:03 pm

Based on the request.
viewtopic.php?f=27&t=65067
TrailingStopStrategy.lua
(9.45 KiB) Downloaded 117 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17537
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TrailingStopStrategy

Postby Reymondpolanco » Fri Sep 15, 2017 5:13 pm

Perfect, the strategy only allow to put profit levels in pips, can you put the option to put a specific price level in each profit level i mean the two options: price level and pips.
Reymondpolanco
 
Posts: 23
Joined: Sat Jun 17, 2017 3:07 pm

Re: TrailingStopStrategy

Postby papynou34 » Sat Sep 16, 2017 12:16 pm

Hello,
Thanks for your great job.
Is it possible to add a percent of total Lot to be closed after Tp1, tp2, and so on?
That means i would like to close for example 50% of the order after 10 pips of profit.

Thanks in advance
papynou34
 
Posts: 39
Joined: Fri Mar 27, 2015 6:52 pm

Re: TrailingStopStrategy

Postby Reymondpolanco » Wed Sep 20, 2017 7:00 pm

Can you put the option to use the strategy with the "entry orders" too, and put the option to place a target price in the take profit plus pips too.
Reymondpolanco
 
Posts: 23
Joined: Sat Jun 17, 2017 3:07 pm

Re: TrailingStopStrategy

Postby Apprentice » Fri Sep 29, 2017 7:36 am

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

Re: TrailingStopStrategy

Postby Alexander.Gettinger » Thu Oct 12, 2017 11:58 am

Reymondpolanco wrote:Can you put the option to use the strategy with the "entry orders" too, and put the option to place a target price in the take profit plus pips too.


Please, try this strategy:
TrailingStopStrategy2.lua
(12.21 KiB) Downloaded 66 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 2936
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: TrailingStopStrategy

Postby Reymondpolanco » Thu Oct 12, 2017 11:06 pm

i dont see the option to put the levels in price and the order doesn´t appear in the list
Reymondpolanco
 
Posts: 23
Joined: Sat Jun 17, 2017 3:07 pm

Re: TrailingStopStrategy

Postby Daveatt » Sat Nov 25, 2017 8:22 pm

Hi Apprentice

Could we add the option to sell half of the position once each TP is achieved ?

Thanks
David
Last edited by Daveatt on Fri Dec 01, 2017 4:37 am, edited 1 time in total.
Daveatt
 
Posts: 7
Joined: Mon Jan 30, 2017 10:00 am

Re: TrailingStopStrategy

Postby Daveatt » Thu Nov 30, 2017 8:10 am

Hi

I was testing TrailingStopStrategy2.lua

I'm getting the following error message when entering a trade at market with stop loss = -10 and TP1/TP2/TP3/TP4/TP5 defined at 2 pips each

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

Does anyone else have the issue ?

Thanks
David
Daveatt
 
Posts: 7
Joined: Mon Jan 30, 2017 10:00 am

Re: TrailingStopStrategy

Postby Apprentice » Mon Dec 04, 2017 6:36 am

Try it now.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17537
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 8 guests