Experts: Exp_BykovTrend_ReOpen

 

Exp_BykovTrend_ReOpen:

The Exp_BykovTrend_ReOpen trading system based on the signals of the BykovTrend indicator with scaling by the trend.

Fig1. Examples of deals on the chart

Author: Nikolay Kositsin

 
Nikolay, good day
after the 8th refill with the starting lot 0.01, I get an error:
ReBuyPositionOpen_X(2): Invalid volume for trade request structure
ReBuyPositionOpen_X(2): Received volume = 0.09
Can you help me where to dig and how to fix it?
Thanks!
Exp_BykovTrend_ReOpen
Exp_BykovTrend_ReOpen
  • www.mql5.com
Торговая система Exp_BykovTrend_ReOpen на основе сигналов индикатора BykovTrend с доливками по тренду. Сигнал на совершение сделки формируется в момент закрытия бара, если произошло появление цветной стрелки индикатора, и в дальнейшем наращивает объём открытой позиции, если профит в пунктах от последней сделки в позиции превысил порог...
 
Igor Nistor:
Nikolay, good day
after the 8th refill with the starting lot 0.01, I get an error:
ReBuyPositionOpen_X(2): Invalid volume for trade request structure
ReBuyPositionOpen_X(2): Received volume = 0.09
Could you please help where to dig and how to fix?
Thanks!

Specifically, you need the broker's server address and demo account password to start with.

 
Nikolay Kositsin:

Specifically, you need the address of the broker's server and the password to your demo account.

Alpari-MT5-Demo

login: 50345480
password: 6xfhbkvw

I checked on different brokers on all neting accounts the same thing.

 
Igor Nistor:

Alpari-MT5-Demo

login: 50345480
password: 6xfhbkvw

I checked on different brokers on all neting accounts the same thing.

As a matter of fact, I found the error in the TradeAlgorithms.mqh file. The problem is that for some reason 0.09+0.01 equals 0 . 099999 in the terminal. I fixed it in a rather stupid way (100*0.09+100*0.01)/100 I have a new includnik in the trailer.

 
Nikolay Kositsin:

As a matter of fact, I found the error in the TradeAlgorithms.mqh file. The problem is that in the terminal for some reason 0.09+0.01 equals 0.099999. I fixed it in a rather moronic way (100*0.09+100*0.01)/100 In the trailer is a new includnik.

Thanks!!!

 
Nikolay Kositsin:

As a matter of fact, I found the error in the TradeAlgorithms.mqh file. The problem is that in the terminal for some reason 0.09+0.01 equals 0.099999. I fixed it in a rather moronic way (100*0.09+100*0.01)/100 I have a new includnik in the trailer.

Hmm, I guess the crutches in the terminal continue, after the 45th refill already:


2018.12.11 13:55:01.502 2018.03.27 11:09:40 ReSellPositionOpen_X(2): Invalid volume for trade request structure

2018.12.11 13:55:01.502 2018.03.27 11:09:40 ReSellPositionOpen_X(2): Received volume = 0.46

2018.12.11 13:55:01.502 2018.03.27 11:09:40 ReSellPositionOpen_X(2): Previous Volume = 0.46

2018.12.11 13:55:01.502 2018.03.27 11:09:40 ReSellPositionOpen_X(2): Refill volume = 0.01


 
Igor Nistor:

Hmm, I guess the crutches in the terminal continue after the 45th refill:


2018.12.11 13:55:01.502 2018.03.27 11:09:40 ReSellPositionOpen_X(2): Invalid volume for trade request structure

2018.12.11 13:55:01.502 2018.03.27 11:09:40 ReSellPositionOpen_X(2): Received volume = 0.46

2018.12.11 13:55:01.502 2018.03.27 11:09:40 ReSellPositionOpen_X(2): Previous Volume = 0.46

2018.12.11 13:55:01.502 2018.03.27 11:09:40 ReSellPositionOpen_X(2): Refill volume = 0.01


Well, geez, you guys have an appetite. I had to do something different. Now one tenth of the minimum lot step is added to the initial refill size. It will be cut off later anyway!

Files:
 
Nikolay Kositsin:

You've got a hell of an appetite. I had to do it differently. Now one tenth of the minimum lot step is added to the initial size of the refill. It'll be cut off later anyway!

"Boy, you have an appetite." :-) - I have to.

Thanks for your help !!!

 
Nikolay Kositsin :

Bem, droga, você tem apetite. Eu tivo que agir de forma diferente. Agora, um décimo da etapa mínima do lote é adicionado ao tamanho inicial da recarga. Ela será cortada depois!

Tenho o mesmo problema com Trade TradeAlgorithms.mqh , mas tentei o último arquivo e não funcionou.

Eum from Brazil and lot is 1