Automatic Validation - Invalids Stops & Prices - page 2

 

this is my volume normalizer:

double NormalizeLotSize(double lot) {
   lot            = MathRound(lot/g_symbolLotStep)*g_symbolLotStep;
   return(MathMin(g_symbolMaxLotSize,MathMax(lot,g_symbolMinLotSize)));
}
 
Ciro Soto #:

can any of you give me a reason why the automatic validation sends an error, but my own simulation is passing fine?

thank you

if your "simulation" is also a demo account, then, that is why. demo account does not account for freezelevel on pending orders. That is why high frequency-pending orders, trading eas will make millions on demo, but dead losers on live account.

 

Michael,

thank you for your comments.

My understanding is that the freezelevel is only needed when modifying an order or position. Only the stoplevel is used when opening the trade. In any case, I have set a minimum of 40 points for both levels, in case the symbol returns 0.

Fernando Carreiro is saying the error is in the "alignment of the tick" but I can't find out how to fix it since my simulation does not replicate the "invalid price" found in the automatic validation.

 
Ciro Soto #:

Michael,

thank you for your comments.

My understanding is that the freezelevel is only needed when modifying an order or position. Only the stoplevel is used when opening the trade. In any case, I have set a minimum of 40 points for both levels, in case the symbol returns 0.

yes, sorry, i think i think i got the terms confused there. But maybe your 40 min stops isnt enuf? i know that I tried a ea with pending orders just recently and my broker had 50 point freezelevel, or was it stoplevel? aaaaaagh. This was despite the specifications saying 0.

 

I am really confused with the Automatic Validation. I used files with names following the letters of the alphabet. I submitted aa.ex5 and failed; I changed the code, named it bb.ex5, submitted it, and failed, ..., after several iterations, I reached ll.ex5 which passed. YES! I was happy. Then I changed the name of the file to the real name of the Expert Advisor (say BestEA.ex5). I re-submitted the renamed file and FAILED! What happened? I renamed it back to ll.ex5, resubmitted, and FAILED AGAIN.


What is going on?

Moderators, please help. 

thanks

 
Ciro Soto #: I am really confused with the Automatic Validation. I used files with names following the letters of the alphabet. I submitted aa.ex5 and failed; I changed the code, named it bb.ex5, submitted it, and failed, ..., after several iterations, I reached ll.ex5 which passed. YES! I was happy. Then I changed the name of the file to the real name of the Expert Advisor (say BestEA.ex5). I re-submitted the renamed file and FAILED! What happened? I renamed it back to ll.ex5, resubmitted, and FAILED AGAIN. What is going on? Moderators, please help. 

Then show the actual report! How are we supposed to infer the reason for the failure?

 

I finally got the Automatic Validation with the file name I wanted. thank you all.