You will like this project: free EA for Metatrader where the community can propose features and discuss strategies. https://communitypowerea.userecho.c...s-closed-profit-opposite-previous-closed-loss This is a proposition to a similar approach like yours. Have a look and feel free to propose your extension there. You might get it soon then.