Download MetaTrader 5

Wow OrderCalcMargin() takes a long time! Might be slowing your backtests down more than you think...

To add comments, please log in or register
Interested in MQL5 features? Find them in documentation!
Benjamin Dixon
23170
Benjamin Dixon 2014.03.22 12:01 

I was calling it nearly every tick (just wanted the potential lot-size reported in a comment) and after removing it my EA back-tests about 5x faster.  Just a heads up. Thank you profiler!

To add comments, please log in or register