Verification failed

 
How can this be?
 
Lucas Belkys Carvalho Goncalves:
How can this be?

-86.40% should be a clue--account stopout. "It's your code" as professional quants are told.

 
Lucas Belkys Carvalho GoncalvesHow can this be?

Trading forum, automated trading systems and trading strategy testing

Error validating EA in MqlMarket

Vinicius Pereira De Oliveira , 2025.08.12 22:48

Here are detailed guidelines on how to perform margin checks: Account margin settings - Trading automation - MQL5 Programming for Traders - MetaTrader 5 algorithmic/automatic trading language manual

If ACCOUNT_MARGIN_SO_CALL has been reached (or is close), the EA should start closing positions.