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!
- www.mql5.com
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.
Specifically, you need the address of the broker's server and the password to your demo account.
Alpari-MT5-Demo
login: 50345480
I checked on different brokers on all neting accounts the same thing. |
Alpari-MT5-Demo
login: 50345480
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.
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!!!
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
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!
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 !!!
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
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use

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