Reduce position by 1/2

I have an alert on trading view. I would like it to triger the action “Reduce by”. either 25% or 50% or what ever. I do not want to close the trade I just want it reduced. Is that possible

Is this a partial close. Basically if you have a buy with a Q of 10, you close 5 which is half and retain a buy of 5?

That actually works great when I trade with OANDA. However I’m doing a funded challange and the broker is BlueBerry Or Eightcap. They allow you to hedge. So I can have 1 lot going long and another position going short with one lot. So for the strategy Im working on at a ceratin point I need the position reduced. Not open a oposite position.