The "Official Turtle Trading Rules" (easily found with a bit of googling) has pyramiding rules built in.
The forums at tradingblox.com has extensive discussions of pyramiding. (I am not affiliated with tradingblox, other than as a member of the forum.)