Expert Advisor - Changing Parameters

 
Can anyone help me to program two moving averages so that they are dependent on each others values?