Jump to content
  • 0

Replicating ATR calculation in IG charts


garlic18

Question

Hello

Hopefully this is an easy question that someone knows the answer to.

I am trying to replicate the ATR calculation in the IG app but I am struggling a bit. Based on OHLC data, I can replicate the TR for a given set of dates i.e. ATR(1), however I cannot replicate ATR(2) and wondered if anyone knew how this was calculated by IG. I am looking at ATR(2) as ultimately I will be coding up ATR(14) but I want to make sure I understand this first!

As an example, based on AUD/USD for 21/09/20 (simply as that's the data I am working on), I see the following:

image.png.b951fd70f9074db184b0e504a4706dea.png

In this screen dump:

- forex data in the first 5 columns

- TR = True Range and equals =MAX(ABS(current high - previous close), ABS(current low - previous close), current high - current low)

- IG-TR = data taken from IG calculated values from mobile app for ATR(1), differences I presume are due to rounding in OHLC data. Therefore I know that my calculation of TR agrees to IG.

- ATR_2 = AVERAGE (current TR, previous TR) - I believe this is the technically correct interpretation of ATR for period 2, please correct me if I am wrong. It is quite different to IG's numbers (IG_ATR_2)

- ATR_2 _alternative = AVERAGE(current TR, AVERAGE(previous TR, previous -1 TR)) - this gets much closer to "IG_ATR_2", however I am not convinced that this is correct - do you agree?

- IG_ATR_2 = data taken from IG calculated values from mobile app for ATR(2). I can see that the dps are at least 5 significant figures, which surprises me on a period of 2! Are these rolled forward time period to time period?

Hopefully someone can help and apologies if this doesn't make any sense.

Best wishes

Richard

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • image.png

  • Posts

    • The digital landscape is undergoing a profound transformation as attention, once a freely given commodity, is increasingly recognized as a valuable asset. Layer3 is at the forefront of this revolution, pioneering a new economy where attention can be owned, traded, and monetized   This innovative approach empowers individuals to monetize their engagement, providing unprecedented control over personal data. Simultaneously, advertisers benefit from transparent metrics that optimize campaign performance. Content creators are presented with diverse revenue avenues beyond traditional advertising, while the overall ecosystem experiences a more equitable distribution of value.   The implications of Layer3 extend across various sectors. Social media platforms, for instance, can leverage this technology to revolutionize user engagement and monetization strategies. Tokenomics play a crucial role in driving Layer3's economy, incentivizing participation and rewarding value creation. While challenges such as data privacy and market volatility exist, the potential benefits of Layer3 are immense   Anticipation is building as its native token $L3 is on Bitget Pre-market as users await its listing on the exchange. This milestone is expected to significantly increase the token's visibility and accessibility, potentially driving substantial growth and attracting new investors. As the countdown begins, the crypto community watches with keen interest, eager to see how Layer3 will perform in this new chapter.
    • I've been exploring the world of play-to-earn gaming recently, looking for something that's not just about endless grinding but actually offers a fun and rewarding experience. OGC really stood out to me because it combines gaming with a sense of community in a unique way. OGC isn't just a game; it's a platform where you can play, earn, and even help shape its future. You're not just a player; you're part of a community with a voice. The idea of earning crypto while playing games is exciting, but what makes OGC special is its focus on community involvement. Your feedback can directly influence the development of the game, which is a big deal. I've also heard that the OGC token is available for pre-market trading on Bitget. While I'm still getting to know the platform and its features, it's definitely something to keep an eye on. Has anyone else tried OGC? What has your experience been like? I'd love to hear your thoughts and any tips you might have.
    • I am anticipating the impact of this listing on Mongy. 
×
×
  • Create New...
us