title: How to calculate MACD using PHP?
body: <p>I get similar MACD and Signal values, using the following class in Binance:</p>
  
  <p>I got this code from:</p>
  
  <p><a href="https://github.com/hurdad/doo-forex/blob/master/protected/class/Technical%20Indicators/MACD.php" rel="nofollow noreferrer">https://github.com/hurdad/doo-forex/blob/master/protected/class/Technical%20Indicators/MACD.php</a></p>
  
  <p>How can I modify the class to arrive at the exact value?</p>