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.
Mql5
- www.mql5.com
Mql5
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.
- How to quickly catch and fix errors in trading robots
- Insufficient funds to perform trade operation
- Invalid volumes in trade operations
- Limiting Number of Pending Orders
- Limiting Number of Lots by a Specific Symbol
- Setting the TakeProfit and StopLoss levels within the SYMBOL_TRADE_STOPS_LEVEL minimum level
- Attempt to modify order or position within the SYMBOL_TRADE_FREEZE_LEVEL freeze level
- Errors that occur when working with symbols which have insufficient quote history
- Array out of Range
- Zero Divide
- Sending a request to modify the levels without actually changing them
- Attempt to import compiled files (even EX4/EX5) and DLL
- Calling custom indicators with iCustom()
- Passing an invalid parameter to the function (runtime error)
- Access violation
- Consumption of the CPU resources and memory
- Articles for reading
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:
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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?