Hi guys,How do i code EMA calculations accurately?The values doesn't seem to be accurate or in line with the EMA values from MT4 platforms or Tradingview.com?Please help me out thank you!
Thanks for replying.The codes that u gave me is great but the problem is what is the starting value of yesterdays EMA.Is there any short cut to grab the value?
Because the current candle EMA is calculated by the close price which is updated every second with a weighted multiplier which is K + previous candle EMA. The problem is how do i get the previous candle EMA? How do i get the most precise previous day EMA value that would be used in the equation to get the most precise today's EMA?