mt4 closed after optimization start

 
Hello

In some EA s my mt4 stoped and closed when I start to optimization of EA .
I hadent  this problem till I changed laptop windows8 to window10 .

What is the problem ?
 
hadi_hahsemi:
Hello

In some EA s my mt4 stoped and closed when I start to optimization of EA .
I hadent  this problem till I changed laptop windows8 to window10 .

What is the problem ?

check the journal

This use to be an array out of range

Documentation on MQL5: Integration / MetaTrader for Python / order_calc_margin
Documentation on MQL5: Integration / MetaTrader for Python / order_calc_margin
  • www.mql5.com
order_calc_margin - MetaTrader for Python - Integration - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: