In my testing of the new HistorySelectByPosition() function, this function worked OK in a Demo account, but did not work in the Strategy Tester. I have attached a test EA that will open multiple trades in one direction (short). Could someone confirm if the Log Print("pos_id = ",pos_id," HistoryDealsTotal() = ",total); in this EA will print correct results in both demo and Strategy Tester.
Files:
historyselectbyposition-testea.mq5
3 kb
- MetaTrader 5 Built-in Trading Strategy Tester
- Flexible MetaTrader 5 trading system with all order types
- MetaTrader 5 for your employees

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register