Use Borax to raise your pH

Use Muriatic acid to lower it

CYA is completely unrelated

Read some more info @ poolsolutions.com and all of the "stickies" on the forum.