OPEN-SOURCE SCRIPT

Price Deviation from EMA

68
This script creates a chart that tracks a stock's price as a percentage deviation from its EMA. Here's what it does:

Creates a standalone indicator (not overlay) that shows the percentage deviation
Calculates the EMA based on your chosen length (default 200 periods, can be modified)

Plots the percentage deviation from this EMA as a red line
Shows the EMA itself as a horizontal blue line at 0% (the baseline)
Adds horizontal reference lines at +/-5% and +/-10% deviations
Includes labels showing the current deviation percentage and EMA information

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

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