Discussion of article "Controlling the Slope of Balance Curve During Work of an Expert Advisor" - page 2

 

Some conversation between the deaf and the mute is going on :)

Just in case, I'll duplicate it again:


Have you read the article carefully?

One of the requirements for this version of the library is that the size of a normal working lot must be significantly (2-3 times at least) larger than the minimum allowed size

The piece you took out of context generally refers to normalising the working lot, so that you don't get an error because of the wrong size.


Also a big request - if you have nothing to say on the topic, don't clog up the thread. Thanks :)

 
Dima_S:
the size of a normal working lot should be substantially (2-3 times at least) larger than the minimum allowed size.
so what's the point of this library then...
 

The article states: "This method returns the lot value closest to the bottom ."

And the TradeSymbol::NormalizeLots() method in the case of

"// Lot limit from below:
if( lots < min_trade_volume )
{
lots = min_trade_volume;
}"

returns the value nearest from the top.

It looks like an error either in the article or in the method.

 

The article stated: "This method returns the closest value of volume from the bottom."

Method TradeSymbol:: NormalizeLots () in the case

"// Lower limit of volume:     
  if( lots < min_trade_volume )
  {
    lots = min_trade_volume;
  }
"

returns the closest value of volume from the top.

It looks like a bug in either article, or in the method. 

 
That's a truly great and inspiring article, definitely one of the best so far on MQL5.com. Thanks to the Author for sharing such valuable knowledge with the rest of the community.
 
Enigma71fx:
That's a truly great and inspiring article, definitely one of the best so far on MQL5.com. Thanks to the Author for sharing such valuable knowledge with the rest of the community.
Thanks!
 
Contender:

Something about the illustrations.

There are no pictures, there are only captions to them.

Indeed, gives 404 on all pictures. Admins - please fix it!
 

Interesting article , but there is one question. As far as I understood from the article, the slope of the balance curve corresponds to the coefficient a of the linear regression equation. And the obtained value of coefficient a is compared to a predetermined range of values. But the value of this coefficient strongly depends on the size of the balance sheet, and the larger the size of the balance sheet, the larger the value of the coefficient. It turns out that as the balance grows, we will have to manually adjust the set range to compare the calculated coefficient a. Or am I wrong?

Документация по MQL5: Основы языка / Типы данных / Целые типы / Типы char, short, int и long
Документация по MQL5: Основы языка / Типы данных / Целые типы / Типы char, short, int и long
  • www.mql5.com
Основы языка / Типы данных / Целые типы / Типы char, short, int и long - Документация по MQL5
 
mvv444:

Interesting article , but there is one question. As far as I understood from the article, the slope of the balance curve corresponds to the coefficient a of the linear regression equation. And the obtained value of coefficient a is compared to a predetermined range of values. But the value of this coefficient strongly depends on the size of the balance sheet, and the larger the size of the balance sheet, the larger the value of the coefficient. It turns out that as the balance grows, we will have to manually adjust the set range to compare the calculated coefficient a. Or am I wrong?

Thank you for your interest! To answer your question - the value of the coefficient does not depend on the size of the balance. Since the cumulative total for the balance is calculated for the normalised lot size - in fact, it is the profit in pips (more precisely, the value proportional to pips). There is a picture at the beginning of the article, which shows the principle of this system.
 

maryan.dirtyn:
так какой смысл тогда в етой библиотеке...

well what is not clear, this library straightens the equity line at the onset of a cycle of losses.... When the Expert Advisor starts trading losses, the lot is reduced and therefore drawdowns....