MACD Axis changes

 

I've written a version of the MACD indicator and am storing some price values in an array.  i will be passing the values to an EA to trade.  The problem is when i add the price values to an array, the MACD axis changes so that the max axis value is equal to price.  this completely flattens the MACD since its value is very small compared to price.  I'm not using the array values in the MACD window so dont know why the axis would change.  if i divide the price by 10,000 before i store it then the axis goes back to the regular values for a MACD but then i have to multiply the price array values by 10,000 to use them in the EA.  Why would putting a price value in an array cause the MACD axis to change?

Reason: