Hi,
If you just want to draw a line at max value of the plotted dataset, you can use script code such as below in the script window (copy and paste these lines of code, then highlight both lines and hit the Enter key):
sum(%c); // Compute stats on active curve;
draw -l -h sum.max; // Place a horizontal line at max value;
If you are looking to create a top/bottom envelope line for your data, see this free add-on:
http://www.originlab.com/FileExchange/details.aspx?C=5&cid=18&fid=39
Easwar
OriginLab