OPEN-SOURCE SCRIPT
MA Oscillator Map [ChartPrime]

⯁ OVERVIEW
The MA Oscillator Map [ChartPrime] transforms moving average deviations into an oscillator framework that highlights overextended price conditions. By normalizing the difference between price and a chosen moving average, the tool maps oscillations between -100 and +100, with gradient coloring to emphasize bullish and bearish momentum. When the oscillator cools from extreme levels (-100/100), the indicator marks potential reversal points and extends short-term levels from those extremes. A compact side table and dynamic bar coloring make momentum context visible at a glance.
⯁ KEY FEATURES
⯁ USAGE
⯁ CONCLUSION
The MA Oscillator Map reframes moving average deviations into a visual momentum tracker with extremes, reversal signals, and dynamic levels. By blending oscillator math with intuitive visuals like gradient candles, diamonds, and a live gauge, it helps traders spot overextension, exhaustion, and momentum shifts across any market.
The MA Oscillator Map [ChartPrime] transforms moving average deviations into an oscillator framework that highlights overextended price conditions. By normalizing the difference between price and a chosen moving average, the tool maps oscillations between -100 and +100, with gradient coloring to emphasize bullish and bearish momentum. When the oscillator cools from extreme levels (-100/100), the indicator marks potential reversal points and extends short-term levels from those extremes. A compact side table and dynamic bar coloring make momentum context visible at a glance.
⯁ KEY FEATURES
- Oscillator Mapping (±100 Scale):
Price deviation from the selected MA is normalized into a percentage scale, allowing consistent overbought/oversold readings across assets and timeframes.Pine Script® // MA MA = ma(close, maLengthInput, maTypeInput) diff = src - MA maxVal = ta.highest(math.abs(diff), 50) osc = diff / maxVal * 100 - Customizable MA Types:
Choose SMA, EMA, SMMA, WMA, or VWMA to fine-tune the smoothing method that powers the oscillator. - Extreme Signal Diamonds:
When the oscillator retreats from +100 or -100, the script plots diamonds to flag potential exhaustion and reversal zones. - Dynamic Levels from Extremes:
Upper and lower dotted lines extend from recent overextension points, projecting temporary barriers until broken by price. - Gradient Bar Coloring:
Candles and oscillator values adopt a bullish-to-bearish gradient, making shifts in momentum instantly visible on the chart. - Compact Momentum Map:
A table at the chart’s edge plots the oscillator position with a gradient scale and live percentage label for precise momentum tracking.
⯁ USAGE
- Watch for diamonds after the oscillator exits ±100 — these mark potential exhaustion zones.
- Use extended dotted levels as short-term reference lines; if broken, trend continuation is favored.
- Combine gradient bar coloring with oscillator shifts for confirmation of momentum reversals.
- Experiment with different MA types to adapt sensitivity for trending vs. ranging markets.
- Use the side momentum table as a quick-read gauge of trend strength in percent terms.
⯁ CONCLUSION
The MA Oscillator Map reframes moving average deviations into a visual momentum tracker with extremes, reversal signals, and dynamic levels. By blending oscillator math with intuitive visuals like gradient candles, diamonds, and a live gauge, it helps traders spot overextension, exhaustion, and momentum shifts across any market.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน