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
  • General Statistics

    • Total Topics
      20,128
    • Total Posts
      88,221
    • Total Members
      69,113
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    Sherman_Charlie
    Joined 05/10/22 22:47
  • Posts

    • Stock Market SP 500, NASDAQ 100 NDX, Russell 2000 RUT. Dow Jones Industrial (DJI) Elliott Wave Technical Analysis and Trading Strategies. US Markets News Today: OPEC+ Agrees to Biggest Oil Production Cut Since Start of Pandemic/ reduce output by 2 million barrels. Elliott Wave Market Summary: The move upwards is a bear market corrective rally, how far it goes is the question and today I take a look a few possibilities  Elliott Wave count: Tracking two wave counts Day / Trend Trading Strategies: No Strategy Video Chapters 00:00 S&P500  16:15 NASDAQ 100 (NDX) 16:36 Russell 2000 (RUT)  21:45 Dow Jones (DJI) 24:35 End. Thanks for supporting! Analyst Peter Mathers TradingLounge™ Australian Financial Services Licence - AFSL 317817 Source: tradinglounge com    
    • Market data to trade on Thursday: Aussie Trade; Levi earnings With the upside risk for forecasts for the Australian trade data, IGTV’s Jeremy Naylor looks at the long trade on the Aussie benchmark, the S&P ASX 200. Earnings out on Thursday include Constellation Brands and Levi Strauss.      
    • Dear All, On the September 22 I could not sell Presto automation stock $PRST.  I have reported that to IG helpdesk, had multiple calls etc. It is not obvious where this process is going and I need my refund money ASAP. I have sent the screenshots etc.
×
×
  • Create New...