@pontedruse Then you can use this project as a way to begin. Here you can check open and closed trades when comparing pips. Once the target in pips is reached, the EA self terminates. Simply remove the self terminate block and substitute it by a variables as you describe.
Please note that this EA is looking at the hostory tab of the EA for the closed trades. This means, as I said in my previous post, that all closed trades from the day the account was created will be considered. Just select a time filter on yout MT4 to limit that number of trades.


