getting the channel limits prices

 
Hi
I need some help with programming this task.
this code
ObjectCreate("chn", OBJ_STDDEVCHANNEL, 0, Time[100],0, Time[20],0);
Comment(ObjectGetValueByShift("chn1",44));
prints the value of the middle line ok. but I am after the values of the the upper and lower bounds, how can I get them?

many thanks
 
Perhaps:

Calculate iStdDev() for the centerline, then add/subtract that value from the value --GetValueByShift() -- at any point along the centerline.
 
Perhaps:

Calculate iStdDev() for the centerline, then add/subtract that value from the value --GetValueByShift() -- at any point along the centerline.




I thought of that but the arguments for iStdDev, particularly " int ma_period, int ma_shift, int ma_method, int applied_price" should be such that the line would be identical with the OBJ_STDDEVCHANNE, which I don't know, who can one finds out? "in-order for the iStdDev line to match the channel middle line?

thanks
Reason: