Maybe?

I should possibly mention that in my example sketched above they would be sell trades? (Whether that makes a difference I'm not sure)
Hi, yes I think that's what I'm after. If MA > 'trade entry price' then close that trade only.
I wonder if it should be something like the below?

Hi all,
I'm very new to this and was hoping someone could help me with which blocks I should use to achieve the following:
Any help would be much appreciated.
(please remember I'm a rooky with no coding experience but can think logically).
Cheers
