AngeleDei is a project mainly written in Lua, it's free.
Protection paladin rotation helper
Please read "Getting started.txt" under "doc" if you are new to this addon.
"Rotations.txt" has details about rotations that the addon simulates.