CodeBase Validation tester says [Invalid volume].

 
The volume is a fixed value of 0.10.

Searching the forum suggests that [Invalid volume] is usually because of an issue with SYMBOL_VOLUME_MIN or SYMBOL_VOLUME_MAX or SYMBOL_VOLUME_STEP, but 0.10 is fixed, and I think a fairly standard size for EURUSD.

I had a few invalid price issues, but nothing to do with volume.

Needless to say, it works on the Strategy Tester on my machine.

Thoughts?

test on EURUSD,H1 (netting)
 2016.04.01 23:00:00   failed buy stop 0.10 EURUSD at 1.14028 sl: 1.13431 [Invalid volume]
 2016.04.01 23:00:00   failed sell stop 0.10 EURUSD at 1.13886 sl: 1.14483 [Invalid volume]
 2016.04.04 00:01:00   failed buy stop 0.10 EURUSD at 1.13989 sl: 1.13393 [Invalid volume]
 2016.04.04 00:01:00   failed sell stop 0.10 EURUSD at 1.13849 sl: 1.14446 [Invalid volume]
 2016.04.06 02:00:00   failed buy stop 0.10 EURUSD at 1.13837 sl: 1.13467 [Invalid volume]
 2016.04.06 02:00:00   failed sell stop 0.10 EURUSD at 1.13767 sl: 1.14137 [Invalid volume]
 2016.04.08 15:00:00   failed buy stop 0.10 EURUSD at 1.13694 sl: 1.13353 [Invalid volume]
 2016.04.08 15:00:00   failed sell stop 0.10 EURUSD at 1.13593 sl: 1.13934 [Invalid volume]
 2016.04.12 03:00:00   failed buy stop 0.10 EURUSD at 1.14134 sl: 1.13757 [Invalid volume]
 2016.04.12 03:00:00   failed sell stop 0.10 EURUSD at 1.14085 sl: 1.14462 [Invalid volume]
 2016.04.12 04:00:00   failed buy stop 0.10 EURUSD at 1.14112 sl: 1.13680 [Invalid volume]
 2016.04.12 04:00:00   failed sell stop 0.10 EURUSD at 1.14001 sl: 1.14433 [Invalid volume]
 2016.04.12 05:00:00   failed buy stop 0.10 EURUSD at 1.14163 sl: 1.13740 [Invalid volume]
 2016.04.12 05:00:00   failed sell stop 0.10 EURUSD at 1.14051 sl: 1.14474 [Invalid volume]
 2016.04.13 15:00:00   failed buy stop 0.10 EURUSD at 1.13090 sl: 1.12700 [Invalid volume]
 2016.04.13 15:00:00   failed sell stop 0.10 EURUSD at 1.12957 sl: 1.13347 [Invalid volume]
 2016.04.14 15:00:00   failed buy stop 0.10 EURUSD at 1.12683 sl: 1.12286 [Invalid volume]
 2016.04.14 15:00:00   failed sell stop 0.10 EURUSD at 1.12545 sl: 1.12942 [Invalid volume]
 2016.04.14 19:00:00   failed buy stop 0.10 EURUSD at 1.12693 sl: 1.12134 [Invalid volume]
 2016.04.14 19:00:00   failed sell stop 0.10 EURUSD at 1.12477 sl: 1.13036 [Invalid volume]
 2016.04.18 00:00:00   failed buy stop 0.10 EURUSD at 1.12861 sl: 1.12521 [Invalid volume]
there are no trading operations
Files:
 
Anthony Garot:

Thoughts?

Check your volume against min/max/step, always. You have no idea about the testing conditions, so don't assume anything.
 
Alain Verleyen:
Check your volume against min/max/step, always. You have no idea about the testing conditions, so don't assume anything.

That was it.

I was thinking too "inside the box."

Thank you.

:-D

 

for the broker company sometimes because of their inside calculation, 0.1 means something different.

forexample for ultra-low accounts 0.01 means 0.001 and it is invalid.

 
Please help ..

somehow I can't solve the [invalid volumes] error.

Please send me a source code

<...>


Mql5

The checks a trading robot must pass before publication in the Market
The checks a trading robot must pass before publication in the Market
  • www.mql5.com
Before any product is published in the Market, it must undergo compulsory preliminary checks, as a small error in the expert or indicator logic can cause losses on the trading account. That is why we have developed a series of basic checks to ensure the required quality level of the Market products. If any errors are identified by the Market...
 
Abdurahim Aras:
Please help ..

somehow I can't solve the [invalid volumes] error.

Please send me a source code

<...>


Mql5

Invalid volumes in trade operations

Forum on trading, automated trading systems and testing trading strategies

How to Start with Metatrader 5

Sergey Golubev, 2016.11.14 19:16

The checks a trading robot must pass before publication in the Market


Before any product is published in the Market, it must undergo compulsory preliminary checks, as a small error in the expert or indicator logic can cause losses on the trading account. That is why we have developed a series of basic checks to ensure the required quality level of the Market products.

If any errors are identified by the Market moderators in the process of checking your product, you will have to fix all of them. This article considers the most frequent errors made by developers in their trading robots and technical indicators. We also recommend reading the following articles:


The checks a trading robot must pass before publication in the Market
The checks a trading robot must pass before publication in the Market
  • www.mql5.com
Before any product is published in the Market, it must undergo compulsory preliminary checks, as a small error in the expert or indicator logic can cause losses on the trading account. That is why we have developed a series of basic checks to ensure the required quality level of the Market products. If any errors are identified by the Market...
Reason: