I am trying to figure out how to plot 2 simple moving averages on a lower chart. I would like to be able to input the lengths of each and the aggregation period for the lower chart. Can someone help me, I am just learning the syntax and am having a hard time writing this seemingly simple script. Thank you