MQL5 Automatic validation always error

 

test on EURUSD,H1 (netting) 2017.04.07 15:31:38 failed instant sell 4.95 EURUSD at 1.06500 sl: 1.06600 [Volume limit reached] 2017.04.07 15:31:38 failed instant sell 4.95 EURUSD at 1.06499 sl: 1.06599 [Volume limit reached] 2017.04.07 15:31:38 failed instant sell 4.95 EURUSD at 1.06498 sl: 1.06598 [Volume limit reached] 2017.04.07 15:31:38 failed instant sell 4.95 EURUSD at 1.06497 sl: 1.06597 [Volume limit reached] 2017.04.07 15:31:38 failed instant sell 4.95 EURUSD at 1.06495 sl: 1.06595 [Volume limit reached] 2017.04.07 15:31:38 failed instant sell 4.95 EURUSD at 1.06494 sl: 1.06594 [Volume limit reached] 2017.04.07 15:31:39 failed instant sell 4.95 EURUSD at 1.06493 sl: 1.06593 [Volume limit reached] 2017.04.07 15:31:39 failed instant sell 4.95 EURUSD at 1.06492 sl: 1.06592 [Volume limit reached] 2017.04.07 15:31:39 failed instant sell 4.95 EURUSD at 1.06491 sl: 1.06591 [Volume limit reached] 2017.04.07 15:31:39 failed instant sell 4.95 EURUSD at 1.06490 sl: 1.06590 [Volume limit reached] 2017.04.07 15:31:39 failed instant sell 4.95 EURUSD at 1.06489 sl: 1.06589 [Volume limit reached] 2017.04.07 15:31:39 failed instant sell 4.95 EURUSD at 1.06488 sl: 1.06588 [Volume limit reached] 2017.04.07 15:31:39 failed instant sell 4.95 EURUSD at 1.06486 sl: 1.06586 [Volume limit reached] 2017.04.07 15:31:40 failed instant sell 4.95 EURUSD at 1.06485 sl: 1.06585 [Volume limit reached] 2017.04.07 15:31:40 failed instant sell 4.95 EURUSD at 1.06484 sl: 1.06584 [Volume limit reached] 2017.04.07 15:31:40 failed instant sell 4.95 EURUSD at 1.06483 sl: 1.06583 [Volume limit reached] 2017.04.07 15:31:40 failed instant sell 4.95 EURUSD at 1.06482 sl: 1.06582 [Volume limit reached] 2017.04.07 15:31:40 failed instant sell 4.95 EURUSD at 1.06481 sl: 1.06581 [Volume limit reached] 2017.04.07 15:31:40 failed instant sell 4.95 EURUSD at 1.06480 sl: 1.06580 [Volume limit reached] 2017.04.07 15:31:40 failed instant sell 4.95 EURUSD at 1.06479 sl: 1.06579 [Volume limit reached] 2017.04.07 15:31:40 failed instant sell 4.95 EURUSD at 1.06478 sl: 1.06578 [Volume limit reached] strategy tester report 51 total trades

what happen ?

 

Not enough checks in place.

Badly coded.

Re-Write the code.

 
Marco vd Heijden:

Not enough checks in place.

Badly coded.

Re-Write the code.

please how to fix it

 

You need to check volumes.

If you don't know how to do that you can not sell your product because it is not safe to use.

 

I don't know either what is it about, it appears only during the activation process, likely a limitation of volume of opened position and pending orders

I used to saw such a param few times ago, so I had to watch for it again and it may be LotsLimit() as I remember it's not used on all brokers

gonna check and confirm

https://www.mql5.com/en/docs/standardlibrary/tradeclasses/csymbolinfo/csymbolinfolotslimit

Documentation on MQL5: Standard Library / Trade Classes / CSymbolInfo / LotsLimit
Documentation on MQL5: Standard Library / Trade Classes / CSymbolInfo / LotsLimit
  • www.mql5.com
Standard Library / Trade Classes / CSymbolInfo / LotsLimit - Reference on algorithmic/automated trading language for MetaTrader 5
 
Validation successful, it is LotsLimit (library) and with SymbolInfoDouble :

SYMBOL_VOLUME_LIMIT

Maximum allowed aggregate volume of an open position and pending orders in one direction (buy or sell) for the symbol. For example, with the limitation of 5 lots, you can have an open buy position with the volume of 5 lots and place a pending order Sell Limit with the volume of 5 lots. But in this case you cannot place a Buy Limit pending order (since the total volume in one direction will exceed the limitation) or place Sell Limit with the volume more than 5 lots.

It has been added recently in the process of validation.

 
Icham Aidibe:
Validation successful, it is LotsLimit (library) and with SymbolInfoDouble :

SYMBOL_VOLUME_LIMIT

Maximum allowed aggregate volume of an open position and pending orders in one direction (buy or sell) for the symbol. For example, with the limitation of 5 lots, you can have an open buy position with the volume of 5 lots and place a pending order Sell Limit with the volume of 5 lots. But in this case you cannot place a Buy Limit pending order (since the total volume in one direction will exceed the limitation) or place Sell Limit with the volume more than 5 lots.

It has been added recently in the process of validation.

Unfortunately this function return 0 value, i had test in different cases.

I am searching to find solution to read symbol volume limit

 
Hamed Dehghani:

Unfortunately this function return 0 value, i had test in different cases.

I am searching to find solution to read symbol volume limit

Have you had any luck yet? The method also keeps returning 0 for me.
 

Calculation in pips is set in the strategy tester

uncheck it

 
my volatility index account dose work now...please help how it ceart again
 
danu pubudu:
my volatility index account dose work now...please help how it ceart again

What are you talking about and how is it relevant to this topic?

Reason: