Handrails are required on stairways and must meet specific guidelines. The top of the handrail must be between 34" - 38" above the nosing of the stair treads. It is important that your handrail be installed so that it runs continuosly the full length of the stairs and returns at the ends.
There are many techniques and profiles for the grip although it must meet the basic requirement which states that the handrail shall not be less than 1-1/4" or more than 2-5/8" in diameter and must provide a smooth grippable surface.
The handrail must be made out of decay resistant material. Some deck contractors router a cavity in cedar 2x4's to create handrails.