TrailingStopStrategy

Strategies are published here.

Moderator: admin

Re: TrailingStopStrategy

Postby Reymondpolanco » Thu Mar 08, 2018 11:23 am

Can you add the option to close an amount of the trade in each TP
Reymondpolanco
FXCodeBase: Initiate
 
Posts: 160
Joined: Sat Jun 17, 2017 3:07 pm

Re: TrailingStopStrategy

Postby alienmole » Fri Mar 09, 2018 10:14 am

This is something like Im after except it would great if you could just put pips instead of the price and also allow the choice of where your stop moves to in relation to each target.

The Strategy called "Stage Stop" is what Id love to have, except I've found it doesn't seem to work correctly
alienmole
 
Posts: 28
Joined: Tue Mar 06, 2018 10:24 am

Re: TrailingStopStrategy

Postby alienmole » Sat Mar 10, 2018 6:34 am

Hi

Just as feedback I set this to 10,20,30,40,50, which as I understand it means, at +10 the stop goes to break even and then at +20 the stop goes to +10 etc etc

When I tried it out The Stop loss actually went to Break even as expected and then it moved to +10 when price got to +20, again as expected, but after that it didn't move at all, even though price advanced further.

Thanks
alienmole
 
Posts: 28
Joined: Tue Mar 06, 2018 10:24 am

Re: TrailingStopStrategy

Postby Apprentice » Tue Mar 13, 2018 5:57 am

Try this version (previous request)
TrailingStopStrategy.Reymondpolanco.lua
(16.15 KiB) Downloaded 932 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TrailingStopStrategy

Postby Reymondpolanco » Tue Mar 13, 2018 10:07 am

Apprentice wrote:Try this version (previous request)
The attachment TrailingStopStrategy.Reymondpolanco.lua is no longer available



Please verify all parameters because the strategy doesn´t work propely, for example when i put the strategy for an entry order when the entry order execute the strategy doeest work because the selector stay in the Order option.

Check the attached photo, when i saw that the entry order was executed i went to the strategy option and change the selector to the option "trade" and when the trade was so far from the TP1, TP2, TP3 move the stop to the BE not to the correct TP
Attachments
error.png
Reymondpolanco
FXCodeBase: Initiate
 
Posts: 160
Joined: Sat Jun 17, 2017 3:07 pm


Re: TrailingStopStrategy

Postby Reymondpolanco » Thu Mar 15, 2018 2:49 pm

I try but when the order execute the strategy give me an error of trade disapear and start but when the price reach the TP1 the strategy put in pause and the label in the chart stay showing ORD00000088 not TRD00000089 and in the properties the strategy stay showing Order in the selector.

When i put the strategy in a active trade the strategy put in pause and the plataform give me an error saying the trade has been disapear and this is not correct the trade still active.
Attachments
error.png
Reymondpolanco
FXCodeBase: Initiate
 
Posts: 160
Joined: Sat Jun 17, 2017 3:07 pm

Re: TrailingStopStrategy

Postby Apprentice » Sat Mar 17, 2018 8:17 am

I can't repeat that. It works fine in my case.
Can you post exact file version?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TrailingStopStrategy

Postby Reymondpolanco » Tue Mar 20, 2018 11:57 am

Apprentice wrote:Try this version (previous request)
TrailingStopStrategy.Reymondpolanco.lua


I use this version i was trying now and i have the same error "Trade Disapear" when i use in entry order option and when the order active and convert in a trade the selector stay in Order option
Reymondpolanco
FXCodeBase: Initiate
 
Posts: 160
Joined: Sat Jun 17, 2017 3:07 pm

Re: TrailingStopStrategy

Postby Reymondpolanco » Sun Apr 22, 2018 12:09 pm

I have this error over and over and over again
Attachments
error.png
Reymondpolanco
FXCodeBase: Initiate
 
Posts: 160
Joined: Sat Jun 17, 2017 3:07 pm

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 21 guests