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

    • Game growth is outpacing user growth. I recently read a review on the topic of Web3 gaming industry and NFT2.0 for gamers  , take a look, I think you will be interested in it ) 
    • As of now, Cardano (ADA) is priced at $0.3357. Despite recent challenges, experts believe the cryptocurrency has strong potential. According to their ADA price prediction, it could rise to $1 by the end of 2024 and reach an astonishing $10.32 by 2030. Recent Trading Performance Cardano has been trading lower than its earlier highs in 2024, with a recent closing price of $0.33. Fortunately, it has strong support at $0.20, which has helped prevent further declines. In the last few weeks, ADA saw a 5% increase since September. However, it experienced a 2.4% drop recently, partly due to large investors selling their holdings amid rising geopolitical tensions. Technical Analysis Technical indicators show a weakening bullish momentum for Cardano. Resistance has formed around the $0.40 mark, leading to a potential short-term pullback. Despite this bearish sentiment, a bullish breakout from a falling channel pattern has seen ADA rise 4.65% in the last 24 hours, breaking through the $0.35 resistance level. Future Predictions Looking ahead, analysts believe Cardano’s price could steadily rise to $0.81 by 2025. If this bullish trend continues, ADA might challenge the $0.489 Fibonacci level. While market volatility remains, this current consolidation phase could set the stage for significant gains in the future. In summary, despite recent fluctuations, the outlook for Cardano (ADA) remains positive. With strong support and potential for growth, investors will be watching closely to see how this cryptocurrency develops in the coming months.
    • SUN PHARMACEUTICALS – SUNPHARMA (1D Chart) Elliott Wave Technical Analysis Function: Larger Degree Trend Higher (Intermediate Degree orange) Mode: Motive Structure: Impulse Position: Minute Wave ((v)) Navy Details: Minute Wave ((v)) of Minor Wave 3 Grey might be complete around 1950-75 range. Please note that 2000 mark is major resistance. Alternatively Minor Waves 3, 4 and 5 could be complete as marked, and a larger degree corrective wave could resume soon. Invalidation point: 1830 risk tightened Sun Pharmaceuticals Daily Chart Technical Analysis and potential Elliott Wave Counts Sun Pharmaceuticals daily chart is suggesting Minor Wave 3 Grey might be complete around 1975-80 zone or near to completion. If correct, expect a turn lower to unfold Minor Wave 4 towards 1380 at least. Alternatively, Minor Waves 3, 4 and 5 are now complete and the stock is ready for a much deeper correction. The stock bottomed around 790 low in June 2022, terminating Intermediate Wave (4) Orange. The rally since then has potentially sub divided into 3 waves with Minor Wave 3 and Minute Wave ((iii)) extended. Minute Wave ((iv)) of 3 terminated around 1380 on June 0, 2024. Minute Wave ((v)) of 3 has been unfolding against 1380 mark and looks complete just below the 2000 mark. If the above proposed wave counts hold well, we should witness a corrective drop as Minor Wave 4 begins to unfold. We will highlight the alternate count with respect to price action going forward.   SUN PHARMACEUTICALS – SUNPHARMA (4H Chart) Elliott Wave Technical Analysis Function: Larger Degree Trend Higher (Intermediate Degree orange) Mode: Motive Structure: Impulse Position: Minute Wave ((v)) Navy Details: Minute Wave ((v)) of Minor Wave 3 Grey might be complete around 1950-75 range. Please note that 2000 mark is major resistance. Alternatively Minor Waves 3, 4 and 5 could be complete as marked on the daily chart, and a larger degree corrective wave could resume soon. Invalidation point: 1830 risk tightened Sun Pharmaceuticals 4H Chart Technical Analysis and potential Elliott Wave Counts: Sun Pharmaceuticals 4H chart primarily highlights the sub waves since Minute Wave ((iv)) of Minor Wave 3 terminated around 1380 mark. High probability remains that Minor Wave 3 Grey is complete around 1975-80 as bears prepare to drag lower soon. Conclusion: Sun Pharmaceuticals has potentially terminated Minor Wave 3 Grey with Intermediate Wave (5) Orange around 1975-80. Watch out for a corrective drop as Minor Wave 4 should be underway soon. Elliott Wave Analyst: Harsh Japee Source : Tradinglounge.com get trial here!  
×
×
  • Create New...
us