Usually, when entering a trade, you should have some idea of how far you expect price to move in your favor before reversing. Based on this, you would set a profit target for your trade. (If you don't expect price to move in your favor, why would you enter the trade?)

You can set your trade to automatically close when the profit target is reached (see Take profit ) , close your trade manually when it reaches your target, or manage your trade in other ways (adjust stops , scale in, scale out, etc.).