One Error during product validation

 

I keep getting 1 Error during the product validation. I just spent 3 hours trying to find out what it is. 

Does anyone have any suggestions where to find out what the error is to point me in the right direction at least?

Files:
one_error.PNG  34 kb
 

Your advisor did not perform any operations on the verification server.

Restrictions in your code?

 
Vladislav Andruschenko:

Your advisor did not perform any operations on the verification server.

Restrictions in your code?

It can be many different problems, either with the code itself or the EA's settings. For example you can't have any restrictions at all in your code - if you do then remove them all! If you have a spread filter you need to specify the right test spread that EA will work on. So if you got EA spread set to 5 you can't specify 2 in testing and so on. 
 

Got it. Found this snippet someone else used. Instead of just checking if you have the correct lot size, you need to adjust it. 


   double min_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MIN);
   if(Lot<min_volume)
     {
      Lot=min_volume;
     }

   double max_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MAX);
   if(Lot>max_volume)
     {
      Lot=max_volume;
     }
Reason: