@nahimh AFAIK the only way to do it automatically is by using custom code. You can do it manually by inserting those values as constants and then sum them up into a variable that can be used here:
Then definitely you will need some custom code to find that 'furthest' trade each time a new one is identified. I'm afraid there is no simple fxDreema structure doing that.