I would like to know the time limit

Hi,
I am a beginner and have a question.
What is the time span I can wait to buy or sell the pips?
When I buy some pips, is there any time limit that I need to sell or anything like it will automatically get sold?
Thank You