PineCodersTASC

TASC 2023.01 TRAdj EMA

█ OVERVIEW

TASC's January 2023 edition of Traders' Tips includes an article titled "True Range Adjusted ​Exponential ​Moving ​Average (TRadj ​EMA)" by Vitali Apirine. This code implements the indicator presented in that publication.

█ CONCEPTS

The True Range Adjusted ​Exponential ​Moving Average (TRAdj ​EMA) is a trend-following indicator that considers volatility for a quicker response to price changes. It is an ​​EMA​ that modulates its weighting factor based on the true range (TR) of the asset.
In a trading strategy, traders can use a TRAdj ​EMA in tandem with ​​an ​EMA of the same length to identify an asset's trend, or they can use it alongside ​another TRAdj ​EMA of a different length to identify turning points and filter price movements.

█ CALCULATIONS

The following steps are performed to calculate the indicator:

• Calculate the asset's TR according to the standard definition proposed by J. Welles Wilder, Jr.
• Define the ​true range adjustment factor as:
​ ​ ​ ​ ​ ​ ​ ​ TRAdj =(Current TRMinimum TR) ⁄ (Maximum TRMinimum TR),
where Maximum TR and Minimum TR are the maximum and minimum TR values over the specified lookback period.
• Calculate the TRAdj ​EMA in the same manner as a traditional ​​EMA, but with a weighting factor defined as:
​ ​ ​ ​ ​ ​ ​ ​ 2*(1 + TRAdj*Multiplier) ⁄ (​EMA length + 1),
where Multiplier is an input parameter that ranges from 5 to 10. For comparison, a traditional ​EMA uses a weighting factor of 2 ⁄ (​EMA length + 1).

Tools and ideas for all Pine coders: www.tradingview.com/u/PineCoders/
Pine news broadcasts: t.me/PineCodersSquawkBox or twitter.com/PineCoders
TASC: traders.com/
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?