@fxdreema Ok Thanks for the hints!
I changed some blocks which MT5 has their own variant names (eg. no position). However other blocks,which have same variant names, I didn't change it, for instance the condition blocks.
I backtested it, it works however it indeed true that MT5 (netting) took different trades than in MT4. (I backtested it with the exact same settings for MT4)