Forum

Release file on force backtest stop

I am using sqlite database in my EA. When I force stop backtest process agent hangs and never accepts new jobs until I restart MetaTrader. I figured out that after force stop agent still keeps sqlite database file open. I've added file release in both OnDeinit and in destructor of database

Terminal selects a wrong advisor to profile

I am working on an expert advisor. I've created a project in MetaEditor and working inside of it. When I push "Launch profile on history data" terminal always selects Moving Average advisor from Examples folder. Moreover, after this profiling launch every time I compile my project terminal selects