stops

67 views
Skip to first unread message

protokop

unread,
Jul 4, 2013, 9:28:34 PM7/4/13
to margrids-b...@googlegroups.com
Hi,

Thanks for creating a brilliant EA. I am currently trying to understand it.

I cannot seem to figure out how the SL is set as I keep getting some trades getting set to weird SL values, well by weird I mean not understood to me why. :)

What settings can set/change the SL?

With these setting shouldn't my SL always be 200 pips below the break even point?
TrailBasketStops = true
TrailBasketTarget1 = 20
TrailBasketStop1 = 200
TrailBasketTarget2 = 0
TrailBasketStop2 = 200
TrailBasketTarget3 = -20
TrailBasketStop3 = 200
(I know (or assume) they all set the same thing - redundant I know but not the issue) :) 

I have just noticed in the manual it states...
BasketInnerChannelPeriod: Period for the inner channel that controls the trailing stop for the basket.

Would this setting be changing the SL values? 
BasketInnerChannelPeriod = 2

If so, how do I disable it? how does it change the SL? what is the trigger condition? how does it know what to set the SL to?
Is there a way to view this channel on a chart? So I know when it is triggering the SL change at what price so I can figure out the above q's.

Thanks in advance.


Mark Suddens

unread,
Jul 4, 2013, 11:09:05 PM7/4/13
to margrids-b...@googlegroups.com
See Below
 
Cheers Mark


From: protokop <prot...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Friday, 5 July 2013 1:28 PM
Subject: [margrids-battle-chest] stops

Hi,

Thanks for creating a brilliant EA. I am currently trying to understand it.
There is no fixed SL, There is instead a comprehensive basket trailing stop system and the ability to set a different trigger SL at BE for each in each individual level of a basket
I cannot seem to figure out how the SL is set as I keep getting some trades getting set to weird SL values, well by weird I mean not understood to me why. :)

What settings can set/change the SL?

With these setting shouldn't my SL always be 200 pips below the break even point?
TrailBasketStops = true
This is a trailing stop system

TrailBasketTarget1 = 20
TrailBasketStop1 = 200
When Price achieves 20p past BE (for basket) SL will be set & then trail by 200p ie Trailing Stop starts at 20-200 = -180 from BE and then trails with price

TrailBasketTarget2 = 0
TrailBasketStop2 = 200
When Price achieves BE (for basket) SL will be set & then trail by 200p ie TS starts at 0-200 = -200 from BE and then trails with price

TrailBasketTarget3 = -20
TrailBasketStop3 = 200
When Price is 20 pips from BE (for basket) SL will be set & then trail by 200p ie TS starts at -20-200 = -220 from BE and then trails with price

(I know (or assume) they all set the same thing - redundant I know but not the issue) :) 

I have just noticed in the manual it states...
BasketInnerChannelPeriod: Period for the inner channel that controls the trailing stop for the basket.
This is active as well as the above 3tier TS system.
Whichever is the tightest stop at any time prevails to actually control the TS 


Would this setting be changing the SL values? 
Yes possibly see above
BasketInnerChannelPeriod = 2
This is a 2 period Donchian Channel (2 period for whatever chart you are running on.)
Donchian channel indicator provided by Rick as part of the EA download
If so, how do I disable it? how does it change the SL? what is the trigger condition? how does it know what to set the SL to?
Is there a way to view this channel on a chart? So I know when it is triggering the SL change at what price so I can figure out the above q's.

Thanks in advance.


--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


protokop

unread,
Jul 5, 2013, 12:29:29 AM7/5/13
to margrids-b...@googlegroups.com
Thanks heaps Mark for the assistance and explanations.

I put the channels on the chart. I can't seem to figure out how the inner channel corresponds to the ts.
Do you know how the inner channel ts change is triggered? Is it for example (sell basket) that when a candle extends down out of the inner channel it moves the ts down? But how does it know what to move the ts to?







Mark Suddens

unread,
Jul 5, 2013, 1:02:58 AM7/5/13
to margrids-b...@googlegroups.com
Sorry I should have explained further:
If you are not using the 3 Tier TS system (by leaving all 6 fields as 0) then the trailing stop is just controlled by to Inner Channel period. But the TS is only activated on a level by level basis by the settings in the Basket Level Options:

Basket Level Options
Lot #: The lot size for the next position added to the basket.
BasketTakeProfit #: The target in pips for the basket prot.
BasketBreakEvenTarget #: The target in pips beyond the break even point for the stops to be placed at the
break even point.
ExecutionPoint #: The distance the price must move beyond the basket before opening up the next basket size.

You need to give BasketBreakEvenTarget a value less than BasketTakeProfit  which will be the value in pips past BE that price has to reach for the stop to be set to BE. So then if Trail Stops is set to True this stop will be trailed by the Donchian Channel BasketInnerChannelPeriod. (Once this channel passes BE)

Hope this makes sense
 
Cheers Mark


Sent: Friday, 5 July 2013 4:29 PM
Subject: [margrids-battle-chest] Re: stops

Thanks heaps Mark for the assistance and explanations.

I put the channels on the chart. I can't seem to figure out how the inner channel corresponds to the ts.
Do you know how the inner channel ts change is triggered? Is it for example (sell basket) that when a candle extends down out of the inner channel it moves the ts down? But how does it know what to move the ts to?



MichaelFX

unread,
Jul 23, 2013, 4:37:04 PM7/23/13
to margrids-b...@googlegroups.com, Mark Suddens

Hi Rick/Mark

 

I’ve been following this thread from the beginning but have never had the time to get MBC under my skin. . .

 

I’m running 0.2C as I want to understand the basic function before running AM

I’ve tried running demos on your default setting, but only with loses and I have noticed that MBC very often closes baskets with loss at SL. I’ve read in the forum that MBC set SL to BE ones it have been in profit but I don’t know the philosophy about that and I thought that I could get rid of that by adjusting the BasketBreakeEven in each level, but that’s not the case. . . Will you explain for a dummy like me?

 

I’ve been searching the forum but never found out

 

Cheers

Michael


Den fredag den 5. juli 2013 07.02.58 UTC+2 skrev Mark Suddens:
Sorry I should have explained further:
If you are not using the 3 Tier TS system (by leaving all 6 fields as 0) then the trailing stop is just controlled by to Inner Channel period. But the TS is only activated on a level by level basis by the settings in the Basket Level Options:

Basket Level Options
Lot #: The lot size for the next position added to the basket.
BasketTakeProfit #: The target in pips for the basket prot.
BasketBreakEvenTarget #: The target in pips beyond the break even point for the stops to be placed at the
break even point.
ExecutionPoint #: The distance the price must move beyond the basket before opening up the next basket size.

You need to give BasketBreakEvenTarget a value less than BasketTakeProfit  which will be the value in pips past BE that price has to reach for the stop to be set to BE. So then if Trail Stops is set to True this stop will be trailed by the Donchian Channel BasketInnerChannelPeriod. (Once this channel passes BE)

Hope this makes sense
 
Cheers Mark


From: protokop <prot...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Friday, 5 July 2013 4:29 PM
Subject: [margrids-battle-chest] Re: stops
Thanks heaps Mark for the assistance and explanations.

I put the channels on the chart. I can't seem to figure out how the inner channel corresponds to the ts.
Do you know how the inner channel ts change is triggered? Is it for example (sell basket) that when a candle extends down out of the inner channel it moves the ts down? But how does it know what to move the ts to?



--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsub...@googlegroups.com.

Mark Suddens

unread,
Jul 23, 2013, 5:35:05 PM7/23/13
to margrids-b...@googlegroups.com
HI Michael
Need a bit more info about the set files (maybe you could send) - 
But if you are using BasketBreakEvenTarget in each level and setting it to a low value  (less than BasketTakeProfit), then you will get baskets stopping out at BE quite regularly (or a small loss due to spread / slippage etc). Better to set BasketBreakEvenTarget to >= BasketTakeProfit and set the Basket trailing stop to true. Then you can set no of pips in profit (above BE) that a stop will be set and then trailed if price continues to move in direction of retrace. 
Does this make sense or do you need more info on the trailing stop system?
 
Cheers Mark


From: MichaelFX <mich...@hotmail.dk>
To: margrids-b...@googlegroups.com
Cc: Mark Suddens <cab...@xtra.co..nz>
Sent: Wednesday, 24 July 2013 8:37 AM
Subject: Re: [margrids-battle-chest] Re: stops

Hi Rick/Mark
 
I’ve been following this thread from the beginning but have never had the time to get MBC under my skin. . .
 
I’m running 0.2C as I want to understand the basic function before running AM
I’ve tried running demos on your default setting, but only with loses and I have noticed that MBC very often closes baskets with loss at SL. I’ve read in the forum that MBC set SL to BE ones it have been in profit but I don’t know the philosophy about that and I thought that I could get rid of that by adjusting the BasketBreakeEven in each level, but that’s not the case. . . Will you explain for a dummy like me?
 
I’ve been searching the forum but never found out
 
Cheers
Michael

Den fredag den 5. juli 2013 07.02.58 UTC+2 skrev Mark Suddens:
Sorry I should have explained further:
If you are not using the 3 Tier TS system (by leaving all 6 fields as 0) then the trailing stop is just controlled by to Inner Channel period. But the TS is only activated on a level by level basis by the settings in the Basket Level Options:

Basket Level Options
Lot #: The lot size for the next position added to the basket.
BasketTakeProfit #: The target in pips for the basket prot.
BasketBreakEvenTarget #: The target in pips beyond the break even point for the stops to be placed at the
break even point.
ExecutionPoint #: The distance the price must move beyond the basket before opening up the next basket size.

You need to give BasketBreakEvenTarget a value less than BasketTakeProfit  which will be the value in pips past BE that price has to reach for the stop to be set to BE. So then if Trail Stops is set to True this stop will be trailed by the Donchian Channel BasketInnerChannelPeri od. (Once this channel passes BE)

Hope this makes sense
 
Cheers Mark


From: protokop <prot...@gmail.com>
To: margrids-b...@ googlegroups.com
Sent: Friday, 5 July 2013 4:29 PM
Subject: [margrids-battle-chest] Re: stops

Thanks heaps Mark for the assistance and explanations.

I put the channels on the chart. I can't seem to figure out how the inner channel corresponds to the ts.
Do you know how the inner channel ts change is triggered? Is it for example (sell basket) that when a candle extends down out of the inner channel it moves the ts down? But how does it know what to move the ts to?



--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+ unsub...@googlegroups.com.
To post to this group, send email to margrids-b...@ googlegroups.com.
Visit this group at http://groups.google.com/ group/margrids-battle-chest.
For more options, visit https://groups.google.com/ groups/opt_out.
 
 


--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.

fanga

unread,
Jul 24, 2013, 2:46:16 PM7/24/13
to margrids-b...@googlegroups.com, Mark Suddens
Thanks for this Mark.

I have an add-on questions.

When you say prices achieve do you mean that the minute the bid/ask (depending on which side you're on) hits the price the stops are put in place? Or is it when the candle closes on the 30 minute at or above/below your price that the stops are set?

I ask because I noticed when prices hit the point where SL should be set it is not set instantly.
See Below
 
Cheers Mark

To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsub...@googlegroups.com.

Michael Pedersen

unread,
Aug 21, 2013, 5:34:26 PM8/21/13
to margrids-b...@googlegroups.com

Hi Mark, and your other MBC experts

Thank you very much for your explanation of the Trailing Stop system.

But I still have some misunderstanding how to set the TS for each level,

I'm testing an EnvyUltra like setting with MBC 2G and testing the TS, but there are still something that I don't understand.

My setting is like this:


Billede indsat i tekst 2


As you can see the BTP is very high for the first 3 levels, 21, 15 and 9.

What i want is starting the tralingStop from level 4 or 5. At that point the BTP is around 6-8 or so and then I have tried setting the TralingBasketTarget1 to 6pips and the the TrailBasketStop1=3pip
I have also changed the BTP for level 4 or 5 to a very large number so this TP will not get trigget.

This works fine if I make this setting when the basket L4 is already formed then the trialing stop will be activated 6 pips after BE and the SL will be set to 3 pips from actually price and then trailed by the trend or closed at SL.

BUT the problem is what happen AFTER the basket is closed.
MBC starts a new L1 trade but when that trade is in profit whit 6 pips after BE then the SL is again set to 3 pips  from actually price but many time those SL at  L1 to L3 is hit and the basket is closed with a very little profit. At the lower levels I don't want TralingStop activated. At those low levels I take advantage of the relative high profit coursed by the high L1 lot size and the higher volume of closed L1 - L3 basked.
I only want TrailingStop function activated for the higher levels.

How do I do that??

I have tried various pip figures for the BreakEvenTarget for each level but it always ended up with a BreakEven close with a little loss coursed by commission, or nothing if I type 500.

I have read your earlier description as quoted:

If you are not using the 3 Tier TS system (by leaving all 6 fields as 0) then the trailing stop is just controlled by to Inner Channel period. But the TS is only activated on a level by level basis by the settings in the Basket Level Options"

What does this mean?

Is the TralingBasketTarget activated by different BreakEvenTargets for each level and then:

1. trailed by the number typed in as BasketInnerChannelPeriode which is a common TrailBasketStop for all levels or:

2.  Trailed by the actual value of the BasketInnerChannel as visualized by Ricks Channel Indicator (blue lines)? In this last case the real SL in pips is not predictable as this value is dependent of the chart period and the history for the pair traded. (This function is used by "Slide Hedging" in MBC too)

My goal in this scenario is using the TP for the lower levels

Using the trailing stop function with medium TralingBasketTarge and TrailBasketStop for the medium levels

And then tighten up the TralingBasketTarge and TrailBasketStop for the higher levels to be more sure to close the basket at a small retrace but at the same time take advantage of the possibility of a strong retrace and then trail that retrace.

Unfortunately I'm not sure this can be accomplished the way TrailingStops is function right now, or ???

I hope you understand my point in this matter and thank you all for a very beneficial forum ;-)

Cheers Michael

Date: Wed, 24 Jul 2013 09:35:05 +1200
From: cab...@xtra.co.nz

Subject: Re: [margrids-battle-chest] Re: stops
image.png

Mark Suddens

unread,
Aug 21, 2013, 7:51:53 PM8/21/13
to margrids-b...@googlegroups.com
HI Michael
Unfortunately you are right.
If you have TS on baskets set to true, then margrid will always use whatever is the most aggressive or tighter TS.

So if the BasketInnerChannelPeriod (chart dependent) is tighter than the 3 tier TS then that will control the stop.
The individual level BasketTakeProfit # will only have an effect if it is smaller than both the BasketInnerChannelPeriod (at the time) and the TrailBasketTarget s

In this case if you have TrailBasketTarget1 = 6pips then the margrid individual TP of levels 1 to 4 has no effect as the TS will kick in before they are reached
There is no way at this time of only turning on TS for higher levels only.

It only works the other way around ie if the individual TP of levels are less than the TrailBasketTarget# s then these  individual TP levels will be hit before the TS is instituted. (assuming your inner basket channel period is not set too small)

Hope this makes sense



Basket Level Options
Lot #: The lot size for the next position added to the basket.
BasketTakeProfit #: The target in pips for the basket prot.
BasketBreakEvenTarget #: The target in pips beyond the break even point for the stops to be placed at the
break even point.
ExecutionPoint #: The distance the price must move beyond the basket before opening up the next basket size.
 
Cheers Mark


From: Michael Pedersen <micha...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Thursday, 22 August 2013 9:34 AM
Subject: Fwd: [margrids-battle-chest] Re: stops


For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
image.png

MichaelFX

unread,
Aug 22, 2013, 4:22:03 AM8/22/13
to margrids-b...@googlegroups.com, Mark Suddens
Thank you Mark. . .

But what will happen if:  the 3 Tier TS system (by leaving all 6 fields as 0) then the trailing stop is just controlled by to Inner Channel period. But the TS is only activated on a level by level basis by the settings in the Basket Level Options

If then setting BasketBreakEvenTarget  to 500 for level 1+2+3 and then setting BasketBreakEvenTarget  to 4 for the rest of the levels
As I understand the above statement then TrailingStop is not active at all for level 1+2+3 as BasketBreakEvenTarget of 500 is much much more then BasketTakProfit of 21,15 and 9 and then TP will kick in before TrailingStop is activated?
But the TrailingStop is activated for all the higher level when BasketBreakEvenTarget of 4 is hit and SL is set to BreakEven, and then trailed by the BasketInnerChannelPeriod (chart dependent) ??

If this is true then it is possible to activate or deactivate TrailingStop for each level by:


TrailingStop deactivated:
Setting  the 3 Tier TS system to zero (by leaving all 6 fields as 0)
Setting BasketBreakEvenTarget for each level to a very high number (500) Never hit and never activate TrailingStop and never trailed by BasketInnerChannelPeriod (chart dependent)
Setting BasketTakeProfit for each level to a low number (15)

TrailingStop activated:
Setting  the 3 Tier TS system to zero (by leaving all 6 fields as 0)
Setting BasketBreakEvenTarget for each level to a low number (4) Then trailed by BasketInnerChannelPeriod (chart dependent)
Setting BasketTakeProfit for each level to a very high number (200)

Cheers Michael 
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsub...@googlegroups.com.

To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest..
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsub...@googlegroups.com.

To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages