Page 1 of 2

Trailing Bar Stop MTF

PostPosted: Wed Mar 14, 2018 4:56 pm
by Apprentice
Based on the request.
viewtopic.php?f=27&t=65825

Trailing Bar Stop MTF.lua
(46.59 KiB) Downloaded 1131 times

Re: Trailing Bar Stop MTF

PostPosted: Thu Mar 15, 2018 5:28 am
by alienmole
This is just what I wanted, what can I say....Thanks

There is a setting in there Im not sure about, in the Trailing Stop Parameters theres one called "Target Profit Level, Pips" is that like a global Target you have put in?

Re: Trailing Bar Stop MTF

PostPosted: Fri Mar 16, 2018 4:24 am
by alienmole
The Buffer setting is not doing what it was intended for, eg:

The Buffer is meant to be so you can set a distance the Stop moves behind the first qualifying bar after you have gone to break even to allow for spread etc, so that might be say 3 pips, however what it is doing is after you go to break even it is waiting for 3 bars before it looks for a qualifying bar to move the stop behind.

Thanks

Re: Trailing Bar Stop MTF

PostPosted: Tue Mar 20, 2018 5:46 am
by Curlyloxx
Hi
I've been using this Strategy for trailing and it works great apart from the buffer.

It would be great if you could add or modify it so you can add in a buffer with the choice of amount of pips to cover the spread.

So for example when the stop moves to the H/L of a bar/candle, it moves to the H/L plus the set amount of pips as a buffer.

Thankyou

Re: Trailing Bar Stop MTF

PostPosted: Tue Mar 20, 2018 8:48 am
by alienmole
Hi

If and when its possible to make the amendments in regards to my comments above, would you be able to add the following also please :-

1) At a specified distance in pips you can take off some of your position irrespective of any other parameters being used

Thanks

Re: Trailing Bar Stop MTF

PostPosted: Mon Mar 26, 2018 10:16 am
by Apprentice
Your request is added to the development list under Id Number 4092

Re: Trailing Bar Stop MTF

PostPosted: Tue Mar 27, 2018 10:26 am
by Apprentice
Try this version.
Trailing Bar Stop MTF.lua
(54.42 KiB) Downloaded 1069 times

Re: Trailing Bar Stop MTF

PostPosted: Tue Mar 27, 2018 12:26 pm
by alienmole
Apprentice wrote:Try this version.
Trailing Bar Stop MTF.lua


Thank you for the amendments.

There does appear to be a few issues, Ill list these below and perhaps if you have time you might be able to amend the strategy.

1) There is no need for the entire "Alerts" section
2) "P/L for Partial Close" should be in Pips (I think it is, just checking)
3) The Variable "Amount for Partial Close, in Lots", should be able to input down to as small as Micro lots (eg if I put 100, in TSII that is $10 per pip, if I put 10 that is $1.00 per pip and if I put 1 that is $0.10 per pip

Edit on 28/03/18 :- The Partial take profit does sometimes work, but not as (3) above, however when it does work the remaining balance left is not being trailed by the Stop Loss anymore

Many Thanks

Re: Trailing Bar Stop MTF

PostPosted: Thu Apr 12, 2018 4:12 am
by Apprentice
Try this version.
Trailing Bar Stop MTF.alienmole.lua
(50.91 KiB) Downloaded 959 times

Re: Trailing Bar Stop MTF

PostPosted: Thu Apr 12, 2018 6:28 am
by alienmole
[quote="Apprentice"]Try this version.

I've attached an image of how I set it up. I initially entered for a position size of 10

Based on that I would expect it to go to +10 take 5 off and then trail 5 on bars over +5 pips in length from the hi/lo on a M2 Time frame chart.

What it does is take all the position off at +10.

Am I setting it up incorrectly or is it not working as I think it should?

1234.png


Thanks