The major indexes looked to end Friday on a positive note after a trying week. Palantir climbed and is on track to end a losing streak.