OPEN-SOURCE SCRIPT
تم تحديثه Weekday-to-Weekday % Change (selectable, Line + Axis)

Weekday-to-Weekday % Change
Plots % change between the chosen weekday occurrences (week-over-week style) or intraday open→close if you select that comparison type.
Shows as a line in a separate pane (overlay=false).
Auto-scales the Y-axis in percent using invisible padded bounds so TradingView draws a readable axis and ticks.
Optional EMA smoothing and labels on the selected-day bars.
Plots % change between the chosen weekday occurrences (week-over-week style) or intraday open→close if you select that comparison type.
Shows as a line in a separate pane (overlay=false).
Auto-scales the Y-axis in percent using invisible padded bounds so TradingView draws a readable axis and ticks.
Optional EMA smoothing and labels on the selected-day bars.
ملاحظات الأخبار
Here is a clean **4-line description** of how the code works:1. On each selected weekday (e.g., Tuesday), the script captures that day’s **closing price** as the **start price** for a new cycle.
2. For every bar until the next selected weekday, it calculates how far price moved **upward** and **downward** from that start price in percentage terms.
3. It keeps track of the **maximum rise (%)** and **maximum drop (%)** the price reached during that entire period.
4. When the next selected weekday arrives, it displays a label showing **Max Up**, **Max Down**, and the **Net % change** from the previous selected-day close to the current selected-day close.
ملاحظات الأخبار
1. When the selected weekday (e.g., Tuesday) closes, its **closing price becomes the start point** for a new cycle.
2. From the **next bar onward**, the script tracks the **highest high** and **lowest low** reached until the next selected weekday arrives.
3. **Max Up** = (highest high − start close) shown in both **points** and **percentage**.
4. **Max Down** = (lowest low − start close) shown in both **points** and **percentage**.
5. On the next selected weekday, it also shows the **Net movement** from the previous selected-day close to the current selected-day close in both **points** and **percentage**.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.