Looking for code to paint line on chart

 
I know this is a very basic question.  Somewhere around here I found some code that would simply draw a line on the chart based on a variable.  I thought I saved it to my hard drive, but can't find it now.  The code was for an EA, not an indicator.  Any help?
Reason: