• Join us

CodeBase Validation tester says [Invalid volume].

To add comments, please log in or register
Anthony Garot
3538
Anthony Garot  
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:
Alain Verleyen
39093
Alain Verleyen  
Anthony Garot:

Thoughts?

Check your volume against min/max/step, always. You have no idea about the testing conditions, so don't assume anything.
Anthony Garot
3538
Anthony Garot  
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

MEHMET FATIH BARUT
243
MEHMET FATIH BARUT  

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.

To add comments, please log in or register