LOC Orders to Close Position

I have an algorithm that monitors price/volume and makes a decision to either enter on the buy or sell side. On the next decision, I want to exit the buy side and enter the sell side (or vice versa), but I want to set a price limit on the exit. I believe this is referred to as a “Limit-on-Close” (LOC) order. I only seem to be able to find the ability to close a position by liquidating it at market price. I want to limit the price. Is this possible?