Wait until there is a clear move again, for instance, if you want to buy it needs to have made first a higher high which shows buyers are coming in, followed by a higher low which shows there are not enough sellers to push it lower.
A ranging market is simply a balance of buyers and sellers roughly equally with none winning out, you want to wait until they've stopped fighting it out and just join the winning team.
Success means going from failure to failure without loss of enthusiasm
1
2