Built-in EntryBar_Stop exit strategies

Questions about MultiCharts .NET and user contributed studies.
MidKnight
Posts: 343
Joined: 12 Aug 2012
Has thanked: 123 times
Been thanked: 56 times

Built-in EntryBar_Stop exit strategies

Postby MidKnight » 16 Feb 2015

The 2 EntryBar_Stop exit strategies (LX and SX) look wrong either in the naming conventions used or in their function.

1) In EntryBar_Stop_SX, the variable used for the stop exit is called "m_EbDlrLX". This exit is supposed to be a short exit, not a long exit.

2) The order action for the EntryBar_Stop_SX is to sell more contracts?

Code: Select all

protected override void Create(){
m_EbDlrLX =
OrderCreator.Stop(new SOrderParameters(Contracts.Default, "EbDlrLX", EOrderAction.Sell,
OrderExit.FromAll));
}
2.5) As an aside for newcomers to MC and to C#, it would go a LONG ways to clean up your formatting in a totally consistent fashion. This includes indentation, whitespace, {}, () to name a few. These strategies have inconsistent {} placement and weird white space usage in Create().

All intended as constructive feedback.

With kind regards,
MK

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Built-in EntryBar_Stop exit strategies

Postby Henry MultiСharts » 18 Feb 2015

The 2 EntryBar_Stop exit strategies (LX and SX) look wrong either in the naming conventions used or in their function.

1) In EntryBar_Stop_SX, the variable used for the stop exit is called "m_EbDlrLX". This exit is supposed to be a short exit, not a long exit.
Hello MidKnight,

Thank you for reporting. We will fix the code that comes with the application. It will affect the new installations only. Please manually correct the code on your PC.
2) The order action for the EntryBar_Stop_SX is to sell more contracts?

Code: Select all

protected override void Create(){
m_EbDlrLX =
OrderCreator.Stop(new SOrderParameters(Contracts.Default, "EbDlrLX", EOrderAction.Sell,
OrderExit.FromAll));
}
Please explain what you mean.

MidKnight
Posts: 343
Joined: 12 Aug 2012
Has thanked: 123 times
Been thanked: 56 times

Re: Built-in EntryBar_Stop exit strategies

Postby MidKnight » 18 Feb 2015

What I mean is EntryBar_Stop_SX is an exit strategy for short positions, no? If that's the case, then the exit action for a short position is buytocover and not to sell.

As an example for comparison Profitable_Closes_SX strategy has buytocover action as I would expect. EntryBar_Stop_* has the order actions opposite to what I would expect.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Built-in EntryBar_Stop exit strategies

Postby Henry MultiСharts » 19 Feb 2015

What I mean is EntryBar_Stop_SX is an exit strategy for short positions, no? If that's the case, then the exit action for a short position is buytocover and not to sell.

As an example for comparison Profitable_Closes_SX strategy has buytocover action as I would expect. EntryBar_Stop_* has the order actions opposite to what I would expect.
Signal code is correct. Signal names are wrong.

MidKnight
Posts: 343
Joined: 12 Aug 2012
Has thanked: 123 times
Been thanked: 56 times

Re: Built-in EntryBar_Stop exit strategies

Postby MidKnight » 19 Feb 2015

Yep, that's what I thought....

MidKnight
Posts: 343
Joined: 12 Aug 2012
Has thanked: 123 times
Been thanked: 56 times

Re: Built-in EntryBar_Stop exit strategies

Postby MidKnight » 25 Feb 2015

Same problem again on EntryBar_ATR_Stop LX/SX strategies.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Built-in EntryBar_Stop exit strategies

Postby Henry MultiСharts » 26 Feb 2015

Hello MidKnight,

Thank you. We will fix that..


Return to “MultiCharts .NET”