Forex Zone - Forex Forum

EMA Accuracy

Discussion started on New Indicator Coding

  • Starter
  • Posts: 2
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
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!  :D

Linkback: https://www.forex.zone/new-indicator-coding/25/ema-accuracy/1733/
#1 - March 27, 2019, 03:49:24 PM

Administrator
  • Hero Member
  • Posts: 5063
  • Points: 29205
  • Likes Received: 5102
  • Reputation: +220/-14
It would be better understood if you can show what you mean when you say the values don't seem to be accurate.

Why do you want to code EMA if you can import EMA values using the iMA() function?
#2 - March 27, 2019, 09:29:03 PM

EMA Accuracy in New Indicator Coding_topic=585

  • Sr. Member
  • Posts: 311
  • Points: 66
  • Likes Received: 108
  • Reputation: +3/-0
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!  :D
You can explain in more detail what system you want to use, such as the EMA indicator that you are referring to, whether you want to encode EMA in EA form or as an additional market analysis.
#3 - March 28, 2019, 12:08:42 AM

  • Starter
  • Posts: 2
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
Thank u for replying :). I'm trying to create an alert system but the issue is the EMA calculations are not accurate. The current candle EMA is calculated by this formula  [Close - previous EMA] * (2 / n+1) + previous EMA am i right?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?
#4 - March 28, 2019, 09:52:57 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
are the results different when using the iMA (), function, with the formula you mentioned



#5 - April 08, 2019, 03:52:32 AM

  • Newbie
  • Posts: 47
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
are the results different when using the iMA (), function, with the formula you mentioned
I see it looks good too
#6 - June 20, 2019, 03:53:14 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
I see it looks good too
yes right, it should be good
#7 - June 21, 2019, 02:26:12 AM

  • Newbie
  • Posts: 47
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
yes right, it should be good
but even so it still has to be studied again
#8 - June 28, 2019, 11:37:12 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
but even so it still has to be studied again
learning the manual technique first is getting better before running in the form of EA, for example EA that uses the basis of MA, it must first learn how the MA line produces the entry / exit signal, then when you understand how the MA line works can run EA based on MA in work
#9 - July 03, 2019, 02:52:11 AM

  • Newbie
  • Posts: 43
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
learning the manual technique first is getting better before running in the form of EA, for example EA that uses the basis of MA, it must first learn how the MA line produces the entry / exit signal, then when you understand how the MA line works can run EA based on MA in work
so it's like the process that is being undertaken
#10 - July 05, 2019, 09:00:47 AM

  • Newbie
  • Posts: 32
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
so it's like the process that is being undertaken
I also just found out now, this is a very good input
#11 - July 09, 2019, 12:25:55 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
so it's like the process that is being undertaken
It should be the right way to learn trading if you want to use EA help because EA itself is a form of trading that we run everyday that is applied to an EA
#12 - July 09, 2019, 05:59:25 AM

  • Newbie
  • Posts: 43
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
It should be the right way to learn trading if you want to use EA help because EA itself is a form of trading that we run everyday that is applied to an EA
thank you for the direction
#13 - July 11, 2019, 07:30:29 AM

Members:

0 Members and 1 Guest are viewing this topic.