Here is a 16th note based alternate picking guitar exercise to help both finger independence and alternate picking. Try to use on finger per fret beginning on the 7th fret to the 10th fret. Use strict alternate picking for the exercise. As discussed in the video you can break this guitar exercise into two parts and loop each part in isolation treating them as two separate exercises if you want. The best way to practice this is with a metronome. Start at a comfortable pace where you can play through the exercise without any mistakes then gradually increase the beats per minute.