Level lines in EA

 
Hi I was wondering how the levels are calculated on the moving averages, and if there's a way of using these level lines in an EA.

thanks
 
Levels are calculated like bands in the Envelopes indicator
Reason: