help to create rectangle object between moving average line

 

hi,
can someone help me to insert a rectangle coloured object area on this indicator attached like my image?the condition must be this


-The rectangle must be with the same withd of the ma segment line(adapt on each timeframe)
-height of rectangle is given by the distance between the two lines generated by the moving averages of 72ema and 120ema. The distance must be an input to set in point. For ex. if the distance1(input paramater) between two moving average is < 100 point generate a rectangle from H1 ema 72 to H1 ema 120.  The same must be for sma D1 120 and sma D1 10 but with another input of distance that became distance2 input. Someone could help me?



https://charts.mql5.com/19/778/euraud-h1-ig-group-limited.png

Files:
MA_Segments.mq4  76 kb